A framework for applying physical units and performing unit conversions, for scientific and engineering analyses, based on NIST conversions and constants
Project description
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) )
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
Built Distribution
File details
Details for the file simple-unit-system-0.0.8.tar.gz
.
File metadata
- Download URL: simple-unit-system-0.0.8.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e9c8fc55d21e2f9dc653d1fd7c0fb67192b39472e82ce007ab67f03d1b0845b |
|
MD5 | 339b1d09af9fd0cb4658253d8f7b234c |
|
BLAKE2b-256 | 022c77d831fb84093bd08cb4fd4909bcfee511ad24fd18ac700f2aacc69f4b0a |
File details
Details for the file simple_unit_system-0.0.8-py3-none-any.whl
.
File metadata
- Download URL: simple_unit_system-0.0.8-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1c0a333d91da4ccb7a30de513fc8c3a2fbe50e3e564fc706a6c480e84c722b9 |
|
MD5 | 403fcd14457c9fbd21444e08b4ca28b0 |
|
BLAKE2b-256 | 2430e5ea6a374cb496692a383c73462a47ba5a001a4b3152ac0d0664ccd80c81 |