Skip to main content

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

GPLv3

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

convpy-0.9.1.tar.gz (19.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

convpy-0.9.1-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

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

Hashes for convpy-0.9.1.tar.gz
Algorithm Hash digest
SHA256 ba648a74232b37a669d8b0c2dbe5908762aef76f00033378390966b9cb22061c
MD5 dba11093d0dfb5be22c178a700aa443b
BLAKE2b-256 b73fe3247fb1222678792c2858db3d348ba315c194377b2244c9f8b6d919e534

See more details on using hashes here.

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

Hashes for convpy-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5d0f3e61a1690d65df1c60ffd1b5150d69f01987d8871afd42bf109cb8c54663
MD5 cb24e6f19d63f80df39ba2c7ac8621e7
BLAKE2b-256 c342f31635267a71149ba3a12085fc82d2afab93848f8393cbf371304c8a2ff5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page