Skip to main content

QSPQuest for Python

Compile and simulate pharmacology models locally with the QSPQuest native engine. Models declare equations, units, parameters and dosing events. The base package includes simulation, native individual fitting and synthetic examples. No model library is needed for the example below.

Install

Use CPython 3.10 or newer, preferably in a virtual environment:

python -m pip install qspquest

Prebuilt wheels cover Linux x86_64 and ARM64 (glibc 2.28+), macOS Apple Silicon and Intel, and Windows x86_64, so no Rust compiler is needed. Optional extras add workflows: qspquest[analysis] (NumPy, SciPy), qspquest[notebook] (pandas, matplotlib, JupyterLab) and qspquest[interchange] (SBML/OMEX).

Build from source

On other platforms pip builds the source archive, which needs Rust 1.98.1, Cargo and a native C/C++ compiler on PATH, and network access to fetch locked dependencies (one from GitHub). From the complete project checkout or an extracted Python source archive:

python -m pip install .

The first build can take several minutes. A downloaded wheel or source archive from the GitHub release installs the same way, by passing its path to pip. The hyphenated qspquest-<version>.tar.gz is the Python distribution; qspquest_<version>.tar.gz is the separate R package.

Check the installation:

python -c "import qspquest; print(qspquest.__version__)"
qspquest-doctor --json

Expect version 0.1.0. The doctor runs a small synthetic model and reports its checks and any missing optional dependencies. An import error usually means you installed into a different Python interpreter or the native extension could not load; use python -m pip with the same interpreter. A wheel platform error means you need a matching wheel or the source install.

Simulate and save a first result

This workflow requires only the installed base package. From any writable working directory, choose a new output directory:

python -m qspquest.first_run --out first-result

The included synthetic model has a 3 L compartment and clearance 0.3 L/h. A 6 mg bolus enters central at time zero. The engine samples the post-event concentration cp at 0, 2, 8 and 24 hours and checks it against cp(t) = 2 * exp(-0.1 * t) mg/L. Expected first and last values are 2.000000 and 0.181436 mg/L. The command refuses an existing output directory so earlier results cannot be overwritten.

The saved files are:

File Purpose
model.qsp Complete source equations, parameters and units
request.json Solver, dosing, time units, post-event samples and budgets
result.json Full native result, output units and engine identity
first-run.csv Time, event side and concentration table
first-run.csv.manifest.json Table metadata and provenance
checks.json Analytical comparison and tolerance checks

Replay the exact saved source and request with this complete Python command:

python -c "import json; from pathlib import Path; from qspquest import CompiledModel; p = Path('first-result'); result = CompiledModel((p / 'model.qsp').read_text()).run(json.loads((p / 'request.json').read_text())); print(json.dumps(result, indent=2))"

This is an illustrative synthetic model, not a clinical or drug-specific model.

Optional workflows

The analysis extra supplies NumPy/SciPy for analysis helpers. notebook adds analysis packages, pandas, matplotlib and JupyterLab. interchange supplies python-libsbml for SBML/OMEX import and export. Install only the extras needed; for example with the same local source archive:

python -m pip install './qspquest-0.1.0.tar.gz[analysis,interchange]'
qspquest-doctor --analysis --interchange --json

On a wheel, append the same bracketed extras to its actual filename. No extra is needed for the first-result example.

Security reports

Report suspected vulnerabilities privately to helpdesk@unibiointelligence.com. Include the version, affected component, impact and reproduction steps using synthetic inputs. Remove credentials and confidential study data. Read the installed policy without a source checkout:

python -c "from importlib.resources import files; print(files('qspquest').joinpath('SECURITY.md').read_text(encoding='utf-8'))"

Metadata

Release files for qspquest 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qspquest 0.1.0
File Size Uploaded Provenance Actions
qspquest-0.1.0.tar.gz 791.7 kB With provenance Details for qspquest-0.1.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for qspquest 0.1.0
File Actions
qspquest-0.1.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for qspquest-0.1.0-cp310-abi3-win_amd64.whl
qspquest-0.1.0-cp310-abi3-manylinux_2_28_x86_64.whl CPython 3.10 abi3 Linux glibc 2.28+ x86-64 Details for qspquest-0.1.0-cp310-abi3-manylinux_2_28_x86_64.whl
qspquest-0.1.0-cp310-abi3-manylinux_2_28_aarch64.whl CPython 3.10 abi3 Linux glibc 2.28+ ARM64 Details for qspquest-0.1.0-cp310-abi3-manylinux_2_28_aarch64.whl
qspquest-0.1.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for qspquest-0.1.0-cp310-abi3-macosx_11_0_arm64.whl
qspquest-0.1.0-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details for qspquest-0.1.0-cp310-abi3-macosx_10_12_x86_64.whl

Total release size: 15.7 MB

Release files / qspquest-0.1.0.tar.gz

Download URL qspquest-0.1.0.tar.gz
Size 791.7 kB
Tags Source
SHA-256 checksum
How to use checksums
30706302975e55fc17fa57fbfceb8ec45db3de9d4e4b1fdf26ec731bb185030e
BLAKE2b-256 checksum
How to use checksums
732cdb326b74b0b6a68e4806af0744aaf5241a92f58a476eca1a05650624d1e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

Release files / qspquest-0.1.0-cp310-abi3-win_amd64.whl

Download URL qspquest-0.1.0-cp310-abi3-win_amd64.whl
Size 3.1 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
0e43e769831b8c0922004f0771ee34d632dd1a29f65e992f88dc81208eeebe70
BLAKE2b-256 checksum
How to use checksums
b92f9c95d5e2ae9995f4b8b6685b29d27709b8e9dbc48494f03c6a078f478b51
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

Release files / qspquest-0.1.0-cp310-abi3-manylinux_2_28_x86_64.whl

Download URL qspquest-0.1.0-cp310-abi3-manylinux_2_28_x86_64.whl
Size 3.3 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
613903ce2094a3f7065f807976e89a3a62452ad84634995fb48b82e1e9ee2ea0
BLAKE2b-256 checksum
How to use checksums
88cec05f86bc0bc6dca3b0b208db2209f6e49f2a9b40e556a292375abef0030b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

Release files / qspquest-0.1.0-cp310-abi3-manylinux_2_28_aarch64.whl

Download URL qspquest-0.1.0-cp310-abi3-manylinux_2_28_aarch64.whl
Size 2.8 MB
Tags CPython 3.10 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
997b386926d82a74fd1b935644df36b114b888fb3e2538e002a20bb3fd7a5476
BLAKE2b-256 checksum
How to use checksums
bca688bd5c9ed73ad681047964114428297b2ea0408d55d27c19e09d014cc957
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

Release files / qspquest-0.1.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL qspquest-0.1.0-cp310-abi3-macosx_11_0_arm64.whl
Size 2.6 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
0784daa6db03c82e90797fa064f28c671e0500294f461d38e0bfe32b5771efa9
BLAKE2b-256 checksum
How to use checksums
6e5bdfa307ab270c307aa85f0a3a4b72a8f01a7cf15379f882bcc288f75ebfea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

Release files / qspquest-0.1.0-cp310-abi3-macosx_10_12_x86_64.whl

Download URL qspquest-0.1.0-cp310-abi3-macosx_10_12_x86_64.whl
Size 3.1 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
22a85155bbfb73ec04b8f56c0902c36748c033881539c86303facd8b4e416a95
BLAKE2b-256 checksum
How to use checksums
ef16c4a177dcda9e7f5364f6d668e7018132373bc860c106e617cf6fca3c17df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

Security for qspquest 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for qspquest-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

6 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page