Skip to main content

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.



---

💬 Muốn mình giúp bạn tạo ảnh minh họa cho GUI để chèn vào README, hoặc generate badge kiểu `pip install | PyPI | Python ≥3.7`, thì hú nhẹ nhé — mình sẽ gầm hóa từ Markdown tới metadata luôn! 🦖📦✨

Project details


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.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

decitobin-1.2.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file decitobin-1.2.1.tar.gz.

File metadata

  • Download URL: decitobin-1.2.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for decitobin-1.2.1.tar.gz
Algorithm Hash digest
SHA256 defc418b13662fa6ce35cb5405cb77fd346b403b01c5ec15b823ed6b35386050
MD5 ddd3c759fea6b94b627195bc01cfd9c6
BLAKE2b-256 fe1e283a00a383c2dc0513c868bcf269f91a19babe53f7eb7848430c596b459e

See more details on using hashes here.

File details

Details for the file decitobin-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: decitobin-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for decitobin-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 96483be42e1b025da35c9368dc78d6ef1e97c3d387628068171dbf463a1a5e34
MD5 78267ccfad6c3ad83830d414b58825c4
BLAKE2b-256 7ef87ded1df065caa3972bea558f661f6772c35a713537aa96e2b7a9fd321519

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page