Skip to main content

Python Physical Unit System Framework

A physical units framework for scientific and engineering programming

This implementation of a units framework for python, has low overhead, and can be expanded upon as desired. Reference conversion factors and constants are derived from NIST standards when available Some US customary units use implicit conversions and derivations

Use:

import the library and establish the base unit system

from units import units C = units('US')

assign units to a number - in this case 10 lbf of force:

F = 10*C.LBF

report the number in units force:

print( F/C.LBF )

report the number in units of Newtons:

print ( F/C.N )

assign a mixed unit to a value in this case density in SI units:

rho = 10 *C.KG/C.M**3

report the unit is US customary units:

print ( rho / (C.SLUG/C.FT**3) )

Metadata

Release files for simple-unit-system 0.0.8

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

Source distribution (sdist)

Source distribution for simple-unit-system 0.0.8
File Size Uploaded Provenance Actions
simple-unit-system-0.0.8.tar.gz 4.1 kB Without provenance Details for simple-unit-system-0.0.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for simple-unit-system 0.0.8
File Interpreter ABI Platform Actions
simple_unit_system-0.0.8-py3-none-any.whl Python 3 none any Details for simple_unit_system-0.0.8-py3-none-any.whl

Total release size: 8.8 kB

Release files / simple-unit-system-0.0.8.tar.gz

Download URL simple-unit-system-0.0.8.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8e9c8fc55d21e2f9dc653d1fd7c0fb67192b39472e82ce007ab67f03d1b0845b
BLAKE2b-256 checksum
How to use checksums
022c77d831fb84093bd08cb4fd4909bcfee511ad24fd18ac700f2aacc69f4b0a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Release files / simple_unit_system-0.0.8-py3-none-any.whl

Download URL simple_unit_system-0.0.8-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e1c0a333d91da4ccb7a30de513fc8c3a2fbe50e3e564fc706a6c480e84c722b9
BLAKE2b-256 checksum
How to use checksums
2430e5ea6a374cb496692a383c73462a47ba5a001a4b3152ac0d0664ccd80c81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.12.2

Security for simple-unit-system 0.0.8

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.

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