Welcome to the privates.py documentation!
Stop others from touching your privates!
Installation
Linux/macOS
Windows
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.