Skip to main content

Python Sorted Collections

Project description

Sorted Collections is an Apache2 licensed Python sorted collections library.

Features

  • Pure-Python

  • Depends on the Sorted Containers module.

  • ValueSortedDict - Dictionary with (key, value) item pairs sorted by value.

  • ItemSortedDict - Dictionary with key-function support for item pairs.

  • OrderedDict - Ordered dictionary with numeric indexing support.

  • OrderedSet - Ordered set with numeric indexing support.

  • IndexableDict - Dictionary with numeric indexing support.

  • IndexableSet - Set with numeric indexing support.

  • SegmentList - List with fast random access insertion and deletion.

  • 100% code coverage testing.

  • Developed on Python 3.7

  • Tested on CPython 2.7, 3.4, 3.5, 3.6, 3.7 and PyPy, PyPy3

https://api.travis-ci.org/grantjenks/python-sortedcollections.svg?branch=master https://ci.appveyor.com/api/projects/status/github/grantjenks/python-sortedcollections?branch=master&svg=true

Quickstart

Installing Sorted Collections is simple with pip:

$ pip install sortedcollections

You can access documentation in the interpreter with Python’s built-in help function:

>>> from sortedcollections import ValueSortedDict
>>> help(ValueSortedDict)

Recipes

Reference and Indices

Sorted Collections License

Copyright 2015-2019 Grant Jenks

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

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

sortedcollections-1.2.1.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

sortedcollections-1.2.1-py2.py3-none-any.whl (8.4 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file sortedcollections-1.2.1.tar.gz.

File metadata

  • Download URL: sortedcollections-1.2.1.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.2

File hashes

Hashes for sortedcollections-1.2.1.tar.gz
Algorithm Hash digest
SHA256 58c31f35e3d052ada6a1fbfc235a408e9ec5e2cfc64a02731cf97cac4afd306a
MD5 4366988aac0576dd734545ba996b2427
BLAKE2b-256 19277da4b0fd7f4ae74a2d4fabf12fb3afc09e3877c5f242c8cf60cfb08e87f7

See more details on using hashes here.

File details

Details for the file sortedcollections-1.2.1-py2.py3-none-any.whl.

File metadata

  • Download URL: sortedcollections-1.2.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.2

File hashes

Hashes for sortedcollections-1.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f899e46a1e2e1efe022b8e824dc4036ac2a7585e8a37c404e03f6b1ce902666a
MD5 0b0c36771cdafe5b82a9b913f4e20aa6
BLAKE2b-256 eaf1831fa9763afc85d3065557762824490d6e4d1afe1a56e0f053a568ae0cb5

See more details on using hashes here.

Supported by

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