Access Modify
Use private, protected class methods in Python!
Example
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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Access-Modify-1.0.3.tar.gz
(2.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file Access-Modify-1.0.3.tar.gz.
File metadata
- Download URL: Access-Modify-1.0.3.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64b41c68748bf706da4266073751728af109ad8331254c5f110e81a1a56e1ba5
|
|
| MD5 |
cfd2851f127fdb2753d5914c5687bd21
|
|
| BLAKE2b-256 |
3f0e0dda9f494e879f77ebfc484339f128f47adea1f5aebc1e66c7be61d373a4
|
File details
Details for the file Access_Modify-1.0.3-py3-none-any.whl.
File metadata
- Download URL: Access_Modify-1.0.3-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.9.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f39ee3ba8d666497b9d57e481e78336d834d1c2aca0d42fa249df3c48384690e
|
|
| MD5 |
26fdc171fd733e6e94dc925505ce1948
|
|
| BLAKE2b-256 |
772caa654ed25d95df03a368f3e8e4c101e7063f9b8b6a782a1ae5335153f568
|