Skip to main content

Labunits

This is a simple python library for laboratory units, and to convert between them.

Intended use

labunits is a general-purpose unit conversion library — a lookup table of unit pairs and conversion factors keyed by LOINC, plus one multiplication. It is not a medical device and has not been clinically validated. It does not provide reference intervals, flag abnormal values or interpret results, and it is not intended for diagnosis, monitoring, treatment decisions or any other medical purpose. Verify unit pairs and factors against your own laboratory's data before relying on them.

Why another library with this content?

Oh - just because - there IS NONE. I couldn't believe that.

License

MIT. Just use it in your project and give credits.

Metadata

Release files for labunits 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for labunits 0.2.1
File Size Uploaded Provenance
labunits-0.2.1.tar.gz 10.0 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for labunits 0.2.1
File Interpreter ABI Platform
labunits-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 18.0 kB

Release files / labunits-0.2.1.tar.gz

Download URL labunits-0.2.1.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c3981443d75755fa9dd0bcf876eeec27ac1d4dfaf678970de66118a21b1bd5e0
BLAKE2b-256 checksum
How to use checksums
8706c92a503b78c6b8557e52b8b7d7f75c428343990986da6816480ae1966f78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.

Transparency log

Release files / labunits-0.2.1-py3-none-any.whl

Download URL labunits-0.2.1-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1c0fffbfb582008654412526835d93e1b49b213e194462c83fb77957691682f8
BLAKE2b-256 checksum
How to use checksums
d208ea91f4a9452e08ca0e566aba25700c6a1d90184fd736c8422b06e6d86f6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.

Transparency log

Security for labunits 0.2.1

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for labunits-0.2.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 4, 2026.

Transparency log

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.

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