Skip to main content

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 AssimuloBackend and AssimuloDAEBackend. It is also needed by the legacy unit operations that have not been refactored yet: Reactors, Crystallizers, Evaporators, Distillation, SolidLiquidSep, Containers, Drying_Model, DynamicExtraction and ThreePhaseSettler. Install it from conda-forge, because the PyPI assimulo package is outdated and has no wheels:

    conda install -c conda-forge assimulo
    
  • Julia (DifferentialEquations.jl) is used by DiffeqpyBackend and 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)

Source distribution for pharmapy-org 0.3.0
File Size Uploaded
pharmapy_org-0.3.0.tar.gz 322.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pharmapy-org 0.3.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

0.3.1

2 release files

This release

0.3.0 This release

2 release files

0.1.0

2 release files

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