Skip to main content

PYSEM-CONVERTERS

GitHub status GitHub issues GitHub pull requests GitHub license GitHub last commit


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

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)

Source distribution for pysem-converters 0.2
File Size Uploaded
pysem-converters-0.2.tar.gz 16.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pysem-converters 0.2
File Interpreter ABI Platform
pysem_converters-0.2-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.2 This release

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page