fuzzysorteddict
fuzzysorteddict is a sorted dictionary with nearest-key lookups.
>>> from fuzzysorteddict import FuzzySortedDict >>> d = FuzzySortedDict() >>> d[1] = 1 >>> d[2] = 2 >>> d[1.75] 2
FuzzySortedDict can be particularly useful for sparsely populated ranges, such as when working with time.
>>> from fuzzysorteddict import FuzzySortedDict >>> import datetime >>> d = FuzzySortedDict() >>> d[datetime.datetime(2000, 1, 1, 12, 0, 0)] = 1 >>> d[datetime.datetime(2000, 1, 1, 12, 0, 4)] = 2 >>> d[datetime.datetime(2000, 1, 1, 12, 0, 1)] 1
Installation
FuzzySortedDict is easily installed with pip.
pip install fuzzysorteddict
Metadata
Release files for fuzzysorteddict 1.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 | Actions |
|---|---|---|---|---|
| fuzzysorteddict-1.1.0.tar.gz | 3.3 kB | Without provenance | Details for fuzzysorteddict-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fuzzysorteddict-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for fuzzysorteddict-1.1.0-py3-none-any.whl |
Total release size: 6.9 kB
Release files / fuzzysorteddict-1.1.0.tar.gz
| Download URL | fuzzysorteddict-1.1.0.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f4982a87423d220d8b8c9f2e0305121511585b469ba71666609a0b1ee47b7a4d
|
|
BLAKE2b-256 checksum How to use checksums |
383fdff9488d67d15c59231e3cdb9d3440735360334797958efb96d293936194
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.0 CPython/3.6.7 Linux/4.15.0-1028-gcp
|
Release files / fuzzysorteddict-1.1.0-py3-none-any.whl
| Download URL | fuzzysorteddict-1.1.0-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7361c322e44bd65c5f37a064642b0b7b6dbc4ecd76c09ff7951b6fef650de765
|
|
BLAKE2b-256 checksum How to use checksums |
1c6b3ac59681233dfb95dc86ccbea5e4d81ef0b6b6a7e8c69f3c53a56194bdae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.0 CPython/3.6.7 Linux/4.15.0-1028-gcp
|
Security for fuzzysorteddict 1.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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.