Skip to main content

Introduction

Documentation Status Discord Build Status Code Style: Ruff

The binascii module contains a number of methods to convert between binary and various ASCII-encoded binary representations.

Dependencies

This driver depends on:

Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle.

Installing from PyPI

On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally from PyPI. To install for current user:

pip3 install adafruit-circuitpython-binascii

To install system-wide (this may be required in some cases):

sudo pip3 install adafruit-circuitpython-binascii

To install in a virtual environment in your current project:

mkdir project-name && cd project-name
python3 -m venv .venv
source .venv/bin/activate
pip3 install adafruit-circuitpython-binascii

Usage Example

Hex <-> Binary Conversions

from adafruit_binascii import hexlify, unhexlify
# Binary data.
data = b"CircuitPython is Awesome!"

# Get the hexadecimal representation of the binary data
hex_data = hexlify(data)
print("Hex Data: ", hex_data)

# Get the binary data represented by hex_data
bin_data = unhexlify(hex_data)
print("Binary Data: ", bin_data)

Documentation

API documentation for this library can be found on Read the Docs.

For information on building library documentation, please check out this guide.

Contributing

Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.

Release files for adafruit-circuitpython-binascii 2.0.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for adafruit-circuitpython-binascii 2.0.10
File Size Uploaded
adafruit_circuitpython_binascii-2.0.10.tar.gz 23.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for adafruit-circuitpython-binascii 2.0.10
File Interpreter ABI Platform
adafruit_circuitpython_binascii-2.0.10-py3-none-any.whl Python 3 none any Details

Total release size: 29.1 kB

Release files / adafruit_circuitpython_binascii-2.0.10.tar.gz

Download URL adafruit_circuitpython_binascii-2.0.10.tar.gz
Size 23.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f6d8c9c1eb8703d8d0cb27a9dc04548c4022d9542491a7280239c6dd3480acc3
BLAKE2b-256 checksum
How to use checksums
8d64b4936643c005df5869bd458ab14d6973adb1e256cb8822fddc23ec921509
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / adafruit_circuitpython_binascii-2.0.10-py3-none-any.whl

Download URL adafruit_circuitpython_binascii-2.0.10-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dd58611e91f66c69edcd93499dd47e50d6b9e086f53a1a02ebada25a9b06f0a5
BLAKE2b-256 checksum
How to use checksums
4dea43218694405e20564f016c5fc8f6b2481e6e83e6dc7332e3461381ff3734
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release history Release notifications | RSS feed

This release

2.0.10 This release

2 release files

2.0.9

2 release files

2.0.8

2 release files

2.0.7

2 release files

2.0.6

2 release files

2.0.5

2 release files

2.0.4

2 release files

2.0.3

2 release files

2.0.2

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.2.15

2 release files

1.2.14

2 release files

1.2.12

1 release file

1.2.11

1 release file

1.2.10

1 release file

1.2.9

1 release file

1.2.8

1 release file

1.2.7

1 release file

1.2.6

1 release file

1.2.5

1 release file

1.2.4

1 release file

1.2.3

1 release file

1.2.2

1 release file

1.2.1

1 release file

1.2.0

1 release file

1.1

1 release file

1.0.2

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page