{ "info": { "author": "dem4ply", "author_email": "", "bugtrack_url": null, "classifiers": [ "Environment :: Console", "Intended Audience :: Developers", "Programming Language :: Python" ], "description": "============\nChibi donkey\n============\n\nsmall lib for inflate and compress dict using double underscore\nor proccess string using the format double undescore\n\n*********************\nhow to used with dict\n*********************\n\n.. code-block:: python\n\n\timport chibi_donkey as donkey\n\n\texample = {\n\t\t'a': {\n\t\t\t'aa': {\n\t\t\t\t'aaa': 'aaa',\n\t\t\t\t'aab': 'aab',\n\t\t\t\t'aac': 'aac'\n\t\t\t},\n\t\t\t'ab': 'ab',\n\t\t\t'ac': None,\n\t\t\t},\n\t\t\t'b': {\n\t\t\t'ba': [ 1, 2, 3 ],\n\t\t\t'bb': 'bb',\n\t\t\t'bc': None,\n\t\t\t}\n\t}\n\n\texample_compress= {\n\t\t'a__aa__aaa': 'aaa',\n\t\t'a__aa__aab': 'aab',\n\t\t'a__aa__aac': 'aac',\n\t\t'a__ab': 'ab',\n\t\t'a__ac': None,\n\t\t'b__ba': [ 1, 2, 3 ],\n\t\t'b__bb': 'bb',\n\t\t'b__bc': None,\n\t}\n\n\tassert donkey.compress( example ) == example_compress\n\tassert donkey.inflate( example_compress ) == example\n\n\tassert donkey.get( 'a__aa__aaa', example ) == 'aaa'\n\tassert donkey.get( 'a__ba', example ) == [ 1, 2, 3 ]\n\n\tdonkey.setter( 'a__aa__aaa', example, 'asdf' )\n\tassert donkey.get( 'a__aa__aaa', example ) == 'asdf'\n\n\n***********************\nhow to use with strings\n***********************\n\n\n.. code-block:: python\n\n\timport chibi_donkey as donkey\n\n\tassert donkey.init( 'a__b__c' ) == 'a'\n\tassert donkey.last( 'a__b__c' ) == 'c'\n\n\tassert donkey.key( 'a', 'b', 'c' ) == 'a__b__c'\n\tassert donkey.partition( 'a__b__c' ) == [ 'a', 'b', 'c' ]\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/dem4ply/chibi_donkey", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "chibi-donkey", "package_url": "https://pypi.org/project/chibi-donkey/", "platform": "", "project_url": "https://pypi.org/project/chibi-donkey/", "project_urls": { "Homepage": "https://github.com/dem4ply/chibi_donkey" }, "release_url": "https://pypi.org/project/chibi-donkey/1.0.1/", "requires_dist": null, "requires_python": "", "summary": "library for proccess the format double undescore", "version": "1.0.1", "yanked": false, "yanked_reason": null }, "last_serial": 11495895, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "7308cbcafbddcac94e73a2a8fa4b8d4d", "sha256": "600b471109fb27950957fc65d0abef27ecf4c8bea831428beada78a104728d1a" }, "downloads": -1, "filename": "chibi_donkey-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "7308cbcafbddcac94e73a2a8fa4b8d4d", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4019, "upload_time": "2019-10-28T21:28:19", "upload_time_iso_8601": "2019-10-28T21:28:19.466778Z", "url": "https://files.pythonhosted.org/packages/8b/48/472c0278e60c1a47ee28001eca1d464bb06b85cc8efdcf18d7d5b12b2010/chibi_donkey-1.0.0-py3-none-any.whl", "yanked": false, "yanked_reason": null } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "2d5e851f6a873c523a6511f9885eae3c", "sha256": "86296d04df2af4bbbea432fc722f044701c5e1dd8bfcaecf038bfd8da6b7dae3" }, "downloads": -1, "filename": "chibi_donkey-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2d5e851f6a873c523a6511f9885eae3c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6062, "upload_time": "2021-09-20T08:10:21", "upload_time_iso_8601": "2021-09-20T08:10:21.321642Z", "url": "https://files.pythonhosted.org/packages/0b/df/700c0338aa3f78414e8f11289c924f6a42982d093fa1a94e798027b4a0e3/chibi_donkey-1.0.1-py2.py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "ecff641d35a387663f204bbcc5533ed3", "sha256": "218a1a707a9687df51480a720eb2d3db7730924e50320b0e77ad3f2899bf56e5" }, "downloads": -1, "filename": "chibi_donkey-1.0.1.tar.gz", "has_sig": false, "md5_digest": "ecff641d35a387663f204bbcc5533ed3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4323, "upload_time": "2021-09-20T08:10:22", "upload_time_iso_8601": "2021-09-20T08:10:22.919767Z", "url": "https://files.pythonhosted.org/packages/92/57/7236b0dd5e1678247829e01b64129ee8ab1000e3e47cb21db88429c0c4ad/chibi_donkey-1.0.1.tar.gz", "yanked": false, "yanked_reason": null } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2d5e851f6a873c523a6511f9885eae3c", "sha256": "86296d04df2af4bbbea432fc722f044701c5e1dd8bfcaecf038bfd8da6b7dae3" }, "downloads": -1, "filename": "chibi_donkey-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2d5e851f6a873c523a6511f9885eae3c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6062, "upload_time": "2021-09-20T08:10:21", "upload_time_iso_8601": "2021-09-20T08:10:21.321642Z", "url": "https://files.pythonhosted.org/packages/0b/df/700c0338aa3f78414e8f11289c924f6a42982d093fa1a94e798027b4a0e3/chibi_donkey-1.0.1-py2.py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "ecff641d35a387663f204bbcc5533ed3", "sha256": "218a1a707a9687df51480a720eb2d3db7730924e50320b0e77ad3f2899bf56e5" }, "downloads": -1, "filename": "chibi_donkey-1.0.1.tar.gz", "has_sig": false, "md5_digest": "ecff641d35a387663f204bbcc5533ed3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4323, "upload_time": "2021-09-20T08:10:22", "upload_time_iso_8601": "2021-09-20T08:10:22.919767Z", "url": "https://files.pythonhosted.org/packages/92/57/7236b0dd5e1678247829e01b64129ee8ab1000e3e47cb21db88429c0c4ad/chibi_donkey-1.0.1.tar.gz", "yanked": false, "yanked_reason": null } ], "vulnerabilities": [] }