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.2.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.2-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: convbase-0.2.2.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.2.tar.gz
Algorithm Hash digest
SHA256 b2a6318a2e28b0b0de7f09023935b80863014c24d2047ce5716e583053dcd5ca
MD5 eeebd94f8e2ff941b2837b5a3dd344d1
BLAKE2b-256 490b44e888c70319260c831ceec4948c5b27ea21005bac3b9ea4894f0a20e4ee

See more details on using hashes here.

Provenance

The following attestation bundles were made for convbase-0.2.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: convbase-0.2.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 247142cd51024877c9badadc62e12d1651436c8c33f2dcf13e895c2b0b751ffa
MD5 1ad00241851fc112326cf2ffd7a52237
BLAKE2b-256 9722edd99432544bc8d6afeab3ffb3783c9ad72bc14b86aa066bfbbc6d11361f

See more details on using hashes here.

Provenance

The following attestation bundles were made for convbase-0.2.2-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