Metadata-Version: 1.1
Name: Python-Deprecated
Version: 1.1.0
Summary: Python @deprecated decorator to deprecate old python classes, functions or methods.
Home-page: https://github.com/vrcmarcos/python-deprecated
Author: Marcos Cardoso
Author-email: vrcmarcos@gmail.com
License: MIT
Description: 
        Python-Deprecated
        -----------------
        
        Python ``@deprecated`` decorator to deprecate old python classes, functions or methods.
        
        Deprecated is Easy to Use
        `````````````````````````
        
        If you need to mark a function or a method as deprecated,
        you can use the ``@deprecated`` decorator:
        
        Save in a hello.py:
        
        .. code:: python
        
            from deprecated import deprecated
        
        
            @deprecated
            def some_old_function(x, y):
                return x + y
        
        
            class SomeClass(object):
                @deprecated
                def some_old_method(self, x, y):
                    return x + y
        
        
            some_old_function(12, 34)
            obj = SomeClass()
            obj.some_old_method(5, 8)
        
        
        And Easy to Setup
        `````````````````
        
        And run it:
        
        .. code:: bash
        
            $ pip install Python-Deprecated
            $ python hello.py
            hello.py:15: DeprecationWarning: Call to deprecated function some_old_function.
              some_old_function(12, 34)
            hello.py:17: DeprecationWarning: Call to deprecated function some_old_method.
              obj.some_old_method(5, 8)
        
        
        Links
        `````
        
        * `website <https://github.com/vrcmarcos/python-deprecated>`_
        * `StackOverFlow Question <http://stackoverflow.com/questions/2536307>`_
        * `development version
          <https://github.com/vrcmarcos/python-deprecated/zipball/master#egg=Python-Deprecated-dev>`_
        
        
Keywords: deprecate,deprecated,deprecation,warning,warn,decorator
Platform: any
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Software Development :: Libraries :: Python Modules
