dicts
All kind of dictionaries you always think but never do.
Check the full documentation site
Instalation
To install dicts form Pypi:
easy_install dicts
or
pip install dicts
if you want to install it from source code:
python setup.py install
Usage
Dictionaries Features
join:
>>> d1 = Dict({1 : 7, 2 : [1,2], 3 : 'a'}) >>> d1.join({1 : 2, 2 : [3], 3 : 'b'}) {1: 9, 2: [1, 2, 3], 3: 'ab'}map:
>>> d = Dict({'1' : 1, '2' : 2}) >>> d.map(lambda x: 1/3.0) >>> d {'1': 0.3333333333333333, '2': 0.3333333333333333}fromrepetitions:
>>> Dict.fromrepetitions([1,1,1,1,2]) {1: 4, 2: 1}relookup:
>>> d = Dict({'1': 1, '2' : 2, 'c' : 3}) >>> d.relookup('\d') [('1', 1), ('2', 2)]
Especific dictionaries
SortedDict family
NoCaseDict
RegexpDict
Metadata
Release files for dicts 0.3.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 | |
|---|---|---|---|---|
| dicts-0.3.1.tar.gz | 6.2 kB | Without provenance | Details |
Release files / dicts-0.3.1.tar.gz
| Download URL | dicts-0.3.1.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0f962662b89135611ac8a142201e240f0fd02e440d1a84fb9f8bf2ebc97f3888
|
|
BLAKE2b-256 checksum How to use checksums |
e0aa9fd094c2dcb22b7a3cecdebd5e67a015ee0db82ea325573924201dbe5c45
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for dicts 0.3.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.