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.2.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.2.tar.gz.
File metadata
- Download URL: Access-Modify-1.0.2.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 |
949816d22b8b0a2c6ff55bd74a3479cf0f089f837a93d42a073d2531d0983b20
|
|
| MD5 |
9baf1ba10382b1cc98e9d31b5076a1d3
|
|
| BLAKE2b-256 |
e1fee6852cc92c3bd50914efb22538b818c603ab8266bd6098b27eda7ce3f09d
|
File details
Details for the file Access_Modify-1.0.2-py3-none-any.whl.
File metadata
- Download URL: Access_Modify-1.0.2-py3-none-any.whl
- Upload date:
- Size: 2.7 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 |
a466f0866fea2c32aa4082cad5d9d62bc693287bafd9181aa0abc94d03827d04
|
|
| MD5 |
389649805ceb9d99a7613f92d342db58
|
|
| BLAKE2b-256 |
b1bfe9d46d89b96290db65b857409071fe0112c463d2367134e9fc549b26bcd8
|