Skip to main content

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)

Source distribution for peptide-calculations 0.1.0
File Size Uploaded
peptide_calculations-0.1.0.tar.gz 6.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for peptide-calculations 0.1.0
File Interpreter ABI Platform
peptide_calculations-0.1.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

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