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.
Metadata
Release files for peptide-calculations 0.1.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 | Provenance | Actions |
|---|---|---|---|---|
| peptide_calculations-0.1.0.tar.gz | 6.1 kB | Without provenance | Details for peptide_calculations-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| peptide_calculations-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for peptide_calculations-0.1.0-py3-none-any.whl |
Total release size: 12.4 kB
Release files / peptide_calculations-0.1.0.tar.gz
| Download URL | peptide_calculations-0.1.0.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d288612301e1c2229ee87abf062672e77f6dfd4fdbb1d3ace22cf5172b060513
|
|
BLAKE2b-256 checksum How to use checksums |
6f4e66437c3efe8fe5ffd8263476090da1f9e8fe576f4d3853b6ca97aab2f8fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / peptide_calculations-0.1.0-py3-none-any.whl
| Download URL | peptide_calculations-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4e774fe59cc4f7712e9de78b84a3054c91bbe8a5d57fdbf6ebf4ba5066becc21
|
|
BLAKE2b-256 checksum How to use checksums |
1b9e1d5491f6c03dc667f820a337bfdba101f82b38cb33212de2055bba0fa18a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Security for peptide-calculations 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.