A sorted mapping object.
sortedmap is a python dict api interface to the C++ std::map type. sortedmap implements the full dict object interface with a few differences:
Objects are stored in a red black tree. All keys must be comparable to eachother though they do not need to be hashable. This means all keys must implement at least __lt__ and __eq__.
O(log(n)) lookup, insert, and deletes because of the red- black tree backing. This is worse than dict which offers O(1) lookup, insert, and delete. The C++ implementation offers low constants
popitem accepts a first=True argument which says to pop from the front or the back. dict.popitem pops an abitrary item; however sortedmap pops the first or the last item.
Dependencies
sortedmap has no python package depencencies but requires CPython 2.7 or >=3.4. sortedmap depends on CPython 2 or 3 and some means of compiling C++14. We recommend using g++ to compile sortedmap. Compilation and testing was done with gcc 5.3.0
License
sortedmap is free software, licensed under the GNU Lesser General Public License, version 2.1. For more information see the LICENSE file.
Source
Source code is hosted on github at https://github.com/llllllllll/sortedmap.
Metadata
Release files for sortedmap 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| sortedmap-0.1.0.tar.gz | 19.1 kB | Without provenance | Details |
Release files / sortedmap-0.1.0.tar.gz
| Download URL | sortedmap-0.1.0.tar.gz |
|---|---|
| Size | 19.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a116791e4fe0045a5471cacb3b03a6c52ddbf4fa04f3ac8d1a8abd428755ad96
|
|
BLAKE2b-256 checksum How to use checksums |
7d39a0df8388fe5d449ae034e4670ec32883a82df31e9b88016e7427cc6bee93
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for sortedmap 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.