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.1

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.1
File Size Uploaded
pharmapy_org-0.3.1.tar.gz 324.1 kB Details

Built distribution (wheel)

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

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3.0

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