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 hashes)