Skip to main content

onetoonemap

This is a python module that implements a 1:1 mapping type - similar to a dict, but as well as looking up values by keys (m[k] -> v), you can look up keys by values (m[v] -> k).

Given m = OneToOneMap(), the following constraints are always true:

m.get(key) == value
m.get(value) == key

m.keys() == set(m.keys())
m.values() == set(m.values())
set(m.keys()) & set(m.values()) == set()
set.(m.keys()).isdisjoint(set(m.values())) == True

Metadata

Release files for onetoonemap 1.0.0

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

Source distribution (sdist)

Source distribution for onetoonemap 1.0.0
File Size Uploaded Provenance Actions
onetoonemap-1.0.0.tar.gz 2.0 kB Without provenance Details for onetoonemap-1.0.0.tar.gz

Release files / onetoonemap-1.0.0.tar.gz

Download URL onetoonemap-1.0.0.tar.gz
Size 2.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9b739c574f9dffb927e5c21e9c9fe90a29f4b94103cd3d73cdf9c3cb286852b7
BLAKE2b-256 checksum
How to use checksums
8e364cf8935d0509cebe035bb7cae81a9e9da509d80a663bdb386ce148c7394e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for onetoonemap 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file No provenance

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