atpublic

Keep all y'all's __all__'s in sync

Apache-2.0 26 个版本 Python >=3.10
安装
pip install atpublic
poetry add atpublic
pipenv install atpublic
conda install atpublic
描述

====================== @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.

Author

public is Copyright (C) 2016-2025 Barry Warsaw barry@python.org

Licensed under the terms of the Apache License Version 2.0. See the LICENSE file for details.

Project details