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.
Metadata
Release files for PyPressure 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| PyPressure-1.0.0.tar.gz | 3.2 kB | Without provenance | Details for PyPressure-1.0.0.tar.gz |
Release files / PyPressure-1.0.0.tar.gz
| Download URL | PyPressure-1.0.0.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
24136258e83db03af59585c8c26b2ba1d5b0098414698234bde9ea4d8602b7f5
|
|
BLAKE2b-256 checksum How to use checksums |
54c651497dd86b858b901b7bc0b1dcb8b1648af2db45976b073f9da2535799bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for PyPressure 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.