Skip to main content

CLI base number type converter

Reason this release was yanked:

errors in readme

Project description

Pyconv

Pyconv is a simple command line interface to convert from one base type number to another. It covers base 2, 8, 10, and 16. Pyconv 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 pyconv.

pip install pyconv
pipx install pyconv

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)

pyconv conv 111 b -d

7

Pyconv 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.

pyconv 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.0.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.0-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

Details for the file convpy-0.9.0.tar.gz.

File metadata

  • Download URL: convpy-0.9.0.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.0.tar.gz
Algorithm Hash digest
SHA256 9016817dc0d4585710c776277b9ef9de770e640f1625f6224791afafea076283
MD5 fb7cf8c53f5bf9bf3d9c5a7a1590c295
BLAKE2b-256 4bc8959c22ecb06d1ed468adaba122bd435994a172d239266a57161ca68f3940

See more details on using hashes here.

File details

Details for the file convpy-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: convpy-0.9.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 052c1f309fa7ccaeb59ef7b1eda1d3322b47089a71a0e742958d456b4a103a6a
MD5 f684b2de07459d7c3cde1f2a1bc613cf
BLAKE2b-256 24fd188e1a2ffaa949f52647779703755f182cc9dad1c5cc522f24b8d99eec37

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