Pysem-converters is a modular library to simplify unit conversions
Pysem-converters makes conversions very simple and intuitive. It supports many units.
-
OBJECT CONVERTERS
- isString
- isInt
- isFloat
- isBytes
- isBool
- isDictionary
- isList
- isSet
- isTuple
- isJson
- json_to_str
- json_to_bytes
- json_to_xml
- str_to_bytes
- str_to_json
- bytes_to_str
- bytes_to_json
-
TIME CONVERTERS
- seconds
- minutes
- hours
- days
- weeks
- fortnights
- years
- months
- centuries
- millenniums
-
TEMPERATURE CONVERTERS
- celsius
- fahrenheit
- kelvin
-
DISTANCE CONVERTERS
- centimeter
- millimeter
- kilometer
- inch
- hand
- foot
- yard
- mile
- light year
- astronomical unit
- parsec
- nautical mile
- angstrom
- micron
- planck length
Pint==0.16.1
# Using python pip
$ pip install pysem-converters
# Using git
$ git clone https://github.com/pysem/converters.git
$ cd converters
$ pip install -r requirements.txt
$ python setup.py install
cd /tests
python3 <test_name>.py
from pysem_converters import converter, SECONDS, MINUTES
print(converter(10, SECONDS, MINUTES))
pysem-converters is a python library, when installed, just import it to your project.
import pysem_converters
from pysem_converters import *
- Python
- Pint
- @tory1103 - Idea, Concept & Initial work
See also the list of contributors who participated in this project.