customizable converter tool to convert <source> to <target>
Project description
converterpy
converterpy 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
Examples
$ convert 3600 seconds to minutes -> '60'
$ convert 3600 sec to min -> '60'
$ convert 2500 g to kg -> '2.5'
$ convert 1610744400 ts to date -> '2021-01-16 00:00:00'
$ convert 100 centimeter to meter -> '1'
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)
- TimestampDateConverter (converts unix timestamp to date, date to timestamp format)
Installation
converterpy
requires Python 3.5+ to run.
Install with pip
$ pip install converterpy
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.2.tar.gz
(9.7 kB
view hashes)
Built Distribution
Close
Hashes for converterpy-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6600d16ef1e38778a09d92ed41137afaf389bb620d5779c8fe7b531f5e8cc11 |
|
MD5 | 1deb0618bc92963940f9e0a34bb4dd56 |
|
BLAKE2b-256 | a46f3f4626f2c7fb5d78d75a9d5ae802c704523dc719d3703cc955e599d04010 |