An open API service indexing awesome lists of open source software.

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.

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