ConverterPro is a Python library that allows developers to convert units easily.
A python library to convert units and currencies
This python library will allow developers to easily incorporate conversions into their programs without having to write all the logic for it. The library currently has the following functionalities:
converterpro can be found on PyPi and hence can be installed with pip
:
pip install converterpro
>>> from converterpro import weight_converter
>>> my_gram = weight_converter.Gram(1.0)
>>> my_gram.convert_to_kilograms()
0.001
This library project is a pure python project using modern tooling. It uses a Makefile
as a command registry, with the following commands:
make
: list available commandsmake install
: install and build this library and its dependencies using poetry
make lint
: perform static analysis of this library with ruff
and black
make format
: autoformat this library using black
and ruff
make test
: run automated tests with pytest
make coverage
: run automated tests with pytest
and collect coverage information
Please see CONTRIBUTING for more information.
This software is licensed under the Apache 2.0 license. Please see LICENSE for more information.
Main Maintainer: Lily Sam