{ "info": { "author": "Marcos Cardoso", "author_email": "vrcmarcos@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "\nPython-Deprecated\n-----------------\n\nPython ``@deprecated`` decorator to deprecate old python classes, functions or methods.\n\nDeprecated is Easy to Use\n`````````````````````````\n\nIf you need to mark a function or a method as deprecated,\nyou can use the ``@deprecated`` decorator:\n\nSave in a hello.py:\n\n.. code:: python\n\n from deprecated import deprecated\n\n\n @deprecated\n def some_old_function(x, y):\n return x + y\n\n\n class SomeClass(object):\n @deprecated\n def some_old_method(self, x, y):\n return x + y\n\n\n some_old_function(12, 34)\n obj = SomeClass()\n obj.some_old_method(5, 8)\n\n\nAnd Easy to Setup\n`````````````````\n\nAnd run it:\n\n.. code:: bash\n\n $ pip install Python-Deprecated\n $ python hello.py\n hello.py:15: DeprecationWarning: Call to deprecated function some_old_function.\n some_old_function(12, 34)\n hello.py:17: DeprecationWarning: Call to deprecated function some_old_method.\n obj.some_old_method(5, 8)\n\n\nLinks\n`````\n\n* `website `_\n* `StackOverFlow Question `_\n* `development version\n `_\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/vrcmarcos/python-deprecated", "keywords": "deprecate", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "Python-Deprecated", "package_url": "https://pypi.org/project/Python-Deprecated/", "platform": "any", "project_url": "https://pypi.org/project/Python-Deprecated/", "project_urls": { "Homepage": "https://github.com/vrcmarcos/python-deprecated" }, "release_url": "https://pypi.org/project/Python-Deprecated/1.1.0/", "requires_dist": null, "requires_python": "", "summary": "Python @deprecated decorator to deprecate old python classes, functions or methods.", "version": "1.1.0" }, "last_serial": 3321029, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "a443130bfd3a290f1263cd6dfbccd512", "sha256": "7dedd968dfdc75707bd5bb24423264d90ec1ad057e99091f34baef55b19b4263" }, "downloads": -1, "filename": "Python-Deprecated-1.0.0.tar.gz", "has_sig": false, "md5_digest": "a443130bfd3a290f1263cd6dfbccd512", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1709, "upload_time": "2016-08-29T23:56:08", "url": "https://files.pythonhosted.org/packages/24/14/b1cf75ded028ca42ae25c8bccf8fa5107dfa89fd834719dd02554ebdf263/Python-Deprecated-1.0.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "6567f45813d5d8a9cbaf6782f5647e3e", "sha256": "a242b3c1721f97912330b12cd5529abfa5b3876084a6c60a2c683a87d4b0dd6f" }, "downloads": -1, "filename": "Python-Deprecated-1.1.0.tar.gz", "has_sig": false, "md5_digest": "6567f45813d5d8a9cbaf6782f5647e3e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2912, "upload_time": "2017-11-10T00:55:46", "url": "https://files.pythonhosted.org/packages/c0/8e/c5875a0cacfcd90151be65e7bf3e08686d67d390c74eb2cc2cdada4974d1/Python-Deprecated-1.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6567f45813d5d8a9cbaf6782f5647e3e", "sha256": "a242b3c1721f97912330b12cd5529abfa5b3876084a6c60a2c683a87d4b0dd6f" }, "downloads": -1, "filename": "Python-Deprecated-1.1.0.tar.gz", "has_sig": false, "md5_digest": "6567f45813d5d8a9cbaf6782f5647e3e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2912, "upload_time": "2017-11-10T00:55:46", "url": "https://files.pythonhosted.org/packages/c0/8e/c5875a0cacfcd90151be65e7bf3e08686d67d390c74eb2cc2cdada4974d1/Python-Deprecated-1.1.0.tar.gz" } ] }