{ "info": { "author": "JoBrad", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# attribute_dict\nA subclass of dict that allows object-style access to its entries.\n\n# Installation\n```sh\npipenv install attribute_dict\n```\n\n# Usage\n```py\n from attribute_dict import AttributeDict\n sample_dict = AttributeDict({'foo': 'bar'})\n sample_dict # => AttributeDict({'foo': 'bar'})\n\n # The object is just subclassed from dict, and has all of the standard functions\n isinstance(sample_dict, dict) # => True\n\n # Create a new AttributeDict by \"stacking\" iterables\n # Each iterable will overwrite keys in the previous one (kwargs are processed last!)\n sample_dict = AttributeDict({'foo': 'foo'}, {'foo': 'ba', 'bar': 'foo'}, {'foo': 'bar'}, {'foobar': 'bar'}, foobar='foo')\n # => AttributeDict({'foo': 'bar', 'bar': 'foo', 'foobar': 'foo'})\n\n # Create a new AttributeDict by shallow-copying an existing one\n new_sample_dict = sample_dict.copy()\n new_sample_dict # => AttributeDict({'foo': 'bar', 'bar': 'foo', 'foobar': 'foo'})\n isinstance(new_sample_dict, AttributeDict) # => True\n\n # NOTE: Child values are NOT processed!\n sample_dict = AttributeDict({'foo': iterable_two})\n sample_dict # => AttributeDict({'foo': {'foo': 'ba', 'bar': 'foo'}})\n sample_dict.foo # => {'foo': 'ba', 'bar': 'foo'}\n sample_dict.__class__.__name__ # => 'AttributeDict'\n sample_dict.foo.__class__.__name__ # => 'dict'\n```\n\n# Tests\nTests use nose2. Clone the Github project. Install dev dependencies, and run tests using the nose2 command.\n\n```sh\npipenv install --dev\npipenv shell\nnose2\n```\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/JoBrad/attribute_dict", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "attribute-dict", "package_url": "https://pypi.org/project/attribute-dict/", "platform": "", "project_url": "https://pypi.org/project/attribute-dict/", "project_urls": { "Homepage": "https://github.com/JoBrad/attribute_dict" }, "release_url": "https://pypi.org/project/attribute-dict/1.0.0/", "requires_dist": null, "requires_python": "", "summary": "A subclass of dict that allows object-style access to its entries", "version": "1.0.0" }, "last_serial": 4706384, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "a46d6a37afbe5fd3b76e19fd785122e6", "sha256": "205971dd6d418a0d03514bdf296099d6eb31795a9ac3189c5a646227f67074e7" }, "downloads": -1, "filename": "attribute_dict-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "a46d6a37afbe5fd3b76e19fd785122e6", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7078, "upload_time": "2019-01-17T05:18:36", "url": "https://files.pythonhosted.org/packages/00/63/73959ef6c40cd9f674bceb3c9d6087182ff57e58fc16c7568884757e0570/attribute_dict-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0d0b5782b288cecf1ec52506b25f3d79", "sha256": "cd6c646a3803a0c2350e44c6e0cd193460d7fca18944675633d4882c1f0ab509" }, "downloads": -1, "filename": "attribute_dict-1.0.0.tar.gz", "has_sig": false, "md5_digest": "0d0b5782b288cecf1ec52506b25f3d79", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4929, "upload_time": "2019-01-17T05:18:38", "url": "https://files.pythonhosted.org/packages/12/75/f80f88f1c3deb460122685dd149bd26ee56d18463ea0f49c01c7f2fc9256/attribute_dict-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a46d6a37afbe5fd3b76e19fd785122e6", "sha256": "205971dd6d418a0d03514bdf296099d6eb31795a9ac3189c5a646227f67074e7" }, "downloads": -1, "filename": "attribute_dict-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "a46d6a37afbe5fd3b76e19fd785122e6", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7078, "upload_time": "2019-01-17T05:18:36", "url": "https://files.pythonhosted.org/packages/00/63/73959ef6c40cd9f674bceb3c9d6087182ff57e58fc16c7568884757e0570/attribute_dict-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0d0b5782b288cecf1ec52506b25f3d79", "sha256": "cd6c646a3803a0c2350e44c6e0cd193460d7fca18944675633d4882c1f0ab509" }, "downloads": -1, "filename": "attribute_dict-1.0.0.tar.gz", "has_sig": false, "md5_digest": "0d0b5782b288cecf1ec52506b25f3d79", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4929, "upload_time": "2019-01-17T05:18:38", "url": "https://files.pythonhosted.org/packages/12/75/f80f88f1c3deb460122685dd149bd26ee56d18463ea0f49c01c7f2fc9256/attribute_dict-1.0.0.tar.gz" } ] }