customizable converter tool to convert <source> to <target>
Project description
convertpy
convertpy is designed as a customizable conversion tool to convert one thing to another.
Usage
usage: convert <value> <source> to <target> [optional arguments]
optional arguments:
-h, --help show help message
-v verbose mode
Example
$ convert 3600 seconds to minutes
60
Features
There are some built-in converters to use;
- SITimeConverter (converts the following units: seconds, minutes, hours)
- SILengthConverter (converts the following units: millimeter, centimeter, meter, kilometer)
- SIMassConverter (converts the following units: milligram, gram, kilogram)
- TimestampToDateConverter (converts unix timetstamp to date format)
Installation
convertpy
requires Python 3.5+ to run.
Install with pip
$ pip install convertpy
Custom Converters
Please follow the instructions in custom converter documentation.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
converterpy-0.0.1.dev1.tar.gz
(8.5 kB
view hashes)
Built Distribution
Close
Hashes for converterpy-0.0.1.dev1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 407f3f71e74c48f0c5976b49ce84a4c82c46b4065bc74dba5a8d36b7679fb6c5 |
|
MD5 | f9c2c225c18eda44381f3c9dca5fcd12 |
|
BLAKE2b-256 | bba691c3f0ad3d3562e6ca32f6b5cadf3fec01169285c24dc16419d09a4321bf |