decitobin
A small Python library and CLI for converting decimal, binary, hexadecimal, octal, ASCII, and duodecimal values.
Features
- Python API with fractional decimal support
- Common aliases such as
dec,bin,hexadecimal, andbase16 - Friendly Tkinter desktop interface
- Simple CLI entry points
Installation
pip install decitobin
Python API
from decitobin import convert_value
print(convert_value("10", "decimal", "binary"))
print(convert_value("1010", "binary", "decimal"))
print(convert_value("FF", "hexadecimal", "dec"))
Supported conversions are decimal, binary, hex, octal, ASCII, and duodecimal.
Unsupported source/target pairs raise ConversionError; malformed values raise
ValueError.
GUI
Run the interface with:
decitobin
CLI
decitobin-cli --from decimal --to binary 10
# 1010
Testing
Run the standard-library test suite from the project directory:
python -m unittest discover -s tests -v
Metadata
Release files for decitobin 2026.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| decitobin-2026.5.tar.gz | 6.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| decitobin-2026.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.9 kB
Release files / decitobin-2026.5.tar.gz
| Download URL | decitobin-2026.5.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0cd227fadd3a1c927066a7145329033cac74092679eff2f424deb8fa3d47af4e
|
|
BLAKE2b-256 checksum How to use checksums |
56ae4632845016243caef0c2c96547ca1f9d2de8252ec4089dbcd8b9cf5c8fcb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.5
|
Release files / decitobin-2026.5-py3-none-any.whl
| Download URL | decitobin-2026.5-py3-none-any.whl |
|---|---|
| Size | 6.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2427f9ad201501a500504c3a73530f0fde44d680d7d57f13196cab1a8d050a83
|
|
BLAKE2b-256 checksum How to use checksums |
9ed5a094c71f9565e0e60ebef0e04c7af02555747f07ceef9bacb87db22a7dac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.5
|