Skip to main content

No project description provided

Project description

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.

Project details


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.2.tar.gz (16.9 kB view details)

Uploaded Source

Built Distribution

pysem_converters-0.2-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

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

Hashes for pysem-converters-0.2.tar.gz
Algorithm Hash digest
SHA256 15bcc778daa0c2fc0ea18ce92561f70284b9a4efd8dd8f01afb4f0910a93ef83
MD5 d2b81c6b817b17e62793d0ce2e68774d
BLAKE2b-256 58f922b81b686204b59617c17cd285b0365d27da1d75af5ed0220a29a6d5c5e1

See more details on using hashes here.

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

Hashes for pysem_converters-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 307b0d366773aca001d23d588cd77b9219e2e83457f98cbf57f4cbdedaca19a2
MD5 34cecdcfa28119e713b1807e2622e75f
BLAKE2b-256 dafe8b2ecafed713398b13ee9acf27bd4f35b9f33d41263e0ed5317d73c4ed18

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page