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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pysem-converters-0.2.tar.gz.
File metadata
- Download URL: pysem-converters-0.2.tar.gz
- Upload date:
- Size: 16.9 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 |
15bcc778daa0c2fc0ea18ce92561f70284b9a4efd8dd8f01afb4f0910a93ef83
|
|
| MD5 |
d2b81c6b817b17e62793d0ce2e68774d
|
|
| BLAKE2b-256 |
58f922b81b686204b59617c17cd285b0365d27da1d75af5ed0220a29a6d5c5e1
|
File details
Details for the file pysem_converters-0.2-py3-none-any.whl.
File metadata
- Download URL: pysem_converters-0.2-py3-none-any.whl
- Upload date:
- Size: 17.5 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 |
307b0d366773aca001d23d588cd77b9219e2e83457f98cbf57f4cbdedaca19a2
|
|
| MD5 |
34cecdcfa28119e713b1807e2622e75f
|
|
| BLAKE2b-256 |
dafe8b2ecafed713398b13ee9acf27bd4f35b9f33d41263e0ed5317d73c4ed18
|