A widget to convert decimal to binary, ASCII to binary, binary to decimal
Project description
decitobin
A simple Python library that converts decimal numbers to binary, binary to decimal, and ASCII text to binary representation. Created by a young developer from Vietnam, this tool includes a Tkinter GUI for educational use and basic encoding tasks.
🌟 Features
- Convert decimal integers to binary (
dec2bin) - Convert binary strings to decimal (
bin2dec) - Convert ASCII text to binary (
asciitobin) - Simple GUI built with Tkinter (run
gui.py) - Input validation and friendly error messages
📦 Installation
pip install decitobin
🧪 Usage
from decitobin import dec2bin, bin2dec, asciitobin
print(dec2bin(42)) # Output: '101010'
print(bin2dec('101010')) # Output: '42'
print(asciitobin('Hi')) # Output: '01001000 01101001'
📚 License
MIT License © 2025 Thai Lam
Built with ❤️ by a dev kid who roars in Python from Thanh Tri, Vietnam.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file decitobin-1.2.3.tar.gz.
File metadata
- Download URL: decitobin-1.2.3.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a2e331fd2cfa327b3cdb623834df7d04455f5c9c3663a80b220bed8171944fff
|
|
| MD5 |
4785b9779d1435be408aac4dc088df33
|
|
| BLAKE2b-256 |
61978ac1e21629a0436640e840540a8a9c58e678f4d3b5b37d14955853bfb709
|
File details
Details for the file decitobin-1.2.3-py3-none-any.whl.
File metadata
- Download URL: decitobin-1.2.3-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b5a0b1bfdbbdf3f569d60f4870245ba1cac36bf3ad3b6bf5ad8d489089cc714
|
|
| MD5 |
eab5839ee08249a5b4353dc42b1440f6
|
|
| BLAKE2b-256 |
0d53753fdedeea63c8137faaa180fae9690eb4da0f213bd9bfd3fddbe4294c3a
|