Access Modify
Use private, protected class methods in Python!
Download
pip install access-modify
Example
from access_modify import *
@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.7.tar.gz
(2.2 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.7.tar.gz.
File metadata
- Download URL: Access-Modify-1.0.7.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15e1d0430f386513c4971d8fd668d035b83daba89b00042466a39b211bd663b3
|
|
| MD5 |
246a1c44b013b6ec111950c7df5dcd34
|
|
| BLAKE2b-256 |
591521abc98ea8e689aeaea62b75a0fd672fc880aec826f9b483820feb09b71a
|
File details
Details for the file Access_Modify-1.0.7-py3-none-any.whl.
File metadata
- Download URL: Access_Modify-1.0.7-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.24.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d748431e2cddba5faca4fea1445b3efd4ce3e7a9335e10fc8c8d159eab8f805d
|
|
| MD5 |
fb7c283d1c6265f56a4415ac888a2c8e
|
|
| BLAKE2b-256 |
ad7a5b9c302f7cac652ce13f8e229b32b0b0e8338c4ae696fec0a7b9fdf38e40
|