This release is a pre-release and may not be stable for production use.
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
Release files for atpublic 8.0.0a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| atpublic-8.0.0a1.tar.gz | 9.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| atpublic-8.0.0a1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.7 kB
Release files / atpublic-8.0.0a1.tar.gz
| Download URL | atpublic-8.0.0a1.tar.gz |
|---|---|
| Size | 9.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7bdb3e83da7a6e741d0c7ee6d27143467c68c57277e1ffeafe800425967ea333
|
|
BLAKE2b-256 checksum How to use checksums |
c16689ead40759a637f3412898a80aaa15ef4f40c8d5d17fa6cb3b0d56cbabdf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / atpublic-8.0.0a1-py3-none-any.whl
| Download URL | atpublic-8.0.0a1-py3-none-any.whl |
|---|---|
| Size | 10.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9eadf02783a8c80faded98c87ed6da72181bbe2ea76414e3d2f27b82d21e6f7f
|
|
BLAKE2b-256 checksum How to use checksums |
643604abd9125cf7f221cb800fe668c0cf258a6025d076afc2a6738735a1f5d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|