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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

peptide_calculations-0.1.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

peptide_calculations-0.1.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

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

Hashes for peptide_calculations-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d288612301e1c2229ee87abf062672e77f6dfd4fdbb1d3ace22cf5172b060513
MD5 6a1218e988c7d01ba2ab95b9d9db0d22
BLAKE2b-256 6f4e66437c3efe8fe5ffd8263476090da1f9e8fe576f4d3853b6ca97aab2f8fa

See more details on using hashes here.

File details

Details for the file peptide_calculations-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for peptide_calculations-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4e774fe59cc4f7712e9de78b84a3054c91bbe8a5d57fdbf6ebf4ba5066becc21
MD5 235746dd6ab08ccb21bb8f8e28d48023
BLAKE2b-256 1b9e1d5491f6c03dc667f820a337bfdba101f82b38cb33212de2055bba0fa18a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page