TemperaturePy
A Simple temperature conversion library for Python 3.
Examples
Easy Conversions
>> from temperature import Temperature
>> celsius: int = 25
>> kelvin: Temperature = Temperature.ctok(celsius)
>> kelvin
298.15
Simple maths and comparisons built in
>> from temperature import Temperature
>> start_temp: Temperature = Temperature(150)
>> end_temp: Temperature = Temperature(100)
>> delta_t = start_temp - end_temp
>> delta_t
Temperature(kelvin=50, celsius=-223.15, farenheit=-369.67, rankine=90.0)
Clamped to real bounds
>> from temperature import Temperature
>> impossible = Temperature(-1)
ValueError: Temperature cannot be below Absolute Zero
License
This project is released under the MIT license
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
temperaturePy-1.0.0.tar.gz
(3.4 kB
view details)
File details
Details for the file temperaturePy-1.0.0.tar.gz.
File metadata
- Download URL: temperaturePy-1.0.0.tar.gz
- Upload date:
- Size: 3.4 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 |
9d081e0ab02e94e39bd3819f3533649388cd684f6189f7f7dc3baf1109e84998
|
|
| MD5 |
a15c8391b2403cd0133d9140570839a9
|
|
| BLAKE2b-256 |
5519ee1e90a3b0c59ff95388754b89bda191d8b1c0b05878fc5f8b6128e7cb16
|