Documenting the public interface

This library provides two 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.

Please note that while the package is called public and it provides a top-level module named public, the PyPI package is called atpublic due to name conflicts.

Requirements

public requires Python 3.9 or newer.

Documentation

More information is available in the user guide and the API reference.

Project details

You can install it with pip:

% pip install atpublic

Do not install “public”; that is a different package!

You can grab the latest development copy of the code using git. The main repository is hosted on GitLab. If you have git installed, you can grab your own branch of the code like this:

$ git clone https://gitlab.com/warsaw/public.git

You can contact the author via barry@python.org.

Table of Contents and Index