No project description provided
Project description
PYSEM-CONVERTERS
Pysem-converters is a modular library to simplify unit conversions
📝 Table of Contents
🧐 About
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
🏁 Getting Started
Prerequisites
Pint==0.16.1
Installing
# 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
Break down into end to end tests
cd /tests
python3 <test_name>.py
🎈 Usage
from pysem_converters import time_converter, SECONDS, MINUTES
print(time_converter(10, SECONDS, MINUTES))
🚀 Deployment
pysem-converters is a python library, when installed, just import it to your project.
import pysem_converters
from pysem_converters import *
⛏️ Built Using
- Python
- Pint
✍️ Authors
- @tory1103 - Idea, Concept & Initial work
See also the list of contributors who participated in this project.
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
pysem-converters-0.1.tar.gz
(17.0 kB
view details)
Built Distribution
File details
Details for the file pysem-converters-0.1.tar.gz
.
File metadata
- Download URL: pysem-converters-0.1.tar.gz
- Upload date:
- Size: 17.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.4rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3dcbafcda1ede87caec370b932a6a29af6e2ed4d2e4c37449e5a8d36ac7f608 |
|
MD5 | 559d1570ead28159e607e3a4cf9259dc |
|
BLAKE2b-256 | f59d3c36d4292ad950c73b1fc6aeae5423cb5cfb4fa41b484271e6ba67f36b11 |
File details
Details for the file pysem_converters-0.1-py3-none-any.whl
.
File metadata
- Download URL: pysem_converters-0.1-py3-none-any.whl
- Upload date:
- Size: 17.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.4rc1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b621fc0a86f467a0e5e1e4dadb4a8bb3902a640b1a79a443a22b9e64bdf08f6a |
|
MD5 | c9be92cef2570870dbeee2bcc8491a36 |
|
BLAKE2b-256 | ff9a7b30c0ab952a24315ce522a8088f79768c3a2a9e5bf80800a4135ef613ca |