Skip to main content

base-bcd-kit

A lightweight, zero-dependency Python utility for converting between Decimal, Binary, Hexadecimal, 4-bit BCD (Binary Coded Decimal), and 8-bit ASCII.

Prefer an instant browser interface or offline PWA?
Try the interactive calculators at BinaryConverter.org, including the BCD Converter and ASCII to Binary Converter.

Installation

pip install base-bcd-kit

Quick Usage

from base_bcd_kit import (
    dec_to_bin,
    bin_to_dec,
    dec_to_hex,
    dec_to_bcd,
    bcd_to_dec,
    text_to_ascii_bin,
)

print(dec_to_bin(42))            # '101010'
print(bin_to_dec("101010"))      # 42
print(dec_to_hex(255))           # 'FF'
print(dec_to_bcd(25))            # '0010 0101'
print(bcd_to_dec("0010 0101"))   # '25'
print(text_to_ascii_bin("Hi"))   # '01001000 01101001'

License

MIT License

Metadata

Release files for base-bcd-kit 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for base-bcd-kit 0.1.0
File Size Uploaded Provenance Actions
base_bcd_kit-0.1.0.tar.gz 3.3 kB Without provenance Details for base_bcd_kit-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for base-bcd-kit 0.1.0
File Interpreter ABI Platform Actions
base_bcd_kit-0.1.0-py3-none-any.whl Python 3 none any Details for base_bcd_kit-0.1.0-py3-none-any.whl

Total release size: 6.9 kB

Release files / base_bcd_kit-0.1.0.tar.gz

Download URL base_bcd_kit-0.1.0.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2024a329d5f60f5accd00c195657dce7a424c512daebe3159509ca38aafeba13
BLAKE2b-256 checksum
How to use checksums
53bcd2565a6fa4c005eaacaebcb823ef50b5a550cdb51a720b12a0c329528b68
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / base_bcd_kit-0.1.0-py3-none-any.whl

Download URL base_bcd_kit-0.1.0-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
00d88cc11dc839e9ccb96f41a272cb4264ddb4c95cc5f844fe0b26e7e290b5c6
BLAKE2b-256 checksum
How to use checksums
f9b0505c34bd654cc747793f9c4015b4cffe2f7e1e72f5cb5cf758eb67818321
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for base-bcd-kit 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page