PharmaPy
PharmaPy is a pythonic library for the analysis of pharmaceutical manufacturing systems.
It allows to simulate the dynamics of standalone, drug substance unit operations in a variety of operating modes (batch, continuous, semibatch). Also, PharmaPy facilitates setting up and simulating pharmaceutical flowsheets, i.e., interconnected unit operations in a variety of operation modes, ranging from end-to-end batch, end-to-end continuous, and hybrid operation (combination of batch and/or continuous and semicontinuous unit operations).
Getting started
Source code, examples and documentation sources are on GitHub.
Installation
PharmaPy is published on PyPI as pharmapy-org, and you import it as PharmaPy:
pip install pharmapy-org
import PharmaPy
The only integrator this installs is scipy's. Unit operations built on MultiPhaseVessel (the *_Refactored modules) default to ScipyBackend. Two other solver backends are optional:
-
Assimulo (SUNDIALS CVode/IDA) is used by
AssimuloBackendandAssimuloDAEBackend. It is also needed by the legacy unit operations that have not been refactored yet:Reactors,Crystallizers,Evaporators,Distillation,SolidLiquidSep,Containers,Drying_Model,DynamicExtractionandThreePhaseSettler. Install it from conda-forge, because the PyPIassimulopackage is outdated and has no wheels:conda install -c conda-forge assimulo -
Julia (DifferentialEquations.jl) is used by
DiffeqpyBackendand needs Python 3.10 or newer:pip install "pharmapy-org[julia]" python -c "import diffeqpy; diffeqpy.install()"
To get a development install with every backend, clone the GitHub repository and follow install_instructions.txt. It sets up a conda environment that includes Assimulo and installs PharmaPy in editable mode.
Metadata
Release files for pharmapy-org 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pharmapy_org-0.1.0.tar.gz | 318.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pharmapy_org-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 631.0 kB
Release files / pharmapy_org-0.1.0.tar.gz
| Download URL | pharmapy_org-0.1.0.tar.gz |
|---|---|
| Size | 318.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7269b8505eff5da8096d3cc9200aa628bc087d2161f77d2615a55980834aeffe
|
|
BLAKE2b-256 checksum How to use checksums |
537296bdb479240a87dc683697fd7ce70733cf407ec23fd9b8877a1be75fc658
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|
Release files / pharmapy_org-0.1.0-py3-none-any.whl
| Download URL | pharmapy_org-0.1.0-py3-none-any.whl |
|---|---|
| Size | 312.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
564e3ed2c51bbf757aecc4eab69144283a965ede952350b6321cc99ab6365722
|
|
BLAKE2b-256 checksum How to use checksums |
1e2b5c3c4442c2af7225a1fe917906e4bd8d7e632e9c189d35e5346e4f0eb5dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|