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

https://github.com/sushobhit27/bimap

A bidirectional dictionary similar to the boost bimap but in python.
https://github.com/sushobhit27/bimap

bidict bidirectional-dictionary bimap boost

Last synced: 2 months ago
JSON representation

A bidirectional dictionary similar to the boost bimap but in python.

Awesome Lists containing this project

README

          

==========
Bimap
==========

Bimap is a bidirectional dictionary, similar to boost bimap.

------------------------
Usage
------------------------

.. code-block:: python

from bimap import Bimap
bm = Bimap()
bm.left[1] = 'a'
bm.left[2] = 'b'
bm.left[3] = 'c'

assert bm.left[2] == 'b'
assert bm.right['c'] == 3

.. code-block::

------------------------
Installation
------------------------

.. code-block::

pip install bimap