Skip to main content

Lab-aware physical quantity primitive for the chemunited ecosystem (wraps pint with chemistry-domain unit registry).

Project description

chemunited-quantities

Lab-aware physical quantity primitive for the chemunited ecosystem.

Wraps pint with a chemistry-domain unit registry, offset temperature handling (degC aliases), and Pydantic integration via pydantic-pint.

Installation

pip install chemunited-quantities

Usage

from chemunited_quantities import ChemUnitQuantity

q = ChemUnitQuantity("5 ml")
print(q + ChemUnitQuantity("3 ml"))  # 8 milliliter

temp = ChemUnitQuantity("25 degC")
print(temp)

License

MIT

Project details


Download files

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

Source Distribution

chemunited_quantities-0.0.2.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

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

chemunited_quantities-0.0.2-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file chemunited_quantities-0.0.2.tar.gz.

File metadata

  • Download URL: chemunited_quantities-0.0.2.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for chemunited_quantities-0.0.2.tar.gz
Algorithm Hash digest
SHA256 0fe3e69576527940f7ab8062ec58c28f7123b30e66618b1a797c2733d0cb4017
MD5 66e065d3f217f6778be346d79f40b9db
BLAKE2b-256 6f603f3cf8232baaea922dd23d46bd1a4d72902a70c417364d816eb9ecec8e63

See more details on using hashes here.

Provenance

The following attestation bundles were made for chemunited_quantities-0.0.2.tar.gz:

Publisher: publish.yml on automatedchemistry/chemunited-quantities

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file chemunited_quantities-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for chemunited_quantities-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e6d53a89b21aca167c6683a4ee964dabf31f1c7a243954a9fb6d353f11e4bb0b
MD5 868d67a9faa552015c793c4b3df9a7a1
BLAKE2b-256 7c883d41be61fe0e661cb02553b7626854e2194bfc28e76bcd95c97720522cb6

See more details on using hashes here.

Provenance

The following attestation bundles were made for chemunited_quantities-0.0.2-py3-none-any.whl:

Publisher: publish.yml on automatedchemistry/chemunited-quantities

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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