A simple unit converter for chemical engineering
Project description
z-units
A simple unit converter for chemical engineering
install
pip install z-units
Usage
from z_units import quantity as q
# pick a quantity
f = q.MolarFlow(3)
# to base unit
f.to_base()
# convert
f.to('kmol/s')
# list available units
print(f.units)
# get value
unit, value = f.unit, f.value
# gauge pressure
p = q.Pressure(5, 'bar').to('MPag')
# change local atmospheric pressure (default: 101.325 kPa)
from z_units import config
config.set_local_atmospheric_pressure(50)
q.Pressure(100, 'kPa').to('kPag')
# change standard temperature (default: 20 degC)
# affect standard cubic meter "Sm**3"
config.set_standard_temperature(15)
q.Substance(100, 'Nm3').to('Sm3')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
z_units-0.1.1.tar.gz
(13.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
z_units-0.1.1-py3-none-any.whl
(11.3 kB
view details)
File details
Details for the file z_units-0.1.1.tar.gz.
File metadata
- Download URL: z_units-0.1.1.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.7.4 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5aa7112ac74c126294c76641a68fdf76534b3341c65cd299b5978e57e6b9238f
|
|
| MD5 |
839b31f87872c8bd7d76ecdca1b39d0f
|
|
| BLAKE2b-256 |
14e6e5ef5f5078676929aff0a330b41329588c27f4a9e84b463098c6d9165964
|
File details
Details for the file z_units-0.1.1-py3-none-any.whl.
File metadata
- Download URL: z_units-0.1.1-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: pdm/2.7.4 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ba7019db2f14256d84b519b441685b691cb571fc816c0324be5e40691ad1cc0
|
|
| MD5 |
e57169ddf6ebdab3113b516f3fba6ff5
|
|
| BLAKE2b-256 |
0ea8c189d0ad4f3e01e2ee2baa67ddfcf250f2ade063ea1b818550945f1c6ab1
|