privates.py 0.2.0

Creator: bradpython12

Last updated:

Add to Cart

Description:

privates.py 0.2.0

privates.py





PyPI
Documentation
Source

Installation
Linux/macOS
python3 -m pip install -U privates.py

Windows
py -3 -m pip install -U privates.py

Example
from privates import private

@private
class Hello:
__readonly__ = "bar",

def __init__(self):
self.bar = "hello world!"

hello = Hello()
print(hello.bar) # hello world!
hello.bar = "goodbye, world :(" # AccessError

License
privates.py is distributed under the terms of the MIT license.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.