Skip to content

pysem/converters

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 converter, SECONDS, MINUTES

print(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.

About

Conversion utilities for python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages