A simple Python tool to convert any word or phrase into binary code and visualize the sequence for building a personalized bead bracelet.
- π Description
- βοΈ How it Works
- π» Installation Guide
- π How to Run the Script
- π¨ How to Use
- π License
This project helps you design a bead bracelet with a hidden binary message.
You enter a word, initials, or phrase, and the program converts each character (including spaces) to its binary (ASCII) representation.
The output shows how many beads of each type you need, and the exact sequence to string them on your bracelet, easily visualized with symbols.
- Converts each character to its 8-bit binary ASCII representation
- Counts the number of "0" and "1" bits (beads)
- Prints a visual sequence to guide you in assembling your bracelet
πͺ Windows
- Go to python.org/downloads
- Download the latest version for Windows
- Run the installer:
- Check the box "Add Python to PATH"
- Click Install Now
- Open the Command Prompt (press
Win + R, typecmd, and press Enter) - Type:
You should see something like
python --versionPython 3.10.x(the exact version may vary).
π MacOS
- Open the Terminal (find it with Spotlight or in Applications > Utilities)
- Type:
python3 --version - If you see a version (like
Python 3.10.x), you're ready!
- If you don't have Homebrew, install it first:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" - Then install Python:
brew install python
- In Terminal, type:
python3 --version
π§ Linux
- Open a terminal and type:
python3 --version
-
Debian/Ubuntu:
sudo apt update sudo apt install python3 -
Fedora:
sudo dnf install python3 -
Arch:
sudo pacman -S python
- Type:
python3 --version
-
Download the file
Binary-bracelet.py -
Open a terminal (Command Prompt on Windows, Terminal on Mac/Linux)
-
Navigate to the folder where you saved the script.
Example:cd path/to/your/folder -
Run the script:
- On Windows:
python Binary-bracelet.py - On Mac/Linux:
python3 Binary-bracelet.py
- On Windows:
- When prompted, type your initials, word, or phrase.
- The script will show:
- Each characterβs ASCII and binary code
- How many beads of each type (for "0" and "1") you need
- The exact bead sequence to use (in the improved version)
- Use two different colors for "0" and "1" beads to craft your bracelet!