PythonPermission 0.0.4

Creator: railscoderz

Last updated:

Add to Cart

Description:

PythonPermission 0.0.4

PythonPermission
Description
This package provide a simple way to manage element permissions in python. That is equivalent of the private, fileprivate, protected and internal access modifiers in other languages.
Installation
pip install PythonPermission

Usage
from PythonPermission import private, fileprivate, protected, internal

class MyClass:
def __init__(self):
self.private_method()
self.protected_method()
self.fileprivate_method()
self.internal_method()
self.public_method()

@private()
def private_method(self):
print("Private method")

@protected()
def protected_method(self):
print("Protected method")

@fileprivate()
def fileprivate_method(self):
print("Fileprivate method")

@internal()
def internal_method(self):
print("Internal method")

def public_method(self):
self.private_method()
self.protected_method()
self.fileprivate_method()
self.internal_method()

License
GNU General Public License v3.0
Author

Maxland255

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.