$npx skillfedfor your agent

public

replace __all__ with @public.add decorator

SkipPyPI Software DevelopmentReleased Dec 2020107.9K downloads / moUnlicenseSource build

Decision gist · record as of 2026-08-14

sdist only — public-2020.12.3.tar.gz · builds from source
v2020.12.3 · released 2020-12-03

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

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.
Same gist for agents: .md · .json

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.

Skip

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

LicenseUnlicense permissive
Python supportNot specified
Install frictionHigh. Source build required
Runtime dependenciesNone
MaintenanceAbandoned 2,080 days since the last release
Last repo commit
First released
Downloads107,903 / month, #12,588 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
python __all__ decoratormodule export decoratorpublic api markerreplace __all__ pythonmodule visibility controlpython package exportsdynamic __all__ management
Topics
module-metadataabandoned
PyPI keywords
public__all__

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

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

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.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

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.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

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.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

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.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

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.

permissive licensepure Python
323.3Mdownloads / mo

See also atpublic · publication · deprecat · singleton-decorator · fastapi-decorators · Deprecated · cursor · zope.deprecation · varname · decorator