Metadata-Version: 2.1
Name: Access-Modify
Version: 0.0.1
Summary: Python module which includes private, or protected class methods for your classes.
Home-page: https://github.com/pl-Steve28-lq/PythonUtils
Author: Steve28
Author-email: holiday28784@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown

# Access Modify
Use private, protected class methods in Python!

## Example

```Python
from access-modify import *

# Process decorators
@access
class Test:
    # Test.a can be used by Test class methods.
    @private
    def a(self): return 1

    # Test.b can be used by Test class, or inherited class methods.
    @protected
    def b(self): return self.a()+1

class Inherited(Test):
    @public
    def c(self): return self.b()+1

r = Test()
w = Inherited()
print(r.a()) # raise AccessException
print(r.b()) # raise AccessException
print(w.c()) # 3
```


