======================================
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
Raw data
{
"_id": null,
"home_page": "https://github.com/elapouya/addicted3",
"name": "addicted3",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "attribute AttrDict addict addicted textops naghelp",
"author": "Eric Lapouyade",
"author_email": "elapouya@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/30/ac/29d449eaf87f639740e04343e10de70bf8ef7b36b30d54fddfebc05e975b/addicted3-3.0.1.tar.gz",
"platform": "",
"description": "\n======================================\naddicted3 : Enhanced dict for python 3\n======================================\n\nThis library is a port to python 3 of the package 'addicted' \n\nDict\n----\n\nSame as Dict from \u2018mewwts/addict\u2018 except that update() method accept list,tuple and kwargs like usual python dict.\nThe use of \u2018inspect\u2018 module has been removed for performance reason.\n\n\nAddDict\n-------\n\nDict with these additional methods : ::\n\n pprint()\n find(pattern,**kwargs)\n count_some_values(pattern,ignore_case=False)\n count_some_keys(pattern,ignore_case=False)\n count_some_items(filter)\n iter_some_items(pattern,ignore_case=False)\n iter_some_values(pattern,ignore_case=False)\n iter_some_keys(pattern,ignore_case=False)\n get_some_items(pattern,ignore_case=False)\n get_some_values(pattern,ignore_case=False)\n get_some_keys(pattern,ignore_case=False)\n mget(*key_list)\n extract(key_list)\n parse_booleans(key_list)\n parse_numbers(key_list)\n update_dict(*args, **kwargs)\n\nNoAttrDict\n----------\n\nWorks like AddDict, except that it returns a \u2018NoAttr\u2018 value when an attribute is missing.\nPlease read `noattr <https://pypi.python.org/pypi/noattr/>`_ package notes for explaination about \u2018NoAttr\u2018 ::\n\n from addicted import Dict,NoAttrDict\n d1 = AddDict()\n d2 = NoAttrDict()\n\n print type(d1.a.b.c.d)\n >>> <class 'addicted.AddDict'>\n\n print type(d2.a.b.c.d)\n >>> <class 'noattr.NoAttrType'>\n\n\n\nNews\n====\n3.0.1 (2021-11-30)\n------------------\nFix basestring -> str\n\n3.0.0 (2018-11-07)\n------------------\nFirst version python 3\n\n\n\n",
"bugtrack_url": null,
"license": "LGPL 2.1",
"summary": "Enhanced dict for python 3",
"version": "3.0.1",
"split_keywords": [
"attribute",
"attrdict",
"addict",
"addicted",
"textops",
"naghelp"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e3f03b9c2891f38c5b258fa493d32279920055a65cf0f925ab61418b3d9eb99c",
"md5": "eda1105d59efb347037f43c4138da9aa",
"sha256": "397d2053592ba042269aefc90a0722c206f955ebe19438ba99ef07f49670a1c3"
},
"downloads": -1,
"filename": "addicted3-3.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "eda1105d59efb347037f43c4138da9aa",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 15347,
"upload_time": "2021-11-30T14:14:47",
"upload_time_iso_8601": "2021-11-30T14:14:47.858081Z",
"url": "https://files.pythonhosted.org/packages/e3/f0/3b9c2891f38c5b258fa493d32279920055a65cf0f925ab61418b3d9eb99c/addicted3-3.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "30ac29d449eaf87f639740e04343e10de70bf8ef7b36b30d54fddfebc05e975b",
"md5": "0589be71dff54144857ed9c6d50189be",
"sha256": "dcc26ea33e40750d0e4932748d8c285375a6db558e33d500f64592e7bb60af1b"
},
"downloads": -1,
"filename": "addicted3-3.0.1.tar.gz",
"has_sig": false,
"md5_digest": "0589be71dff54144857ed9c6d50189be",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 15746,
"upload_time": "2021-11-30T14:14:49",
"upload_time_iso_8601": "2021-11-30T14:14:49.646557Z",
"url": "https://files.pythonhosted.org/packages/30/ac/29d449eaf87f639740e04343e10de70bf8ef7b36b30d54fddfebc05e975b/addicted3-3.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2021-11-30 14:14:49",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "elapouya",
"github_project": "addicted3",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "addicted3"
}