Skip to main content

A widget to convert decimal to binary, ASCII to binary, binary to decimal

Project description

PyPI version Requires

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


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.3.tar.gz (3.7 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.3-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

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

Hashes for decitobin-1.2.3.tar.gz
Algorithm Hash digest
SHA256 a2e331fd2cfa327b3cdb623834df7d04455f5c9c3663a80b220bed8171944fff
MD5 4785b9779d1435be408aac4dc088df33
BLAKE2b-256 61978ac1e21629a0436640e840540a8a9c58e678f4d3b5b37d14955853bfb709

See more details on using hashes here.

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

Hashes for decitobin-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6b5a0b1bfdbbdf3f569d60f4870245ba1cac36bf3ad3b6bf5ad8d489089cc714
MD5 eab5839ee08249a5b4353dc42b1440f6
BLAKE2b-256 0d53753fdedeea63c8137faaa180fae9690eb4da0f213bd9bfd3fddbe4294c3a

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