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.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.3.0.tar.gz | 322.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pharmapy_org-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 636.8 kB
Release files / pharmapy_org-0.3.0.tar.gz
| Download URL | pharmapy_org-0.3.0.tar.gz |
|---|---|
| Size | 322.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
63d672b1058ef6e48eada3e6340bd31e76019d169c7c31d1bb0d891b8292746f
|
|
BLAKE2b-256 checksum How to use checksums |
4eab3440d90eaa65f3aa488f4610faa91fa87db6cd82415caabf5cf0bac47ba5
|
| 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.0-py3-none-any.whl
| Download URL | pharmapy_org-0.3.0-py3-none-any.whl |
|---|---|
| Size | 314.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f9bc8c49ec05b76c806b763396c007a2e55f678f5f3f987b57accd5316271e6c
|
|
BLAKE2b-256 checksum How to use checksums |
b1bfd0c19dd707442e312e7a091a327bbd33338f6c293171d8cdb48e1f8ecf2c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.14
|