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-1.0.0.tar.gz (2.3 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-1.0.0-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: Access-Modify-1.0.0.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

Hashes for Access-Modify-1.0.0.tar.gz
Algorithm Hash digest
SHA256 582240036d050ed1be9b9b0b577bbab07d1f0288339f73a67cd4cd2104addc25
MD5 c2299a5b4455b3408ca609549b336aed
BLAKE2b-256 053e06648e92deb32ff964e00029f921767c8510aee108e2c0a0b27cfa5f9640

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Access_Modify-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.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-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4dc4fabcc1aef4a9eb4b450e73954ec622a209064be52a65c0eb79a9a6a4f56e
MD5 a2d5e8ad406cb24ddc2f2d4172823350
BLAKE2b-256 02a494e63a7fb6fd3f1e3399567b40bc35a82f2996ac3e694ed69b1b44f0d67a

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