{ "info": { "author": "Rene Tanczos", "author_email": "gravmatt@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2.5", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3" ], "description": "Dynamic\n=======\n\nClass to create dynamic objects.\n\nInstallation\n------------\n\nInstall through **pip**.\n\n::\n\n $ pip install dynamic\n\nor get from source\n\n::\n\n $ git clone https://github.com/gravmatt/py-dynamic.git\n $ cd py-dynamic\n $ python setup.py install\n\nImport module\n-------------\n\nImport the module into your python project.\n\n::\n\n from dynamic import Dynamic\n\nUsage\n-----\n\nCreate object when you need them.\n\n::\n\n me = Dynamic()\n me.name = 'Rene'\n me.username = 'gravmatt'\n\n print '%s (%s)' % (me.name, me.username)\n\n # Rene (gravmatt)\n\nExplicit Mode\n~~~~~~~~~~~~~\n\nBy default the explicit is ON.\n\nThat means if you try to get a value that doesn't exists, a\nAttributeError get raised.\n\n::\n\n me = Dynamic()\n me.name = 'Rene'\n\n print me.age # age does not exist\n\n # AttributeError: Property 'age' not found\n\nYou can turn the explicit mode off, by:\n\n::\n\n me = Dynamic(explicit=False)\n me.name = 'Rene'\n\n print 'My age:', me.age\n # My age: None\n\nNow when you try to access a property that doesn't exists, ``None`` get\nreturned.\n\nLicence\n-------\n\nThe MIT License (MIT)\n\nCopyright (c) 2016 Ren\u00e9 Tanczos\n\nPermission is hereby granted, free of charge, to any person obtaining a\ncopy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be included\nin all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\nOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/gravmatt/py-dynamic", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "dynamic", "package_url": "https://pypi.org/project/dynamic/", "platform": "MacOSX,UNIX/Linux", "project_url": "https://pypi.org/project/dynamic/", "project_urls": { "Homepage": "https://github.com/gravmatt/py-dynamic" }, "release_url": "https://pypi.org/project/dynamic/0.1.1/", "requires_dist": null, "requires_python": "", "summary": "Class to create dynamic objects.", "version": "0.1.1" }, "last_serial": 2023158, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "2f92be1edd084dcdf06cd6e967affad8", "sha256": "b0f938f16e0faf625ddb8681b7dfd75099fb5461dcaa04c49888e49db2d0c135" }, "downloads": -1, "filename": "dynamic-0.1.tar.gz", "has_sig": false, "md5_digest": "2f92be1edd084dcdf06cd6e967affad8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2836, "upload_time": "2016-03-23T16:55:13", "url": "https://files.pythonhosted.org/packages/c4/e5/8281086e451027ca141974580e0daf4fc91e8c411bc660e94c0daa67a017/dynamic-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "27e69deed16c556320f893c8a0f02949", "sha256": "385a601076538274a42060b1d650fe662f7aa5b15ae95bbdd4ac6d2c49302dba" }, "downloads": -1, "filename": "dynamic-0.1.1.tar.gz", "has_sig": false, "md5_digest": "27e69deed16c556320f893c8a0f02949", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2841, "upload_time": "2016-03-23T16:57:28", "url": "https://files.pythonhosted.org/packages/cb/73/23ee6a1b99c1a3dfc5e3f66b5f3921bc1707a04509911d770f8f67565eb8/dynamic-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "27e69deed16c556320f893c8a0f02949", "sha256": "385a601076538274a42060b1d650fe662f7aa5b15ae95bbdd4ac6d2c49302dba" }, "downloads": -1, "filename": "dynamic-0.1.1.tar.gz", "has_sig": false, "md5_digest": "27e69deed16c556320f893c8a0f02949", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2841, "upload_time": "2016-03-23T16:57:28", "url": "https://files.pythonhosted.org/packages/cb/73/23ee6a1b99c1a3dfc5e3f66b5f3921bc1707a04509911d770f8f67565eb8/dynamic-0.1.1.tar.gz" } ] }