Skip to main content

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


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.21.tar.gz (1.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

orderdict-2018.11.21-py2.py3-none-any.whl (2.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file orderdict-2018.11.21.tar.gz.

File metadata

  • Download URL: orderdict-2018.11.21.tar.gz
  • Upload date:
  • Size: 1.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.5

File hashes

Hashes for orderdict-2018.11.21.tar.gz
Algorithm Hash digest
SHA256 034225eb565ad69dc2c7aea29dc8b0e83b32a033c23f17cffb1e6a7f2abca377
MD5 c23e07619831778c1fae45e188b9a8ec
BLAKE2b-256 1fa0ceea1d63ce316bd5d19fe8dc833a90cae6b7c1de17bcc3b4902c1d849807

See more details on using hashes here.

File details

Details for the file orderdict-2018.11.21-py2.py3-none-any.whl.

File metadata

  • Download URL: orderdict-2018.11.21-py2.py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.5

File hashes

Hashes for orderdict-2018.11.21-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 34d7834411ca95f23ef12516f213a6db35290b0a483ca41d8a93c9532be8c29f
MD5 818549bd741c828a9d3789550d199b6f
BLAKE2b-256 0c4f2c360deda4ec21e62180813c44bee046f27999f01ed49e111f0f91b1f297

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page