This library is a port to python 3 of the package ‘addicted’
Dict
Same as Dict from ‘mewwts/addict‘ except that update() method accept list,tuple and kwargs like usual python dict. The use of ‘inspect‘ module has been removed for performance reason.
AddDict
Dict with these additional methods :
pprint() find(pattern,**kwargs) count_some_values(pattern,ignore_case=False) count_some_keys(pattern,ignore_case=False) count_some_items(filter) iter_some_items(pattern,ignore_case=False) iter_some_values(pattern,ignore_case=False) iter_some_keys(pattern,ignore_case=False) get_some_items(pattern,ignore_case=False) get_some_values(pattern,ignore_case=False) get_some_keys(pattern,ignore_case=False) mget(*key_list) extract(key_list) parse_booleans(key_list) parse_numbers(key_list) update_dict(*args, **kwargs)
NoAttrDict
Works like AddDict, except that it returns a ‘NoAttr‘ value when an attribute is missing. Please read noattr package notes for explaination about ‘NoAttr‘
from addicted import Dict,NoAttrDict d1 = AddDict() d2 = NoAttrDict() print type(d1.a.b.c.d) >>> <class 'addicted.AddDict'> print type(d2.a.b.c.d) >>> <class 'noattr.NoAttrType'>
News
3.0.1 (2021-11-30)
Fix basestring -> str
3.0.0 (2018-11-07)
First version python 3
Metadata
Release files for addicted3 3.0.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 | |
|---|---|---|---|---|
| addicted3-3.0.1.tar.gz | 15.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| addicted3-3.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.1 kB
Release files / addicted3-3.0.1.tar.gz
| Download URL | addicted3-3.0.1.tar.gz |
|---|---|
| Size | 15.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dcc26ea33e40750d0e4932748d8c285375a6db558e33d500f64592e7bb60af1b
|
|
BLAKE2b-256 checksum How to use checksums |
30ac29d449eaf87f639740e04343e10de70bf8ef7b36b30d54fddfebc05e975b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.9
|
Release files / addicted3-3.0.1-py3-none-any.whl
| Download URL | addicted3-3.0.1-py3-none-any.whl |
|---|---|
| Size | 15.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
397d2053592ba042269aefc90a0722c206f955ebe19438ba99ef07f49670a1c3
|
|
BLAKE2b-256 checksum How to use checksums |
e3f03b9c2891f38c5b258fa493d32279920055a65cf0f925ab61418b3d9eb99c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.9
|
Security for addicted3 3.0.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.