Skip to main content

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


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)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page