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.
Metadata
Release files for pysem-converters 0.2
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 |
|---|---|---|---|---|
| pysem-converters-0.2.tar.gz | 16.9 kB | Without provenance | Details for pysem-converters-0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pysem_converters-0.2-py3-none-any.whl | Python 3 | none | any | Details for pysem_converters-0.2-py3-none-any.whl |
Total release size: 34.4 kB
Release files / pysem-converters-0.2.tar.gz
| Download URL | pysem-converters-0.2.tar.gz |
|---|---|
| Size | 16.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
15bcc778daa0c2fc0ea18ce92561f70284b9a4efd8dd8f01afb4f0910a93ef83
|
|
BLAKE2b-256 checksum How to use checksums |
58f922b81b686204b59617c17cd285b0365d27da1d75af5ed0220a29a6d5c5e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / pysem_converters-0.2-py3-none-any.whl
| Download URL | pysem_converters-0.2-py3-none-any.whl |
|---|---|
| Size | 17.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
307b0d366773aca001d23d588cd77b9219e2e83457f98cbf57f4cbdedaca19a2
|
|
BLAKE2b-256 checksum How to use checksums |
dafe8b2ecafed713398b13ee9acf27bd4f35b9f33d41263e0ed5317d73c4ed18
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for pysem-converters 0.2
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.