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. Analysis workflows run natively and need no extra. Optional extras add qspquest[notebook] (pandas, matplotlib, JupyterLab), qspquest[plot] (pandas, plotnine; journal figures) and qspquest[interchange] (SBML/OMEX).

Build from source

On other platforms pip builds the source archive, which needs Rust 1.89 or newer, 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.1. 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

Analysis workflows need no extra. notebook adds pandas, matplotlib and JupyterLab for data frames and plots. plot supplies pandas and plotnine for qspquest.plot figures and qspquest.to_frame tables. 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.1.tar.gz[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.1

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.1
File Size Uploaded Provenance Actions
qspquest-0.1.1.tar.gz 949.5 kB With provenance Details for qspquest-0.1.1.tar.gz

Built distributions (wheels)

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

Total release size: 18.0 MB

Release files / qspquest-0.1.1.tar.gz

Download URL qspquest-0.1.1.tar.gz
Size 949.5 kB
Tags Source
SHA-256 checksum
How to use checksums
10c6eb0d09030e6ba260f72b64886d891185bb1d871dc574d517ef1055badefc
BLAKE2b-256 checksum
How to use checksums
2e06bcc1311385823496ebd29710a179c76ca5c27cd92d0d8297099f1be19018
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 9, 2026.

Transparency log

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

Download URL qspquest-0.1.1-cp310-abi3-win_amd64.whl
Size 3.6 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
4ca92b4972b1d2a21a4a00eb5b4a7b2d66f84ccf9dfaf526278dc3cbc1a408fe
BLAKE2b-256 checksum
How to use checksums
ab6661dd0d2bff56c094a69ff0977ff10320916078339da0fe70cb927af41589
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 9, 2026.

Transparency log

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

Download URL qspquest-0.1.1-cp310-abi3-manylinux_2_28_x86_64.whl
Size 3.8 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
e3e89fbd94c26b403885d5138fd5a20dc88e036c7183d984a88415ef02d519f5
BLAKE2b-256 checksum
How to use checksums
d1d4ee1d9623251caaf1143862ee50c481567f42a95aa288506bdbb23156e398
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 9, 2026.

Transparency log

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

Download URL qspquest-0.1.1-cp310-abi3-manylinux_2_28_aarch64.whl
Size 3.2 MB
Tags CPython 3.10 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
1da9064d0a0228bab3efc005338007dde7fe7419dbf4f921c75c9c630a480c72
BLAKE2b-256 checksum
How to use checksums
2988ebe673bcfc10868b749076d03af02222e1b961db845302ce2dbcf5f5cf0a
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 9, 2026.

Transparency log

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

Download URL qspquest-0.1.1-cp310-abi3-macosx_11_0_arm64.whl
Size 3.0 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
138a6f87c9b3129b1a968621251814bb78bf5b48761f49ee926374144bf469cf
BLAKE2b-256 checksum
How to use checksums
c9fa28b98d50fa9d6d93fd6f4d0a666d0bcb606c0f74d8ec108a690274a2c219
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 9, 2026.

Transparency log

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

Download URL qspquest-0.1.1-cp310-abi3-macosx_10_12_x86_64.whl
Size 3.5 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
9925c709aefd737c796f441b103cc8266e72823da96456f88eb8af93f78c40de
BLAKE2b-256 checksum
How to use checksums
1b5a5c6fcd31da366927162a10d5bc42428a681e08c280698ca2d071892db913
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 9, 2026.

Transparency log

Security for qspquest 0.1.1

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.1.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 9, 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.1 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