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

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: sortedcollections-1.2.3.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 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.4

File hashes

Hashes for sortedcollections-1.2.3.tar.gz
Algorithm Hash digest
SHA256 34934caf3142268cd6792bd5af9c269e5b1dfdd27f815965b973c6473edf2c45
MD5 c7505f71a6710093dd8f7ec8299def87
BLAKE2b-256 c0257bb9622a334148846cd2e6116eda092ee1dfba4ae1b19d50674bb3bbe680

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sortedcollections-1.2.3-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.2.0 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.4

File hashes

Hashes for sortedcollections-1.2.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fa562200668f757c42ddf0a3d7d44c803eedc5bb2a219c56498561ec3bb79c34
MD5 a663124493e2f22cfbf2635c3a6e3d81
BLAKE2b-256 870e1998b12306df0a3af44b29956b6eb366f0dff0ce1070cc76565ea053637a

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