Catalog PyPI
PACKAGE EXPLORERView in registry

addicted3

PyPI

Enhanced dict for python 3

addictaddictedattrdictattributenaghelptextops
Versions collected1
Direct dependencies1From release 3.0.1
Last observed20 Oct, 19:18 UTC

README

Version 3.0.1 documentation

======================================
addicted3 : Enhanced dict for python 3
======================================

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 <https://pypi.python.org/pypi/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



Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
3.0.130 Nov 20211

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
elapouya/addicted3

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:18 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:ad03c059f990ae67797d19622cf9a7d53aced096ca4a274d6a748fb9114837c9