Skip to main content
https://github.com/epsy/od/actions/workflows/ci.yml/badge.svg?branch=master https://coveralls.io/repos/github/epsy/od/badge.svg?branch=master

The od package adds a shorthand syntax to create instances of OrderedDict

>>> import od
>>>
>>> od["cat": "fish", "mouse": "cheese"]
OrderedDict([('cat', 'fish'), ('mouse', 'cheese')])
>>> od["mouse": "cheese", "cat": "fish"]
OrderedDict([('mouse', 'cheese'), ('cat', 'fish')])

You can also use it like the regular constructor for OrderedDict:

>>> od()
OrderedDict()
>>> an_iterable = [("cat", "fish"), ("mouse", "cheese")]
>>> od(an_iterable)
OrderedDict([('cat', 'fish'), ('mouse', 'cheese')])

Install this package using pip:

$ pip install --user od

Metadata

Release files for od 2.0.2

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

Source distribution (sdist)

Source distribution for od 2.0.2
File Size Uploaded
od-2.0.2.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for od 2.0.2
File Interpreter ABI Platform
od-2.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 6.7 kB

Release files / od-2.0.2.tar.gz

Download URL od-2.0.2.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b86923d99f262e0e75215f853aac19975853ef35728e60f509c63f55b1f8b4a9
BLAKE2b-256 checksum
How to use checksums
316586e6a714f93a0b497cb0ec0a2ee6580179c568969525c7e87b783749e89d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.6.9

Release files / od-2.0.2-py3-none-any.whl

Download URL od-2.0.2-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
af8febd09a137ed2931c5b08b2c0c2a498d4707ac0fb8827352a80316d0e1edc
BLAKE2b-256 checksum
How to use checksums
8bb1219294f55a1f32f6203738e294b7636192690902da9e2ddbfc68860270e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.6.9

Release history Release notifications | RSS feed

This release

2.0.2 This release

2 release files

2.0.1

2 release files

2.0.0

2 release files

1.0

2 release files

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