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

bngsim

Latest version: v0.18.0

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
PyPI package Publisher: bhlavacek
4 Stars
6 Forks
5 Versions
4.3K Downloads
Python Repo language

Scan summary

bngsim was last scanned on 27 Nov 2026 at version 0.18.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 5 versions; the latest 2 were published within 5 days (23–27 Nov 2026).
  • Findings: No rules fired in version 0.18.0.
  • Downloads: 4,330 downloads.

Versions

5 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.18.0 LATEST 27 Nov 2026 No rules fired
0.17.3 23 Nov 2026 No rules fired
0.17.2 13 Nov 2026 No rules fired
0.17.1 12 Nov 2026 Not shown
0.17.0 3 Nov 2026 Not shown

No rules fired in 0.18.0

Findings

Findings for v0.18.0. 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.18.0; other versions have their own rules, not their own score.

README

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

BNGsim

BNGsim

A simulator for biochemical reaction networks, as a Python library.

BNGsim simulates models written in SBML, Antimony and the BioNetGen language (BNGL). It integrates a model as ordinary differential equations or runs it as an exact stochastic simulation. A rule-based model can also be run network-free, with NFsim or RuleMonkey, from the XML that BioNetGen writes. The same Model, Simulator and Result objects serve every format. A model is loaded once and simulated in-process, and each run returns NumPy arrays.

It also computes forward sensitivities, finds steady states, runs parameter scans and batches on parallel threads, and converts models between formats. For BioNetGen users, it replaces run_network. PyBioNetGen and PyBNF use BNGsim.

BNGsim integrates ODEs with CVODES, which needs code that evaluates the right-hand side of the ODEs and works best when also given the Jacobian and, for sensitivity analysis, the derivatives with respect to parameters. A model file provides none of these. BNGsim derives them from the model where it can. It also handles what the solver leaves to its caller: events, discontinuities in rate laws, sensitivities across those discontinuities, and methods other than ODE integration. Why BNGsim? explains why this layer is needed, why it is hard to get right, and what BNGsim offers beyond SciPy and NumPy.

For AI agents

  • bngsim.agent_guide() returns a one-page guide for the installed version, with no network. python -m bngsim guide prints it, and python -m bngsim skill prints it as a SKILL.md file. To give it to Claude Code in every project, write it to your personal skills folder, in any shell:

    python -m bngsim skill --out ~/.claude/skills/bngsim/SKILL.md

    For one project only, write it to .claude/skills/bngsim/SKILL.md there, and commit it to share it. Run the command again after upgrading BNGsim: the guide is the installed version's.

  • The bngsim command (also python -m bngsim) works from a shell: bngsim doctor says what this install can do and what is missing, bngsim examples lists the bundled models, and bngsim inspect MODEL describes a model. With --json, each prints one JSON object. See the command.

  • A call that uses names from libRoadRunner, Tellurium, SciPy or pandas, or from BNGL actions (setParameter, t_end, n_steps), raises an error that names the BNGsim call to use. The guide also translates from AMICI, COPASI and PySB.

  • BNGsim refuses models it can't simulate correctly, and says why.

  • bngsim.examples has small models with exact solutions, to try BNGsim with no model file and check its answers. bngsim.ModelBuilder builds a model in Python, and bngsim.Model.from_biomodels("BIOMD0000000010") loads a BioModels entry by its id.

  • The docs have an llms.txt index.

Status: alpha (0.x). BNGsim is checked every night against BioNetGen, libRoadRunner, AMICI and the SBML test suite, but it is early software, and bugs that give a wrong answer without an error are still open. They carry the correctness concern label. Before you rely on a result for a new model, check it against a second engine or a tighter tolerance, and please report what you find.

Installation

pip install bngsim

Wheels ship for common platforms. Some features need an extra, such as bngsim[antimony] or bngsim[bngl], and sensitivities need a C compiler. See the installation guide.

A first run

This runs as written after pip install bngsim. It writes a two-species network to a file so that there is something to load. Put your own SBML, Antimony or BNGL file in its place.

from pathlib import Path

import bngsim

# A -> B at rate k, in BioNetGen's network (.net) format.
Path("model.net").write_text(
    """\
begin parameters
    1 k 0.5
end parameters
begin species
    1 A() 100
    2 B() 0
end species
begin reactions
    1 1 2 k
end reactions
begin groups
    1 A 1
    2 B 2
end groups
""",
    encoding="utf-8",
)

# Model.load reads .net, SBML (.xml, .sbml), Antimony (.ant) and BNGL (.bngl).
model = bngsim.Model.load("model.net")
sim = bngsim.Simulator(model, method="ode")
result = sim.run(t_span=(0.0, 10.0), n_points=101)

result.time                # (101,) NumPy array of time points
result.observables["A"]    # trajectory of observable "A"
result.species             # (101, 2) array, columns in model.species_names order

print(round(float(result.observables["A"][-1]), 4))  # 0.6738, which is 100 * exp(-5)

Three rules worth knowing from the start:

  • n_points counts the first point. 101 points over (0, 10) are 0.1 apart.
  • An ODE or stochastic run continues from the state the last one on that model ended in. Call model.reset() to start again from the initial state, or pass run(..., start="initial"). result.started_from says which start a run had, and a run that restarts the clock on the last run's end state raises a bngsim.LiveStartWarning.
  • A stochastic run draws a fresh seed unless you pass one. result.seed is the seed that was used.

The quickstart covers the other loaders, stochastic runs, steady states and sensitivities.

Documentation

Full documentation is hosted at bngsim.readthedocs.io and lives in docs/:

Console scripts convert models between formats (see interchange) and manage the compiled-code cache (bngsim-cache).

Benchmarks & validation

bngsim-benchmarks checks BNGsim's answers against other simulators and times each one. Its published results cover:

  • correctness and timing on test suites of 10 published models, one suite for each BNGsim feature (ODE, SSA, PSA, steady state, sensitivities, network-free) and input format (BNGL, SBML, Antimony);
  • sweeps over large model collections: BNGsim vs libRoadRunner and BNGsim vs AMICI (with sensitivities) on SBML from BioModels and on SBML converted from BioNetGen networks, and RuleMonkey vs NFsim.

Each result names the BNGsim version it was measured on.

Contributing

Build-from-source, test, and CI instructions are in CONTRIBUTING.md and the development docs. Release history is in CHANGELOG.md.

License

MIT. See LICENSE for the full text and the Triad/LANL copyright notice.

Third-party code and model/test-data corpora that BNGsim redistributes are listed, with their licenses, in NOTICE.

© 2026. Triad National Security, LLC. All rights reserved. This is a Los Alamos National Laboratory open-source release; LANL software release reference O5098.

Citation

If you use BNGsim in your research, please cite:

Preprint coming soon!

Acknowledgments

BNGsim has been validated against RoadRunner, AMICI, COPASI, BioNetGen, and the SBML/DSMTS test suites. See ACKNOWLEDGMENTS.md for citations.

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 bngsim

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

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229