Skip to main content

Base conversion command line utility.

Project description

convbase

PyPI - Status PyPI - Version PyPI - License PyPI - Python Version Actions status

Base conversion command line utility.

Installation

You can install convbase using uv or pip:

uv pip install convbase
# or
pip install convbase

Usage

convbase provides four command-line tools for quick base conversions:

bin - Convert to Binary

Converts a decimal, octal (prefix 0o), or hexadecimal (prefix 0x) value to binary.

$ bin 10
0b1010
$ bin 0xFF
0b11111111

oct - Convert to Octal

Converts a value to octal.

$ oct 10
0o12
$ oct 0b1010
0o12

dec - Convert to Decimal

Converts a value to decimal.

$ dec 0b1010
10
$ dec 0xFF
255

hex - Convert to Hexadecimal

Converts a value to hexadecimal.

$ hex 10
0xa
$ hex 0b1111
0xf

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

convbase-0.2.1.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

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

convbase-0.2.1-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file convbase-0.2.1.tar.gz.

File metadata

  • Download URL: convbase-0.2.1.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for convbase-0.2.1.tar.gz
Algorithm Hash digest
SHA256 675f210135208aa2990fa922fbd4f0577eb7e95434a98958cee85786625b7510
MD5 076a20efca8f42b5b93a66fa9eb6bcc4
BLAKE2b-256 5abaad5e2b28011bf41462bd1240d280f1e47d7c27d1230182e4fd7a61cce4c5

See more details on using hashes here.

Provenance

The following attestation bundles were made for convbase-0.2.1.tar.gz:

Publisher: cd.yml on jkomalley/convbase

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file convbase-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: convbase-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for convbase-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4a4b64b5db66907e52121c7a686c7e14d5666ed182ffa98c5164b2f6c59655e0
MD5 d7f25d53c2bdfcfd83705655ad43e72e
BLAKE2b-256 ad3855a03cea5d55f746d60c71875935c8d8ca741e258d4a7b6dd8fcc7e34734

See more details on using hashes here.

Provenance

The following attestation bundles were made for convbase-0.2.1-py3-none-any.whl:

Publisher: cd.yml on jkomalley/convbase

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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