Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

subtrix

Latest version: v0.0.1.post5

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
PyPI package Publisher: solubrew_pypi
2 Versions
21 Downloads

Scan summary

subtrix was last scanned on 29 Nov 2026 at version 0.0.1.post5. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 2 versions, all published on 29 Nov 2026.
  • Findings: No rules fired in version 0.0.1.post5.
  • Downloads: 21 downloads.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.0.1.post5 LATEST 29 Nov 2026 No rules fired
0.0.1.post4 29 Nov 2026 No rules fired

No rules fired in 0.0.1.post5

Findings

Findings for v0.0.1.post5. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.0.1.post5; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Subtrix

    ## Project overview

    Subtrix is a substitution module for Python, providing powerful tools for text
    manipulation through substitutions. The main interface is the `Mechanism` class,
    which allows for standard substitution, term expansion, and variable
    substitution.

    Subtrix is part of the Solutions Brewer (SB) stack and is consumed by sibling
    projects such as **GoaLT** (report rendering) and **Condor** (prompt
    templating). It is designed to be:

    - **Deterministic** — given the same template and data, output is byte-stable.
    - **Composable** — the public API is a single class with a small surface.
    - **Safe** — built-in security validation (max size, max recursion, dangerous
      pattern deny-list).
    - **Lightweight** — minimal dependencies, no template precompilation step.

    See [ARCHITECTURE.md](ARCHITECTURE.md) for the full design and
    [CLI.md](CLI.md) for the command-line interface.

    ## Features

    - Provides a basic substitution mechanism
    - Supports variable substitution
    - Supports lists of variables to generate multiple documents from a single template
    - Supports term expansion by using term looping substitution all combinations of a list of terms can be generated
    - Provides Prefix and Suffix Support with controls for trailing suffix

    ## Installation

    You can install Subtrix via pip:

    ```bash
    pip install subtrix
    ```

    Alternatively, clone the repository and install from source:

    ```bash
    git clone https://github.com/solubrew/subtrix.git
    cd subtrix
    pip install -e .
    ```

    ### Requirements

    - Python 3.<MIN_VERSION> or higher
    - Dependencies: re, <EVAL_LIB> (automatically installed via pip where applicable)

    ## Quick Start

    Import the module and use the Mechanism class for substitutions:

    ## Standard Patterns

    ### Substitution:

        <[token]>: basic substitution
        <~[token]~>: optional token substituion (is removed if unused in template render)
        <[prefix.:token]>: token substitution with prefix
        <[token:.suffix]>: token substitution with suffix

    ### Variable Substitution:

        <(token)>: registerd variable lookup for things like TODAY, USER, etc.
        <(prefix.:token)>: optional variable token substituion
        <(token:.suffix)>: optional variable token substituion

    ### Looped Variable Substitution:

        token: ['point0', 'point1']
        <@[token]@>: [['point0'], ['point1'], ['point0', 'point1']

    ```python
    from subtrix import Mechanism

    # Initialize Mechanism
    template = 'Hello, <[name]>!'
    data = {'name': 'World'}
    mech = Mechanism(template, data)

    # Perform standard substitution
    result = mech.run()
    print(result)  # Output: Hello, World!
    ```

    ## Usage


    ### Variable Substitution

    Inject variables from various sources:


    ## Development

    To set up a development environment and run the test suite locally:

    ```bash
    # Clone and install in editable mode with dev extras
    git clone https://github.com/solubrew/subtrix.git
    cd subtrix
    python -m pip install --upgrade pip
    pip install -e ".[dev]"
    pip install pytest pytest-asyncio

    # Run the test suite
    pytest tests/ -v

    # Lint (matches CI)
    ruff check subtrix/

    # Confirm the package imports cleanly
    python -c "import subtrix; print('Import OK:', subtrix.__name__)"

    # Render a template from the CLI
    python -m subtrix.cli subtrix "Hello <[name]>!" '{"name": "World"}'
    ```

    Before opening a pull request, also run the compliance auditor to verify the
    project is in a releasable state:

    ```bash
    PYTHONPATH=...:$TASKAXN_PYTHONPATH python -m sasquatch.cli analyze \
        -p . --agent m3rl1n --skip-pii-secrets
    ```

    A score of **>= 90 %** is required to tag a release. See
    [CI_CD.md](CI_CD.md) for the full pipeline description.

    ## Contributing

    Contributions are welcome! Please follow these steps:

    1. Fork the repository.
    2. Create a feature branch (`git checkout -b feature/<FEATURE_NAME>`).
    3. Commit your changes (`git commit -am 'Add some feature'`).
    4. Push to the branch (`git push origin feature/<FEATURE_NAME>`).
    5. Open a Pull Request.

    See [CONTRIBUTING.md](CONTRIBUTING.md) for more details.

    ## License

    This project is licensed under the MIT License - see the [LICENSE](LICENSE.rst) file for details.

    ## Acknowledgments

    - Built with inspiration from open-source templating and substitution libraries.
    - Thanks to contributors of underlying libraries like re, and Python's built-in eval.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases subtrix

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Frame 2085668439 (1)
Group 1261154229