@public and @private
This library provides two very simple decorators that document the public visibility of the names in your module. They keep your module’s __all__ in sync so you don’t have to.
Also included is a function that you can put at the bottom of your module to simply infer all the public names, and populate the __all__ for you.
Installation
$ pip install atpublic
The install extra additionally installs @public and @private into builtins, so they’re always available without having to import them first:
$ pip install atpublic[install]
Note that while the top-level module is named public, the PyPI package is called atpublic due to a name conflict. Do not install public; that is a different package!
Project details
Project home: https://gitlab.com/flufl/public
Report bugs at: https://gitlab.com/flufl/public/-/work_items
Code hosting: https://gitlab.com/flufl/public.git
Documentation: https://public.readthedocs.io
Metadata
Release files for atpublic 9.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| atpublic-9.0.0.tar.gz | 27.4 kB | Without provenance | Details for atpublic-9.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| atpublic-9.0.0-py3-none-any.whl | Python 3 | none | any | Details for atpublic-9.0.0-py3-none-any.whl |
Total release size: 38.6 kB
Release files / atpublic-9.0.0.tar.gz
| Download URL | atpublic-9.0.0.tar.gz |
|---|---|
| Size | 27.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
61ea62d8445d2aaa83b6dffaa3d90f99fcec10e16683ee9b13792cdcdafa0966
|
|
BLAKE2b-256 checksum How to use checksums |
083f23b2643edfae61210baee60eec95873a4ad4fc6a7c096a725f240a0bf4db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / atpublic-9.0.0-py3-none-any.whl
| Download URL | atpublic-9.0.0-py3-none-any.whl |
|---|---|
| Size | 11.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
449c3c4f0c74df79749d6fe225ba55e2a2fce34b303f0329211e4d6989ed6f6e
|
|
BLAKE2b-256 checksum How to use checksums |
34d1875c831006b60a9b93d8d5aba734fde33402d9136785d824fa0ba8765731
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Security for atpublic 9.0.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.