Metadata-Version: 1.1
Name: dynamicmethod
Version: 1.0.1
Summary: An instance method decorator that also works as a classmethod.
Home-page: https://github.com/HashSplat/dynamicmethod
Author: Justin Engel
Author-email: jtengel08@gmail.com
License: MIT
Download-URL: https://github.com/HashSplat/dynamicmethod/archive/v1.0.1.tar.gz
Description-Content-Type: UNKNOWN
Description: #Dynamic class and instance methods!
        This simple module creates a class method that will also work as an instance method.
        
        ```python
        import dynamicmethod
        
        class Example(object):
        
            x = 1  # Default classmethod value
        
            def __init__(self, x=0):
                self.x = x
        
            @dynamicmethod
            def get_x(self):
                return self.x
                
        print(Example.get_x())
        ex = Example()
        print(ex.get_x())
        ex.x = 5
        print(ex.get_x())
        ```
        
Keywords: classmethod,instance,dynamic
Platform: any
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
