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.

Metadata

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 Provenance Actions
privates_py-0.2.0.tar.gz 5.3 kB Without provenance Details for privates_py-0.2.0.tar.gz

Built distribution (wheel)

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

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

Security for privates.py 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

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