CLI base number type converter
Project description
Convpy
convpy is a simple command line interface to convert from one base type number to another. It covers base 2, 8, 10, and 16. convpy will also take in a file containing numbers of one base type and write the conversions to another file. Orchestrated with the Click Module.
Installation
Use the package manager pip to install convpy.
pip install convpy
pipx install convpy
Usage
To convert one number from the terminal supply the number, its base type, (b - binary, o - octal, d - decimal, x- hexidecimal), and the base you wish to convert to (-b, -o, -d, -x)
convpy conv 111 b -d
7
convpy supports full paths as well as existance validation on the input file, this command spawns a background process for the conversion such as not to lock out the terminal incase of large files.
convpy from-file ./hex_nums.txt ./binary_nums.txt x -b
License
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file convpy-0.9.1.tar.gz.
File metadata
- Download URL: convpy-0.9.1.tar.gz
- Upload date:
- Size: 19.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba648a74232b37a669d8b0c2dbe5908762aef76f00033378390966b9cb22061c
|
|
| MD5 |
dba11093d0dfb5be22c178a700aa443b
|
|
| BLAKE2b-256 |
b73fe3247fb1222678792c2858db3d348ba315c194377b2244c9f8b6d919e534
|
File details
Details for the file convpy-0.9.1-py3-none-any.whl.
File metadata
- Download URL: convpy-0.9.1-py3-none-any.whl
- Upload date:
- Size: 18.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d0f3e61a1690d65df1c60ffd1b5150d69f01987d8871afd42bf109cb8c54663
|
|
| MD5 |
cb24e6f19d63f80df39ba2c7ac8621e7
|
|
| BLAKE2b-256 |
c342f31635267a71149ba3a12085fc82d2afab93848f8393cbf371304c8a2ff5
|