{ "info": { "author": "Cologler", "author_email": "skyoflw@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# attributes\n\n![GitHub](https://img.shields.io/github/license/Cologler/attributes-python.svg)\n[![Build Status](https://travis-ci.com/Cologler/attributes-python.svg?branch=master)](https://travis-ci.com/Cologler/click-anno-python)\n[![PyPI](https://img.shields.io/pypi/v/attributes.svg)](https://pypi.org/project/attributes/)\n\na python version attribute like attribute of csharp.\n\n## Usage\n\n``` py\nfrom attributes import Attribute\n\nclass Data(Attribute): # make your own attribute\n def __init__(self, *args, **kwargs):\n self.args = args\n self.kwargs = kwargs\n\n@Data(1, 2) # use your attribute\nclass SomeClass:\n pass\n\ndata, = Attribute.get_attrs(SomeClass) # than load on runtime and use it.\n```\n\n### Parameter Attribute\n\n``` py\n@param_attr('a', Data(1, 2), Data(3, 4))\ndef func(a):\n pass\n\ndata, = Attribute.get_attrs(param_of(func, 'a'))\n# or\ndata, = Data.get_from_param(func, 'a')\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/Cologler/attributes-python", "keywords": "", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "attributes", "package_url": "https://pypi.org/project/attributes/", "platform": "", "project_url": "https://pypi.org/project/attributes/", "project_urls": { "Homepage": "https://github.com/Cologler/attributes-python" }, "release_url": "https://pypi.org/project/attributes/0.1.1/", "requires_dist": null, "requires_python": "", "summary": "", "version": "0.1.1" }, "last_serial": 5144601, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "f336d256c71978723ff03a96c41e61ae", "sha256": "8189f5f2a5cc1fb4415f1019ceb503e36c1648031ebd943749dd27c035d69fd5" }, "downloads": -1, "filename": "attributes-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "f336d256c71978723ff03a96c41e61ae", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3997, "upload_time": "2019-04-07T07:01:34", "url": "https://files.pythonhosted.org/packages/55/b7/b8f4db2518f73e492ab24cce406134055787dc04fb223605f1d1ae5d33ac/attributes-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "07da450e3e381e9ee912d92a2d90020d", "sha256": "14bc56102c1994ad48862e655f708dc523fdb692b25b4f2745dc812927e5b3ef" }, "downloads": -1, "filename": "attributes-0.0.1.tar.gz", "has_sig": false, "md5_digest": "07da450e3e381e9ee912d92a2d90020d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2344, "upload_time": "2019-04-07T07:01:36", "url": "https://files.pythonhosted.org/packages/38/95/b6873e86c43a1f9adcdc3fc6d7486411c9a125fd3f09aa52768c7e77789a/attributes-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "b3a925dda5c1c3e6f61ba3cb34be2816", "sha256": "e5a06ff83bb85defcfa9c64d26d0dd3dd7a776ae440cacc99d1d9436a04d24ca" }, "downloads": -1, "filename": "attributes-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "b3a925dda5c1c3e6f61ba3cb34be2816", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4488, "upload_time": "2019-04-12T03:23:07", "url": "https://files.pythonhosted.org/packages/a0/cf/57546d8b3641893d3b766ebc03708d6b9ae4812dedfd0451ab408096d18d/attributes-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "80562aa9a7c041c78ebe85ef19200ea8", "sha256": "37a7eac7403930cad0f531de770cc6e64cb6d64f3daf33778f3de7161cc67d63" }, "downloads": -1, "filename": "attributes-0.0.2.tar.gz", "has_sig": false, "md5_digest": "80562aa9a7c041c78ebe85ef19200ea8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2843, "upload_time": "2019-04-12T03:23:08", "url": "https://files.pythonhosted.org/packages/18/f9/df2f355ad47af5c7c752bfb928d075f8dcd8fbb102be43c5e73e3a7c5cc1/attributes-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "ddcbe44882cfa41d7860387ea011b414", "sha256": "403f5b2d17303198d63c4af91161487b0beb828bf071fb9e0a5bc2d04ca8be55" }, "downloads": -1, "filename": "attributes-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "ddcbe44882cfa41d7860387ea011b414", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4588, "upload_time": "2019-04-13T16:01:00", "url": "https://files.pythonhosted.org/packages/c1/0e/cf912d3da93a27a2d9d3ba0b6c9a2950a8e204b341da13bcd4e5671a820d/attributes-0.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "22b709205afe09982e586d80c883303e", "sha256": "a5fa4bae0c1f5c32c9a6b27015163ccf21f557ff1a6617b7944fb4322ab9d34e" }, "downloads": -1, "filename": "attributes-0.0.3.tar.gz", "has_sig": false, "md5_digest": "22b709205afe09982e586d80c883303e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2937, "upload_time": "2019-04-13T16:01:02", "url": "https://files.pythonhosted.org/packages/62/5e/f74161b4f57369ee82b1c423759eb3c7ddd2e3debac6629fa282d9f9f6a4/attributes-0.0.3.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "4b96f89c87d375be591b4b11b577b3c3", "sha256": "dafce62f33105df4e313795a073b018a6650f4aa61a848edab1392864f642b54" }, "downloads": -1, "filename": "attributes-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "4b96f89c87d375be591b4b11b577b3c3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4616, "upload_time": "2019-04-15T10:34:28", "url": "https://files.pythonhosted.org/packages/09/12/2939bb3bd92e7d5267c8f0ac8415ba77f2038173a18259bd56d55a85b7f6/attributes-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b1df43bb53b7841ada00780cda96ebaa", "sha256": "20507e2a717bf4872bb605781351e728279b0c0929dbd8161d7a7365cf2576c0" }, "downloads": -1, "filename": "attributes-0.1.0.tar.gz", "has_sig": false, "md5_digest": "b1df43bb53b7841ada00780cda96ebaa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2969, "upload_time": "2019-04-15T10:34:29", "url": "https://files.pythonhosted.org/packages/c8/69/fe142c29a560189780e67b71813e4ce70524ef6af8a0a6d8a5cf73b34fa7/attributes-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "d1442db49414a330428a3063ca296746", "sha256": "385e7857d3d6486255d5976821525aad25ff8d0211be31acc1ec0d520cbc8874" }, "downloads": -1, "filename": "attributes-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "d1442db49414a330428a3063ca296746", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5242, "upload_time": "2019-04-15T13:03:36", "url": "https://files.pythonhosted.org/packages/6d/d8/908709600972cd4cb7fb35fbcf4731d609196755d33bb12d62ed8fc60cc3/attributes-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "87f4e439148ef3e4381c85fce8321345", "sha256": "0b0e5fe9168b519097d2b4dce745ff037220bd1047b8572f44f27bb45aebe50b" }, "downloads": -1, "filename": "attributes-0.1.1.tar.gz", "has_sig": false, "md5_digest": "87f4e439148ef3e4381c85fce8321345", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3576, "upload_time": "2019-04-15T13:03:37", "url": "https://files.pythonhosted.org/packages/53/4c/f52e19b558eb323c405897d8b313937b3f19a00d6e1c11835f3cc9829757/attributes-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d1442db49414a330428a3063ca296746", "sha256": "385e7857d3d6486255d5976821525aad25ff8d0211be31acc1ec0d520cbc8874" }, "downloads": -1, "filename": "attributes-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "d1442db49414a330428a3063ca296746", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5242, "upload_time": "2019-04-15T13:03:36", "url": "https://files.pythonhosted.org/packages/6d/d8/908709600972cd4cb7fb35fbcf4731d609196755d33bb12d62ed8fc60cc3/attributes-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "87f4e439148ef3e4381c85fce8321345", "sha256": "0b0e5fe9168b519097d2b4dce745ff037220bd1047b8572f44f27bb45aebe50b" }, "downloads": -1, "filename": "attributes-0.1.1.tar.gz", "has_sig": false, "md5_digest": "87f4e439148ef3e4381c85fce8321345", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3576, "upload_time": "2019-04-15T13:03:37", "url": "https://files.pythonhosted.org/packages/53/4c/f52e19b558eb323c405897d8b313937b3f19a00d6e1c11835f3cc9829757/attributes-0.1.1.tar.gz" } ] }