peptide-calculations (Python)
Unit-safe Python calculations for peptide reconstitution, concentration, dilution and molarity. The package mirrors the transparent calculation contract of the JavaScript package while keeping the Python install dependency-free.
Install and run
python -m pip install peptide-calculations
peptide-calculations reconstitution --mass 10 --target 5
The command returns JSON. For a 10 mg material and a target of 5 mg/mL, the calculated volume is 2 mL.
The Python API is also available:
from peptide_calculations import calculate_reconstitution
result = calculate_reconstitution(10, "mg", 5, "mg/mL")
assert result["volumeMl"] == 2
Use mM only when a molecular mass in daltons is supplied. Inputs are unit
checked, and dilution rejects a target concentration that is not lower than the
stock concentration.
For a browser-based companion, see the Péptido México reconstitution calculator. This is research-use-only software: it does not calculate a dose, recommend administration or validate a physical device or analytical method.
Development
PYTHONPATH=src python -m unittest discover -s tests -v
python -m build
The package is maintained by Péptido México, a commercial supplier of research materials. That relationship is disclosed so users can distinguish software maintenance from scientific interpretation.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file peptide_calculations-0.1.0.tar.gz.
File metadata
- Download URL: peptide_calculations-0.1.0.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d288612301e1c2229ee87abf062672e77f6dfd4fdbb1d3ace22cf5172b060513
|
|
| MD5 |
6a1218e988c7d01ba2ab95b9d9db0d22
|
|
| BLAKE2b-256 |
6f4e66437c3efe8fe5ffd8263476090da1f9e8fe576f4d3853b6ca97aab2f8fa
|
File details
Details for the file peptide_calculations-0.1.0-py3-none-any.whl.
File metadata
- Download URL: peptide_calculations-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e774fe59cc4f7712e9de78b84a3054c91bbe8a5d57fdbf6ebf4ba5066becc21
|
|
| MD5 |
235746dd6ab08ccb21bb8f8e28d48023
|
|
| BLAKE2b-256 |
1b9e1d5491f6c03dc667f820a337bfdba101f82b38cb33212de2055bba0fa18a
|