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

Uploaded Source

Built Distribution

sortedcollections-1.1.1-py2.py3-none-any.whl (8.3 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: sortedcollections-1.1.1.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2

File hashes

Hashes for sortedcollections-1.1.1.tar.gz
Algorithm Hash digest
SHA256 3610f0afaf1f4fb9b43210b349535e9fec1ab79ac52aa8a77e420ca833d20d72
MD5 df59c9597f251b19a2fffebda646210f
BLAKE2b-256 b5015390279785047794bb18514035526c109a29bb8f96e00feae3316854f79f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sortedcollections-1.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2

File hashes

Hashes for sortedcollections-1.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ff5157d085f20cc03b388a12a935f9a4ec3685369ab20ce72fa343b702dc84ed
MD5 6af39e08e4acc78779bd58ddcb2c3878
BLAKE2b-256 24cfda716fa93b3c019ef86cfb6a95d4282da9f4bc275f30803091745555e70f

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