Skip to main content

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-0.0.1.tar.gz (1.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Access_Modify-0.0.1-py3-none-any.whl (1.5 kB view details)

Uploaded Python 3

File details

Details for the file Access-Modify-0.0.1.tar.gz.

File metadata

  • Download URL: Access-Modify-0.0.1.tar.gz
  • Upload date:
  • Size: 1.5 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

Hashes for Access-Modify-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d982d77ad748d9cc6853fe6321f600e1ac2c0e3302deb7158b25ec491758b5ce
MD5 154136309173679165bf50f3b73b859f
BLAKE2b-256 12d6d114920bf58dcee34b890d59fdf962a07390e7fbbfaccb3d59e095ef3079

See more details on using hashes here.

File details

Details for the file Access_Modify-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: Access_Modify-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 1.5 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

Hashes for Access_Modify-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7a759a3002b63b1119f5285d098da5102b3d074e3b68709957b6209b6f9802c8
MD5 15d5e6449495426dd34202bacb9803d6
BLAKE2b-256 cc6d4899094bda377819df8bd80b54043e14bb1731950e3efac8564e4293fb20

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page