Skip to main content

Python converter library

Project description

ConverterPro

A python library to convert units and currencies

Hex.pm GitHub issues Build Status Coverage Status black poetry PyPI Deployment Documentation Status

🔭 Overview

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:

📝 Features

  • Weight conversion between Metric, Imperial and US Systems of Measurement
    • Grams
    • Milligrams
    • Kilograms
    • Metric Tonnes
    • Imperial Tons
    • US tons
    • Pounds
    • Ounces

🛠️ Installation

converterpro can be found on PyPi and hence can be installed with pip:

pip install converterpro

⛯ Basic Usage

>>> from converterpro import weight_converter
>>> my_gram = weight_converter.Gram(1.0)
>>> my_gram.convert_to_kilograms()
0.001

📝 Details

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 commands
  • make 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

👩🏾‍💻👨🏾‍💻 Contributing

Please see CONTRIBUTING for more information.

🪪 License

This software is licensed under the Apache 2.0 license. Please see LICENSE for more information.

🙎🏾‍ Author

Main Maintainer: Lily Sam

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

converterpro-0.1.2.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

converterpro-0.1.2-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file converterpro-0.1.2.tar.gz.

File metadata

  • Download URL: converterpro-0.1.2.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.9.7 Darwin/22.2.0

File hashes

Hashes for converterpro-0.1.2.tar.gz
Algorithm Hash digest
SHA256 eeeee52aeb64be1e60b2e05256db9adf67831c905b0e4344fa432ff88120c550
MD5 9a0e5e28cd45d0c8595b4564ff663b4c
BLAKE2b-256 a4170ea537f868d99f4ea9d80450db2d6bb96954ae4ef99a995e02f238c04042

See more details on using hashes here.

File details

Details for the file converterpro-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: converterpro-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.9.7 Darwin/22.2.0

File hashes

Hashes for converterpro-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 df3d0c459c459dac2109a6cfb08e0bc573a2ecc84fc74c779a6f869baa299774
MD5 06490f1a857265daa817b7dd1f4f57d2
BLAKE2b-256 aad86e050b91121c0e0ff286d4aafeffe815b9b85236c8cc1fd0654075dae0fc

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