otomapOne-to-One mapping with MutableSet interface and directional MutableMapping facets.wit | |
Download |
otomap Ranking & Summary
Advertisement
- License:
- MIT/X Consortium Lic...
- Price:
- FREE
- Publisher Name:
- Nathan Wilcox
- Publisher web site:
- https://bitbucket.org/nejucomo/
otomap Tags
otomap Description
otomap is a Python module that provides a one-to-one mapping abstraction, presented with a MutableSet interface of (left, right) entries. An OTOMap instance also has left and right facet attributes which both provide MutableMapping interfaces with complementary directionality.Examples>>> from otomap import OTOMap>>> oto = OTOMap()>>> oto.add(('foo', 'bar'))>>> ('foo', 'bar') in otoTrue>>> list(oto)>>> oto.left'bar'>>> oto.right'foo'>>> oto.left = 'bar'>>> list(oto)>>> del oto.right>>> oto.left.items()[]Product's homepage
otomap Related Software