Cawdrey
Several useful custom dictionaries for Python 📖 🐍
Docs |
|
|---|---|
Tests |
|
PyPI |
|
Anaconda |
|
Activity |
|
QA |
|
Other |
Contents
frozendict: An immutable dictionary that cannot be changed after creation.
FrozenOrderedDict: An immutable OrderedDict where the order of keys is preserved, but that cannot be changed after creation.
AlphaDict: A FrozenOrderedDict where the keys are stored in alphabetical order.
bdict: A dictionary where key, value pairs are stored both ways round.
This package also provides two base classes for creating your own custom dictionaries:
FrozenBase: An Abstract Base Class for Frozen dictionaries.
MutableBase: An Abstract Base Class for mutable dictionaries.
Other Dictionary Packages
If you’re looking to unflatten a dictionary, such as to go from this:
{"foo.bar": "val"}
to this:
{"foo": {"bar": "val"}}
check out unflatten, flattery or morph to accomplish that.
indexed provides an OrderedDict where the values can be accessed by their index as well as by their keys.
There’s also python-benedict, which provides a custom dictionary with keylist/keypath support, I/O shortcuts (Base64, CSV, JSON, TOML, XML, YAML, pickle, query-string) and many utilities.
Installation
Cawdrey can be installed from PyPI or Anaconda.
To install with pip:
$ python -m pip install cawdrey
To install with conda:
First add the required channels
$ conda config --add channels https://conda.anaconda.org/conda-forge $ conda config --add channels https://conda.anaconda.org/domdfcoding
Then install
$ conda install cawdrey
And Finally:
Metadata
Release files for cawdrey 0.5.1
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 |
|---|---|---|---|---|
| cawdrey-0.5.1.tar.gz | 15.8 kB | Without provenance | Details for cawdrey-0.5.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cawdrey-0.5.1-py3-none-any.whl | Python 3 | none | any | Details for cawdrey-0.5.1-py3-none-any.whl |
Total release size: 77.4 kB
Release files / cawdrey-0.5.1.tar.gz
| Download URL | cawdrey-0.5.1.tar.gz |
|---|---|
| Size | 15.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1878ce4ea83328c7567caaf244d2bfac78aa85e78ce04113451a43ae474dbe8e
|
|
BLAKE2b-256 checksum How to use checksums |
1b3c5001f8120570f469a795414c51155677c0c75c6112932e70a96b8cad49cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Release files / cawdrey-0.5.1-py3-none-any.whl
| Download URL | cawdrey-0.5.1-py3-none-any.whl |
|---|---|
| Size | 61.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fd1406e80b84cd851d95d3f857685c2e76f7f0429154f18dff264998743d5456
|
|
BLAKE2b-256 checksum How to use checksums |
69b2ed71fe821087d9eb1ed7aac99677fa544b10b83ae395994e908140d06ab3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Security for cawdrey 0.5.1
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.