A super easy Python tool that converts your text into binary language.
Project description
BinaryConvert
A super easy Python tool that converts your text into binary language (8-bit).
Installation
pip install binaryconvert
Example
ToBinary()
from binaryconvert import convert
convert.ToBinary("Hi, my name is wfxey!")
Output
01001000 01100001 01100001 01101100 01100001 01101100 01101100 01100001 01100001 01101111
ToText()
from binaryconvert import convert
convert.ToText("01001000 01100001 01100001 01101100 01100001 01101100 01101100 01100001 01100001 01101111")
Output
Hi, my name is wfxey!
CLI Usage
BinaryConvert also provides a command line interface (CLI) for easy conversion without writing a single line of Python code.
ToBinary Command
Convert normal text to binary (8-bit) using the to_binary command.
python -m binaryconvert to_binary "Hi, my name is wfxey!"
Output
01001000 01101001 00101100 00100000 01101101 01111001 00100000 01101110 01100001 01101101 01100101 00100000 01101001 01110011 00100000 01110111 01100110 01111000 01100101 01111001 00100001
ToText Command
Convert binary (8-bit) to normal text using the to_text command.
python -m binaryconvert to_text "01001000 01101001 00101100 00100000 01101101 01111001 00100000 01101110 01100001 01101101 01100101 00100000 01101001 01110011 00100000 01110111 01100110 01111000 01100101 01111001 00100001"
Output
Hi, my name is wfxey!
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
binaryconvert-2.6.tar.gz
(3.2 kB
view details)
Built Distribution
File details
Details for the file binaryconvert-2.6.tar.gz
.
File metadata
- Download URL: binaryconvert-2.6.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a415c2b30a5738f38f6f2fe404e559443b3b4f1750297a8cb8d4ecb04db2d74e |
|
MD5 | 1060edb4f62c46407068d648d0f93e5d |
|
BLAKE2b-256 | b360dc4390670dff53c59f9fb7e4fac39612bdd3b78100321b9edbf8e8d8cdc2 |
File details
Details for the file binaryconvert-2.6-py3-none-any.whl
.
File metadata
- Download URL: binaryconvert-2.6-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b72433353d95ce81bfda1905d2f7ded08e7696a04f1375c6fea9ecc0231b2bf |
|
MD5 | 180f11cdb56f56b3e22e2353143b8566 |
|
BLAKE2b-256 | 899d88f50c1d355160468bbeef5018d2279fdaa1b4c650dcc4f3e2e4997fa4a4 |