Skip to main content

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

Release files for converterpro 0.1.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 converterpro 0.1.2
File Size Uploaded
converterpro-0.1.2.tar.gz 8.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for converterpro 0.1.2
File Interpreter ABI Platform
converterpro-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 16.7 kB

Release files / converterpro-0.1.2.tar.gz

Download URL converterpro-0.1.2.tar.gz
Size 8.5 kB
Tags Source
SHA-256 checksum
How to use checksums
eeeee52aeb64be1e60b2e05256db9adf67831c905b0e4344fa432ff88120c550
BLAKE2b-256 checksum
How to use checksums
a4170ea537f868d99f4ea9d80450db2d6bb96954ae4ef99a995e02f238c04042
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.9.7 Darwin/22.2.0

Release files / converterpro-0.1.2-py3-none-any.whl

Download URL converterpro-0.1.2-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
df3d0c459c459dac2109a6cfb08e0bc573a2ecc84fc74c779a6f869baa299774
BLAKE2b-256 checksum
How to use checksums
aad86e050b91121c0e0ff286d4aafeffe815b9b85236c8cc1fd0654075dae0fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.9.7 Darwin/22.2.0

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

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