{ "info": { "author": "Thorgate", "author_email": "code@thorgate.eu", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3" ], "description": "tg-option-container\n===================\n\n|Build Status| |Coverage Status| |PyPI Status|\n\nContainer for dictionary-like validated data structures\n\nDocumentation is available on Read the Docs:\nhttp://tg-option-container.readthedocs.io\n\nGetting started\n---------------\n\nInstall tg-option-container:\n\n.. code:: sh\n\n pip install tg-option-container\n\nThen use it in your project:\n\n.. code:: python\n\n from tg_option_container import Option, OptionContainer\n\n\n class Character(OptionContainer):\n props = [\n Option.string('name', None),\n Option.string('gender', None, choices=('M', 'N')),\n ]\n\n\n john = Character(name='John Smith', gender='M')\n\n # This will raise: tg_option_container.types.InvalidOption: Invalid choice x for option `gender`, choices are ('M', 'N').\n mary = Character(name='Mary Smith', gender='x')\n\nDevelopment\n-----------\n\nYou can run the tests by running ``tox`` in the top-level of the\nproject.\n\n.. |Build Status| image:: https://travis-ci.org/thorgate/tg-option-container.svg\n :target: https://travis-ci.org/thorgate/tg-option-container\n.. |Coverage Status| image:: https://codecov.io/gh/thorgate/tg-option-container/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/thorgate/tg-option-container\n.. |PyPI Status| image:: https://badge.fury.io/py/tg-option-container.png\n :target: https://badge.fury.io/py/tg-option-container", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/thorgate/tg-option-container", "keywords": null, "license": "BSD 3-Clause", "maintainer": null, "maintainer_email": null, "name": "tg-option-container", "package_url": "https://pypi.org/project/tg-option-container/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/tg-option-container/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/thorgate/tg-option-container" }, "release_url": "https://pypi.org/project/tg-option-container/0.4.0/", "requires_dist": null, "requires_python": null, "summary": "Container for dictionary-like validated data structures", "version": "0.4.0" }, "last_serial": 2216393, "releases": { "0.4.0": [ { "comment_text": "", "digests": { "md5": "7de37074b3f10fede7d22015cc84db41", "sha256": "044b4d171f29de18fac07161ec6de9e450e4295647bf89fe6d75ed1c16091ef0" }, "downloads": -1, "filename": "tg_option_container-0.4.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7de37074b3f10fede7d22015cc84db41", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10536, "upload_time": "2016-07-12T11:19:17", "url": "https://files.pythonhosted.org/packages/ed/b2/83df4bd75cd8c5d5384536def4b012820ff2a98790035e4744c766d4f67f/tg_option_container-0.4.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3cb4205e2f6a3c893b29b759f51eb5f7", "sha256": "406a683a2b93161297de82a8ee98fc3bab38db909c48d5456d0e9b10e4f08281" }, "downloads": -1, "filename": "tg-option-container-0.4.0.tar.gz", "has_sig": false, "md5_digest": "3cb4205e2f6a3c893b29b759f51eb5f7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9235, "upload_time": "2016-07-12T11:19:33", "url": "https://files.pythonhosted.org/packages/86/a5/ed3451d065a43b28008cf9956e0284a056a6b0b7cfa699665ef792c204e5/tg-option-container-0.4.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7de37074b3f10fede7d22015cc84db41", "sha256": "044b4d171f29de18fac07161ec6de9e450e4295647bf89fe6d75ed1c16091ef0" }, "downloads": -1, "filename": "tg_option_container-0.4.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "7de37074b3f10fede7d22015cc84db41", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 10536, "upload_time": "2016-07-12T11:19:17", "url": "https://files.pythonhosted.org/packages/ed/b2/83df4bd75cd8c5d5384536def4b012820ff2a98790035e4744c766d4f67f/tg_option_container-0.4.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3cb4205e2f6a3c893b29b759f51eb5f7", "sha256": "406a683a2b93161297de82a8ee98fc3bab38db909c48d5456d0e9b10e4f08281" }, "downloads": -1, "filename": "tg-option-container-0.4.0.tar.gz", "has_sig": false, "md5_digest": "3cb4205e2f6a3c893b29b759f51eb5f7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9235, "upload_time": "2016-07-12T11:19:33", "url": "https://files.pythonhosted.org/packages/86/a5/ed3451d065a43b28008cf9956e0284a056a6b0b7cfa699665ef792c204e5/tg-option-container-0.4.0.tar.gz" } ] }