Skip to main content

A super easy Python tool that converts your text into binary language.

Project description

BinaryConvert

PyPI - Downloads

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

Uploaded Source

Built Distribution

binaryconvert-2.7-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file binaryconvert-2.7.tar.gz.

File metadata

  • Download URL: binaryconvert-2.7.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for binaryconvert-2.7.tar.gz
Algorithm Hash digest
SHA256 b9a008366dd8b67bfccb4b9560a33d2fbe88d17d64464b40bfa6d53852c22b57
MD5 8664cc3ead4dac6fd58737600e75b66a
BLAKE2b-256 e35027609cf4a2264163aeecb091c373ac1c5158e0fc5b7dedb85f1fbaa96151

See more details on using hashes here.

File details

Details for the file binaryconvert-2.7-py3-none-any.whl.

File metadata

  • Download URL: binaryconvert-2.7-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for binaryconvert-2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 df61020b97d9aa4fb4f8946fc41419022e1d8e9c58371e2dd224af43b109d635
MD5 5cbc5a1608cbe74e1f2fe9fe6d1eadfa
BLAKE2b-256 9d6f948171c83e4bd06184e161ef0c1be7f74ddd54e28e05d47768772a7ecc1e

See more details on using hashes here.

Supported by

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