Skip to main content

from odictliteral import odict

Provides a nice way of specifying ordered dictionaries from Python source.

Example:

>>> from odictliteral import odict
>>> x = odict[1:2,3:4]
>>> print(x)
odict[1: 2, 3: 4]

You can use odict as a replacement for OrderedDict otherwise, eg:

>>> y = odict( [(1,2), (3,4)] )
>>> print(y)
odict[1: 2, 3: 4]
>>> x == y
True

You should also be able to use odict in combination with OrderedDicts:

>>> z = OrderedDict( [(1,2), (3,4)] )
>>> print(z)
OrderedDict([(1, 2), (3, 4)])
>>> y == z
True

That’s pretty much all there is to it. Should be compatible with Python 2.7 and Python 3; requires the “ordereddict” module to work with Python 2.4, 2.5 or 2.6.

Metadata

Release files for odictliteral 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 odictliteral 1.0.0
File Size Uploaded Provenance Actions
odictliteral-1.0.0.tar.gz 3.1 kB Without provenance Details for odictliteral-1.0.0.tar.gz

Release files / odictliteral-1.0.0.tar.gz

Download URL odictliteral-1.0.0.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
88405c7fab7ff7a54c7b9fac9fd69264e526b0024b8265bc042ba3a797f0c161
BLAKE2b-256 checksum
How to use checksums
11718752b9e8a7bd25112b1e676b81b9d05df5299f6f8305c868eec7f656bcc2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for odictliteral 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