Skip to main content

privates.py

PyPI - Version Tests Build


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.

Release files for privates.py 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for privates.py 0.2.0
File Size Uploaded
privates_py-0.2.0.tar.gz 5.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for privates.py 0.2.0
File Interpreter ABI Platform
privates_py-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.9 kB

Release files / privates_py-0.2.0.tar.gz

Download URL privates_py-0.2.0.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5a42fe492255146ae12954206f175d69aaefc78848d71424caffd94345d8cb71
BLAKE2b-256 checksum
How to use checksums
97008425694320baa8cf0d62f5d2f20d439c83252951bdc14e0f0261c8802b9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.19

Release files / privates_py-0.2.0-py3-none-any.whl

Download URL privates_py-0.2.0-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f969db1a91b837289b6914452e6aec81d6d60a09707a2c339ab0ae9fe5ec2ab
BLAKE2b-256 checksum
How to use checksums
876c97b076de50c5d3cd9c46cf37c65a798c15e9022f7a4af91419c005f8e8d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.19

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page