order dict
Project description
Install
$ [sudo] pip install orderdict
Functions
function | description |
---|---|
orderdict.order(keys, *args, **kwargs) |
return OrderedDict ordered by keys |
Examples
>>> import orderdict
>>> metadata = dict(version="1.0.0", name="pkgname")
{'version': '1.0.0', 'name': 'pkgname'}
>>> orderdict.order(["name", "version"], metadata)
OrderedDict([('name', 'pkgname'), ('version', '1.0.0')])
readme-md - README.md generator
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
orderdict-2018.11.18.tar.gz
(1.3 kB
view hashes)
Built Distribution
Close
Hashes for orderdict-2018.11.18-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 51659f1ac5ea9d89351859a94076b021236490f8aeca1f90f8d1381bb2e343e6 |
|
MD5 | 19e976defa48f0da1fbbf5e5f7bca37b |
|
BLAKE2b-256 | a975725a1d6208389fe756fbfb3c24cd3fdd6b8988dde4bbf6782f2cef023cfc |