Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Synopsis

otomap 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 oto
True
>>> list(oto)
[('foo', 'bar')]
>>> oto.left['foo']
'bar'
>>> oto.right['bar']
'foo'
>>> oto.left['X'] = 'bar'
>>> list(oto)
[('X', 'bar')]
>>> del oto.right['bar']
>>> oto.left.items()
[]

Metadata

Release files for otomap 1.cc5c453ebfbe00229f6e605f38fb5be824394996

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for otomap 1.cc5c453ebfbe00229f6e605f38fb5be824394996
File Size Uploaded
otomap-1.cc5c453ebfbe00229f6e605f38fb5be824394996.tar.gz 4.2 kB Details

Release files / otomap-1.cc5c453ebfbe00229f6e605f38fb5be824394996.tar.gz

Download URL otomap-1.cc5c453ebfbe00229f6e605f38fb5be824394996.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
08fe964754b20b797aa3b66bf256db39b9842fd92b04777dba596eecd455d766
BLAKE2b-256 checksum
How to use checksums
9a700ea56d9b0989a5612c995b68f430789bf0b38ae826e5fb5678c681fcd793
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page