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
```bash
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
decitobin-1.2.2.tar.gz
(3.7 kB
view details)
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.2.tar.gz.
File metadata
- Download URL: decitobin-1.2.2.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 |
36c77a74fb50411576b80b4df26b4cbdda5b5146b171fb7c0cb1049234312bb3
|
|
| MD5 |
f90cac9a8cafc6455d2467795b57c20e
|
|
| BLAKE2b-256 |
26a0f6b3f494acc254d2450bba4771034ddceeae27ca4acbcab1993fdbbab362
|
File details
Details for the file decitobin-1.2.2-py3-none-any.whl.
File metadata
- Download URL: decitobin-1.2.2-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 |
bb6ae7f07c09b188faaf37274dbd32407ce509b00311dc784d4c352f223b93c3
|
|
| MD5 |
35a9a7ef402c31504fd1c64da1019212
|
|
| BLAKE2b-256 |
0ca265683ddb28d3fc4338c0620083bf9124a608235095130980ba70e1a63ac5
|