Skip to main content

A widget to convert decimal 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
  • 🖥️ 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:

from decitobin import launch_ui
launch_ui()

✨ 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

📁 Project Structure

decitobin/
├── __init__.py
├── ui_webstyle.py     # Web-style interface
├── converters.py      # Core logic
├── __main__.py        # CLI launcher

📄 License

Licensed under the MIT License.


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

Uploaded Python 3

File details

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

File metadata

  • Download URL: decitobin-1.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.3.tar.gz
Algorithm Hash digest
SHA256 afe36030f1daa090ef565447291ebbca5a623054169d7ba3f1c07cc3d69114dc
MD5 9b9920a106e24910a3d10e29e7924c5a
BLAKE2b-256 bddb28412e54a97bdf253251b521f8e8014357767e490c2b5102c480182db46f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: decitobin-1.3-py3-none-any.whl
  • Upload date:
  • Size: 4.0 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5992c33a261040d020f98c37cc0ec38436c328f0265c9ca20d2041c3062c3fef
MD5 d434ea7cc3140a4fe9c50b1835f2c24a
BLAKE2b-256 a83c9e5c0ae47bb52478ad31cfee09e1625dfaf382071fc0c983e0a305c48022

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