converterpy
converterpy is designed as a customizable conversion tool to convert one thing to another.
Usage
Usage:
convert <value> <source> to <target> [-v|--verbose]
convert <source> to <target> <value> [-v|--verbose]
convert list [<source>] [-v|--verbose]
convert --version
Options:
-h --help Show usage.
-v --verbose Enable verbose mode for debugging.
--version Show version.
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
Metadata
Release files for converterpy 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| converterpy-1.0.0.tar.gz | 9.6 kB | Without provenance | Details for converterpy-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| converterpy-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for converterpy-1.0.0-py3-none-any.whl |
Total release size: 23.9 kB
Release files / converterpy-1.0.0.tar.gz
| Download URL | converterpy-1.0.0.tar.gz |
|---|---|
| Size | 9.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e0867c001af7f6ad985cde176f62dc053cbd7f5e43d627236bbca0139bd6510d
|
|
BLAKE2b-256 checksum How to use checksums |
c3c5103169e35e3afcb91f232cb2a9a3bdbf253254215bc81f7db3f8237a6c6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Release files / converterpy-1.0.0-py3-none-any.whl
| Download URL | converterpy-1.0.0-py3-none-any.whl |
|---|---|
| Size | 14.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3effeb69342d033ed96d021593e7c9302e1f965e3374f503fdda50875aa9db4c
|
|
BLAKE2b-256 checksum How to use checksums |
6a069c479cef2ae11894cf7575c64b3c788df40a8e0d41d2a89fd4ec11a6eee0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Security for converterpy 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.