Shorthand syntax for building OrderedDicts
Likely abandoned. No release or commit for years (last release over 4 years ago).
$
pip install odod
==
.. image:: https://github.com/epsy/od/actions/workflows/ci.yml/badge.svg?branch=master
:target: https://github.com/epsy/od/actions/workflows/ci.yml
.. image:: https://coveralls.io/repos/github/epsy/od/badge.svg?branch=master
:target: https://coveralls.io/github/epsy/od?branch=master
The ``od`` package adds a shorthand syntax to create instances of `OrderedDict
<https://docs.python.org/3/library/collections.html#collections.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 <https://pip.pypa.io/en/stable/installing/>`_::
$ pip install --user od