Introduction
============
.. image:: https://readthedocs.org/projects/binascii/badge/?version=latest
:target: https://docs.circuitpython.org/projects/binascii/en/latest/
:alt: Documentation Status
.. image:: https://raw.githubusercontent.com/adafruit/Adafruit_CircuitPython_Bundle/main/badges/adafruit_discord.svg
:target: https://adafru.it/discord
:alt: Discord
.. image:: https://github.com/adafruit/Adafruit_CircuitPython_binascii/workflows/Build%20CI/badge.svg
:target: https://github.com/adafruit/Adafruit_CircuitPython_binascii/actions/
:alt: Build Status
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
:target: https://github.com/psf/black
:alt: Code Style: Black
The binascii module contains a number of methods to convert between binary and various ASCII-encoded binary representations.
Dependencies
=============
This driver depends on:
* `Adafruit CircuitPython <https://github.com/adafruit/circuitpython>`_
Please ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloading
`the Adafruit library and driver bundle <https://github.com/adafruit/Adafruit_CircuitPython_Bundle>`_.
Installing from PyPI
=====================
On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
PyPI <https://pypi.org/project/adafruit-circuitpython-binascii/>`_. To install for current user:
.. code-block:: shell
pip3 install adafruit-circuitpython-binascii
To install system-wide (this may be required in some cases):
.. code-block:: shell
sudo pip3 install adafruit-circuitpython-binascii
To install in a virtual environment in your current project:
.. code-block:: shell
mkdir project-name && cd project-name
python3 -m venv .venv
source .venv/bin/activate
pip3 install adafruit-circuitpython-binascii
Usage Example
=============
Hex <-> Binary Conversions
.. code-block:: python
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 <https://docs.circuitpython.org/projects/binascii/en/latest/>`_.
For information on building library documentation, please check out `this guide <https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/sharing-our-docs-on-readthedocs#sphinx-5-1>`_.
Contributing
============
Contributions are welcome! Please read our `Code of Conduct
<https://github.com/adafruit/Adafruit_CircuitPython_binascii/blob/main/CODE_OF_CONDUCT.md>`_
before contributing to help this project stay welcoming.
Raw data
{
"_id": null,
"home_page": null,
"name": "adafruit-circuitpython-binascii",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "adafruit, blinka, circuitpython, micropython, binascii, binary, , ascii, , conversion",
"author": null,
"author_email": "Adafruit Industries <circuitpython@adafruit.com>",
"download_url": "https://files.pythonhosted.org/packages/ff/b8/1a0bf407415f4fa00dcee48e920d55a28ddfe9a6dd2de506a4c3f301c695/adafruit_circuitpython_binascii-2.0.5.tar.gz",
"platform": null,
"description": "Introduction\n============\n\n.. image:: https://readthedocs.org/projects/binascii/badge/?version=latest\n :target: https://docs.circuitpython.org/projects/binascii/en/latest/\n :alt: Documentation Status\n\n.. image:: https://raw.githubusercontent.com/adafruit/Adafruit_CircuitPython_Bundle/main/badges/adafruit_discord.svg\n :target: https://adafru.it/discord\n :alt: Discord\n\n.. image:: https://github.com/adafruit/Adafruit_CircuitPython_binascii/workflows/Build%20CI/badge.svg\n :target: https://github.com/adafruit/Adafruit_CircuitPython_binascii/actions/\n :alt: Build Status\n\n.. image:: https://img.shields.io/badge/code%20style-black-000000.svg\n :target: https://github.com/psf/black\n :alt: Code Style: Black\n\nThe binascii module contains a number of methods to convert between binary and various ASCII-encoded binary representations.\n\nDependencies\n=============\nThis driver depends on:\n\n* `Adafruit CircuitPython <https://github.com/adafruit/circuitpython>`_\n\nPlease ensure all dependencies are available on the CircuitPython filesystem.\nThis is easily achieved by downloading\n`the Adafruit library and driver bundle <https://github.com/adafruit/Adafruit_CircuitPython_Bundle>`_.\n\nInstalling from PyPI\n=====================\nOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from\nPyPI <https://pypi.org/project/adafruit-circuitpython-binascii/>`_. To install for current user:\n\n.. code-block:: shell\n\n pip3 install adafruit-circuitpython-binascii\n\nTo install system-wide (this may be required in some cases):\n\n.. code-block:: shell\n\n sudo pip3 install adafruit-circuitpython-binascii\n\nTo install in a virtual environment in your current project:\n\n.. code-block:: shell\n\n mkdir project-name && cd project-name\n python3 -m venv .venv\n source .venv/bin/activate\n pip3 install adafruit-circuitpython-binascii\n\nUsage Example\n=============\n\nHex <-> Binary Conversions\n\n.. code-block:: python\n\n from adafruit_binascii import hexlify, unhexlify\n # Binary data.\n data = b\"CircuitPython is Awesome!\"\n\n # Get the hexadecimal representation of the binary data\n hex_data = hexlify(data)\n print(\"Hex Data: \", hex_data)\n\n # Get the binary data represented by hex_data\n bin_data = unhexlify(hex_data)\n print(\"Binary Data: \", bin_data)\n\nDocumentation\n=============\n\nAPI documentation for this library can be found on `Read the Docs <https://docs.circuitpython.org/projects/binascii/en/latest/>`_.\n\nFor information on building library documentation, please check out `this guide <https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/sharing-our-docs-on-readthedocs#sphinx-5-1>`_.\n\nContributing\n============\n\nContributions are welcome! Please read our `Code of Conduct\n<https://github.com/adafruit/Adafruit_CircuitPython_binascii/blob/main/CODE_OF_CONDUCT.md>`_\nbefore contributing to help this project stay welcoming.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Helpers for conversions between binary and ASCII",
"version": "2.0.5",
"project_urls": {
"Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_binascii"
},
"split_keywords": [
"adafruit",
" blinka",
" circuitpython",
" micropython",
" binascii",
" binary",
" ",
" ascii",
" ",
" conversion"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "fc141bc9292c7362eeab63a2c70fe4f988f50db13d01ba76353071e3d07b502e",
"md5": "f2278e9de740ec7ef67ce2c66aa222f1",
"sha256": "9bb9977cc566007baa8194008703593de6dd2d2436a920f477e2e6189b86954d"
},
"downloads": -1,
"filename": "adafruit_circuitpython_binascii-2.0.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "f2278e9de740ec7ef67ce2c66aa222f1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 5564,
"upload_time": "2025-01-16T19:24:01",
"upload_time_iso_8601": "2025-01-16T19:24:01.115374Z",
"url": "https://files.pythonhosted.org/packages/fc/14/1bc9292c7362eeab63a2c70fe4f988f50db13d01ba76353071e3d07b502e/adafruit_circuitpython_binascii-2.0.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ffb81a0bf407415f4fa00dcee48e920d55a28ddfe9a6dd2de506a4c3f301c695",
"md5": "3ac753580b57e85865021d12d4cc4d0b",
"sha256": "d9c8c65ebd669b0940981e62b0bf745c02e7f5cee4afbac9651e993a5ee82b37"
},
"downloads": -1,
"filename": "adafruit_circuitpython_binascii-2.0.5.tar.gz",
"has_sig": false,
"md5_digest": "3ac753580b57e85865021d12d4cc4d0b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 26692,
"upload_time": "2025-01-16T19:24:05",
"upload_time_iso_8601": "2025-01-16T19:24:05.376713Z",
"url": "https://files.pythonhosted.org/packages/ff/b8/1a0bf407415f4fa00dcee48e920d55a28ddfe9a6dd2de506a4c3f301c695/adafruit_circuitpython_binascii-2.0.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-16 19:24:05",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "adafruit",
"github_project": "Adafruit_CircuitPython_binascii",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "Adafruit-Blinka",
"specs": [
[
">=",
"7.2.3"
]
]
}
],
"lcname": "adafruit-circuitpython-binascii"
}