public
replace __all__ with @public.add decorator
Decision gist · record as of 2026-08-14
No. The package is abandoned (last release 2020-12-03), offers minimal functionality that can be replicated in a few lines of code, and provides no advantage over manually maintaining `__all__`. The decorator pattern it provides is a stylistic choice with no functional benefit, and the lack of maintenance creates risk for compatibility issues.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- High install friction with no runtime dependencies.
- The package is abandoned—last release was 2020-12-03 with no commits since—and has not been maintained.
- Use only if the decorator pattern is essential to your workflow.
License · maintenance · safety
Unlicense (permissive) — Licensed under Unlicense (public domain), permissive treatment. You may use, modify, and distribute freely with no restrictions or attribution requirements.
last release 2020-12-03 (2080 days) · last repo commit 2020-12-03 · 15 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 107,903 downloads/mo, #12,588 on PyPI
Alternatives
Verify before relying
pip install public
import public
@public.add
def func():
pass
print(__all__) # ['func']- Whether the package works correctly with modern Python versions beyond those tested at release time.
- Whether the decorator correctly handles edge cases like nested modules or dynamic imports.
- Performance or compatibility impact when used in large codebases with many exports.
What it is and what it does
The public package replaces Python's traditional `__all__` list with a `@public.add` decorator. Instead of manually maintaining a list of exported names at the top of a module, you decorate each function, class, or name you want to export, and the package automatically populates `__all__` for you. This can reduce boilerplate and keep export declarations close to their definitions.
The package has no runtime dependencies and works by modifying the module's `__all__` attribute as decorators are applied. It supports decorating functions and classes individually, or calling `public.add()` with string names to add arbitrary exports. However, the project is abandoned with no updates since 2020-12-03, so it may have compatibility issues with newer Python versions or lack support for modern language features.
Use it for
- Replacing manual `__all__` lists in modules where you prefer keeping export declarations next to their definitions.
- Reducing boilerplate in packages with many exported functions or classes by using decorators instead of list maintenance.
- Programmatically adding names to `__all__` at module load time without editing the source list.
- Teaching or documenting which names are part of a module's public API through decorator syntax.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No.
The package is abandoned (last release 2020-12-03), offers minimal functionality that can be replicated in a few lines of code, and provides no advantage over manually maintaining `__all__`. The decorator pattern it provides is a stylistic choice with no functional benefit, and the lack of maintenance creates risk for compatibility issues.
Install
public on PyPI
Before you install
High install friction with no runtime dependencies. The package is abandoned—last release was 2020-12-03 with no commits since—and has not been maintained. Use only if the decorator pattern is essential to your workflow.
License in practice
Licensed under Unlicense (public domain), permissive treatment. You may use, modify, and distribute freely with no restrictions or attribution requirements.
Quickstart
pip install public
import public
@public.add
def func():
pass
print(__all__) # ['func']
Verify before relying
- Whether the package works correctly with modern Python versions beyond those tested at release time.
- Whether the decorator correctly handles edge cases like nested modules or dynamic imports.
- Performance or compatibility impact when used in large codebases with many exports.
Package facts
| License | Unlicense permissive |
| Python support | Not specified |
| Install friction | High. Source build required |
| Runtime dependencies | None |
| Maintenance | Abandoned 2,080 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 107,903 / month, #12,588 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: Public DomainOperating System :: OS IndependentProgramming Language :: Python :: 3 |
Evidence: public-2020.12.3.tar.gz
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “python __all__ decorator”
- publicProvides a decorator-based alternative to Python's `__all__` list for…
- atpublicProvides @public and @private decorators to document module…
- publicationPublication hides private implementation details and imports from a…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also atpublic · publication · deprecat · singleton-decorator · fastapi-decorators · Deprecated · cursor · zope.deprecation · varname · decorator