Simple Pressure conversion library
Project description
PyPressure
A simple pressure conversion library for Python 3.
Installation
This project can be installed from PyPi
python3 -m pip install pypressure
Examples
Easy Conversions
>> from pypressure import Pressure
>> pa: float = 25.0
>> psi: float = Pressure.patopsi(pa)
>> psi
0.00362594
Simple Math and Comparisons built in
>> from pypressure import Pressure
>> start: Pressure = Pressure.frompsi(55.5)
>> end: Pressure = Pressure.frompsi(50.0)
>> delta_p = start - end
>> delta_p
Pressure(Pa=37921.2, psi=5.5, bar=0.38)
For more examples please see the examples folder
Supported Units
Currently the supported units are:
- Bar
- Pounds Per Square Inch (psi)
- Pascals (Pa)
Future Support for:
- Atmospheres (atm)
- Inch of Mercury Column (inHg)
- Kilogram per Centimeter (KgCm)
License
This project is released under the MIT license.
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
PyPressure-1.0.0.tar.gz
(3.2 kB
view details)
File details
Details for the file PyPressure-1.0.0.tar.gz.
File metadata
- Download URL: PyPressure-1.0.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24136258e83db03af59585c8c26b2ba1d5b0098414698234bde9ea4d8602b7f5
|
|
| MD5 |
c61a3238e753760a99400ec215cc811e
|
|
| BLAKE2b-256 |
54c651497dd86b858b901b7bc0b1dcb8b1648af2db45976b073f9da2535799bc
|