Skip to content

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

License

Notifications You must be signed in to change notification settings

sushobhit27/bimap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages