Skip to main content

Python-first toolkit for dissolution, NCA, PK/PD simulation, and pharmacometric reporting.

Project description

OpenPKFlow

A transparent, reproducible, open-source Python workflow for dissolution, NCA, PK/PD simulation, and pharmacometric reporting.

CI PyPI version Python License: MIT


What it does

OpenPKFlow gives formulation scientists, PK/PD researchers, and CRO/CDMO teams a clean Python workflow for:

  • Dissolution similarity — f1, f2, bootstrap f2, model fitting
  • NCA — AUC, Cmax, Tmax, half-life, CL/F, Vz/F (planned v0.4.0)
  • PK simulation — 1- and 2-compartment models, oral/IV/infusion (planned v0.5.0)
  • Report generation — Markdown, HTML, PDF, Word (planned v0.3.0)

It does not replace expert regulatory judgement or validated commercial platforms.
It makes routine analysis faster, cleaner, and more reproducible.


Install

pip install openpkflow

For report generation:

pip install openpkflow[reports]

Quick start

from openpkflow.dissolution import f1, f2

reference = [20.0, 40.0, 60.0, 80.0, 90.0]
test      = [21.0, 39.0, 61.0, 79.0, 88.0]

print(f"f1 = {f1(reference, test):.2f}")
print(f"f2 = {f2(reference, test):.2f}")

From a CSV file

from openpkflow.dissolution import DissolutionStudy

study = DissolutionStudy.from_csv("dissolution.csv")

result = study.compare(reference="reference", test="test")
result.summary()
result.report("dissolution_report.html")

CSV format

formulation,batch,time,percent_released
reference,R1,5,18.2
reference,R1,10,31.4
reference,R1,15,47.9
test,T1,5,17.5
test,T1,10,30.1
test,T1,15,46.2

CLI

openpkflow version
openpkflow similarity --reference "20,40,60,80" --test "21,39,61,79"

Current status (v0.1.0)

Module Status
dissolution.f1 / dissolution.f2 Stable
Dissolution CSV loader Stable
Markdown + HTML report stub Stable
CLI Stable
Bootstrap f2 Planned v0.1.1
Dissolution model fitting Planned v0.2.0
Full report generation Planned v0.3.0
NCA Planned v0.4.0
PK simulation Planned v0.5.0
Population PK Planned v0.6.0
Bayesian PK Planned v0.8.0
ML / neural ODE Planned v0.9.0

Validation

All formula implementations are validated against:

  • Published FDA/EMA guidance examples
  • R package reference outputs (PKNCA, bootf2)
  • Manual Excel calculations

Validation test cases cite their sources. See tests/ for details.


Disclaimer

This software is for research and decision-support workflows. Final regulatory interpretation should be reviewed by qualified formulation, pharmacokinetic, and regulatory experts.


Contributing

Issues and PRs welcome at https://github.com/priyamthakar/openpkflow/issues


Citation

If you use OpenPKFlow in research, please cite:

Thakar, P. (2026). OpenPKFlow: Python-first pharmacometrics and dissolution toolkit.
https://github.com/priyamthakar/openpkflow

License

MIT — see LICENSE

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openpkflow-0.1.2.tar.gz (35.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openpkflow-0.1.2-py3-none-any.whl (24.7 kB view details)

Uploaded Python 3

File details

Details for the file openpkflow-0.1.2.tar.gz.

File metadata

  • Download URL: openpkflow-0.1.2.tar.gz
  • Upload date:
  • Size: 35.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for openpkflow-0.1.2.tar.gz
Algorithm Hash digest
SHA256 440a0d9e908b5f0a635bb2e7f4a2727c2d4f75f1173d548707beaaa8f114fe41
MD5 6df4282a811d15c988294f6593ab0832
BLAKE2b-256 99c7121006df7ccee2b1abdba54e0fb0574444b61931dd227881e182bb184fae

See more details on using hashes here.

Provenance

The following attestation bundles were made for openpkflow-0.1.2.tar.gz:

Publisher: publish.yml on priyamthakar/openpkflow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file openpkflow-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: openpkflow-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 24.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for openpkflow-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8f5155168321d7183765e4fe2b7ddd4664a7be65e7408163a6ddbdbe4d65646f
MD5 776842ae50f48f7f168ac4d5856ba940
BLAKE2b-256 66e2f5e831cd31d8551b61bd88adc6c58751c2e565a6efd4c129a17475523d43

See more details on using hashes here.

Provenance

The following attestation bundles were made for openpkflow-0.1.2-py3-none-any.whl:

Publisher: publish.yml on priyamthakar/openpkflow

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page