A widget to convert decimal to binary, binary to decimal, ASCII to binary
Project description
decitobin 🧒🔢 decitobin is a versatile Python tool that converts between number systems and text — now with a web-style user interface and enhanced features.
Whether you're converting decimal to binary, exploring ASCII encoding, or transforming hexadecimal strings, decitobin offers an interactive and beginner-friendly experience.
🌟 Features 🧠 Support for multiple conversions:
- |----------------|
- | Decimal → Binary|
- | Binary → Decimal |
- | ASCII → Binary |
- | Binary → ASCII |
- | Hex → Binary |
- | Binary → Hex |
- | Decimal → Hex |
- | Hex → Decimal |
- |-------------| 🖥️ Graphical interface with dropdown selection (Tkinter-based)
🚀 Instant results with detailed formatting
📦 Easy to install and run on any platform
💻 Installation
pip install decitobin
🎮 Launching the App Run the converter using:
python -m decitobin
Or run your own launcher script using:
import decitobin
print(decitobin.dec2bin("12")) # Output: 1100
print(decitobin.ascii2bin("A")) # Output: 01000001
print(decitobin.bin2hex(1011)) # Output: A
print(decitobin.dec2hex(16)) # Output: F
✨ Example Conversions
| Input | Mode | Output |
|---|---|---|
| 13 | Decimal → Binary | 1101 |
| 1101 | Binary → Decimal | 13 |
| Hi | ASCII → Binary | 01001000 01101001 |
| 01001000 01101001 | Binary → ASCII | Hi |
| F0 | Hex → Binary | 11110000 |
| 11110000 | Binary → Hex | F0 |
| --------- | ------- | ------- |
| 📄 License | ||
| Licensed under the MIT License. |
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.4.tar.gz.
File metadata
- Download URL: decitobin-1.4.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
16c41e38bfcd6698a5a7ea4ea47419db2b25abfce4d02b0b0d7a245a802102c0
|
|
| MD5 |
d0c0ec1300676a0ee9108652b284e84e
|
|
| BLAKE2b-256 |
bf45b73f10c3492733dfebc13fe8406cdd3815ff50ba4525f9ec26fc7e17604b
|
File details
Details for the file decitobin-1.4-py3-none-any.whl.
File metadata
- Download URL: decitobin-1.4-py3-none-any.whl
- Upload date:
- Size: 4.1 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 |
fd966aec9f4211610838123dc88a7d810735fd3fcf6dac7ea736c282cfe5b43d
|
|
| MD5 |
dc96cdd87f1872264cc2e3dbb354eaa7
|
|
| BLAKE2b-256 |
047f74268f5e83cae79270547b8870887e5c19256951a418bd898366d4bc4b8a
|