Metadata-Version: 2.3
Name: privates.py
Version: 0.2.0
Summary: Stop others from touching your privates.
Project-URL: Documentation, https://privates.zintensity.dev
Project-URL: Issues, https://github.com/ZeroIntensity/privates.py/issues
Project-URL: Source, https://github.com/ZeroIntensity/privates.py
Author-email: ZeroIntensity <zintensitydev@gmail.com>
License-Expression: MIT
License-File: LICENSE.txt
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.8
Requires-Dist: typing-extensions
Description-Content-Type: text/markdown

# privates.py

[![PyPI - Version](https://img.shields.io/pypi/v/privates.py.svg)](https://pypi.org/project/privates.py)
![Tests](https://github.com/ZeroIntensity/privates.py/actions/workflows/tests.yml/badge.svg)
![Build](https://github.com/ZeroIntensity/privates.py/actions/workflows/build.yml/badge.svg)

-----

- [PyPI](https://pypi.org/project/privates.py)
- [Documentation](https://privates.zintensity.dev)
- [Source](https://github.com/ZeroIntensity/privates.py)

## Installation

### Linux/macOS


```console
python3 -m pip install -U privates.py
```

### Windows


```console
py -3 -m pip install -U privates.py
```

## Example

```py
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](https://spdx.org/licenses/MIT.html) license.
