Skip to content

Latest commit

 

History

History
30 lines (21 loc) · 463 Bytes

README.rst

File metadata and controls

30 lines (21 loc) · 463 Bytes

Bimap

Bimap is a bidirectional dictionary, similar to boost bimap.

Usage

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

Installation

pip install bimap