Skip to main content

badge1 badge2 badge3 badge4 Ruff

Getting started

Installation

For installation in R, see pharmr.

Install the latest stable version from PyPI:

pip install pharmpy-core # or ‘pip3 install’ if that is your default python3 pip

Python Example

>>> from pharmpy.modeling import read_model
>>> from pharmpy.tools import load_example_modelfit_results
>>> model = load_example_model("pheno")
>>> model.parameters
            value  lower upper    fix
POP_CL   0.004693   0.00     ∞  False
POP_VC   1.009160   0.00     ∞  False
COVAPGR  0.100000  -0.99     ∞  False
IIV_CL   0.030963   0.00     ∞  False
IIV_VC   0.031128   0.00     ∞  False
SIGMA    0.013086   0.00     ∞  False
>>> res = load_example_modelfit_results("pheno")
>>> res.parameter_estimates
POP_CL     0.004696
POP_VC     0.984258
COVAPGR    0.158920
IIV_CL     0.029351
IIV_VC     0.027906
SIGMA      0.013241
Name: estimates, dtype: float64
>>>

CLI Example

# Get help
pharmpy -h

# Remove first ID from dataset and save new model using new dataset
pharmpy data filter run1.mod 'ID!=1'

# Run tool for selecting IIV structure
pharmpy run iivsearch run1.mod

User guide

There is also a user guide for getting started

Contact

This is the team behind Pharmpy

Please ask a question in an issue or contact one of the maintainers if you have any questions.

Contributing

If you interested in contributing to Pharmpy, you can find more information under Contribute.

Metadata

Release files for pharmpy-core 2.3.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 pharmpy-core 2.3.0
File Size Uploaded Provenance Actions
pharmpy_core-2.3.0.tar.gz 3.7 MB Without provenance Details for pharmpy_core-2.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pharmpy-core 2.3.0
File Interpreter ABI Platform Actions
pharmpy_core-2.3.0-py3-none-any.whl Python 3 none any Details for pharmpy_core-2.3.0-py3-none-any.whl

Total release size: 4.7 MB

Release files / pharmpy_core-2.3.0.tar.gz

Download URL pharmpy_core-2.3.0.tar.gz
Size 3.7 MB
Tags Source
SHA-256 checksum
How to use checksums
c0ff5f1c1798ec917f19195f78b2afbf204fcc5d78e6bbcafe8fb9111f951375
BLAKE2b-256 checksum
How to use checksums
6703ffb2856c9c51e658a93612b3a393a08e3c48bce4b33286234990f04fae87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / pharmpy_core-2.3.0-py3-none-any.whl

Download URL pharmpy_core-2.3.0-py3-none-any.whl
Size 1.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
2601b03219ca227216bc5ebc61983693ad9eb056b140a3a409f87be6db8bb486
BLAKE2b-256 checksum
How to use checksums
b046baf6f33ef362b0c1a3160d35349f3fc1a31c22a8d8672c2c43ecbc080f72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for pharmpy-core 2.3.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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

2.3.0 This release

2 release files No 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