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.3.1
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.3.1.tar.gz | 324.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pharmapy_org-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 639.3 kB
Release files / pharmapy_org-0.3.1.tar.gz
| Download URL | pharmapy_org-0.3.1.tar.gz |
|---|---|
| Size | 324.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6d4adb1a48a3cc5d06befeadab4f22526d5a98e4aacc62d1e96982b9f37eabfc
|
|
BLAKE2b-256 checksum How to use checksums |
a634bbf037ab117edadebdf19312b2ab3a6c752880cc5ff06b3725ff11d9fee6
|
| 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.3.1-py3-none-any.whl
| Download URL | pharmapy_org-0.3.1-py3-none-any.whl |
|---|---|
| Size | 315.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a5a31602790edb6951b3fa93db2b172e226be875324b2dbfef9579382eca640c
|
|
BLAKE2b-256 checksum How to use checksums |
528150dba69e5a6f7f13133067fbc7b5314aab19ddb3fd4eba76dce7f1fd8e0f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|