https://github.com/rmax/binary-repr
Converts integers to binary representation.
https://github.com/rmax/binary-repr
Last synced: 6 months ago
JSON representation
Converts integers to binary representation.
- Host: GitHub
- URL: https://github.com/rmax/binary-repr
- Owner: rmax
- License: mit
- Created: 2016-06-17T03:53:17.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2021-04-20T17:16:19.000Z (about 5 years ago)
- Last Synced: 2025-05-15T09:14:46.667Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 27.3 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- Changelog: HISTORY.rst
- Contributing: CONTRIBUTING.rst
- License: LICENSE
Awesome Lists containing this project
README
===============================
Binary Representation
===============================
.. image:: https://img.shields.io/pypi/v/binary-repr.svg
:target: https://pypi.python.org/pypi/binary-repr
.. image:: https://img.shields.io/travis/rolando/binary-repr.svg
:target: https://travis-ci.org/rolando/binary-repr
.. image:: https://readthedocs.org/projects/binary-repr/badge/?version=latest
:target: https://readthedocs.org/projects/binary-repr/?badge=latest
:alt: Documentation Status
Converts integers to binary representation.
Yes, a Cython spinoff of ``numpy.binary_repr`` function.
* Free software: MIT license
* Documentation: https://binary-repr.readthedocs.org.
Features
--------
* TODO
* this provides binary_repr function INT/LONG -> BYTES 1/0's
* handle fixed width
* signed/unsigned
* the inverse binary repr is integer_repr BYTES -> LONG
* unsigned / signed
* always long
Credits
---------
This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage