---
title: "atpublic | pypx"
description: "Keep all y'all's __all__'s in sync"
canonical_url: "https://pypx.app/packages/atpublic"
meta:
  "og:description": "Keep all y'all's __all__'s in sync"
  "og:image": "https://pypx.app/_og/d/h_630%2Cc_PackageCard%2Cname_atpublic%2Cversion_9.0.0%2Csummary_Keep%2Ball%2By'all's%2B____all____'s%2Bin%2Bsync%2Clicense_Apache%2BSoftware%2BLicense%2Cp_Ii9wYWNrYWdlcy9hdHB1YmxpYyI%2Cs_q9AE1AVWtHCHNRkQ.png"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "atpublic 9.0.0"
  "twitter:image": "https://pypx.app/_og/d/h_630%2Cc_PackageCard%2Cname_atpublic%2Cversion_9.0.0%2Csummary_Keep%2Ball%2By'all's%2B____all____'s%2Bin%2Bsync%2Clicense_Apache%2BSoftware%2BLicense%2Cp_Ii9wYWNrYWdlcy9hdHB1YmxpYyI%2Cs_q9AE1AVWtHCHNRkQ.png"
---

> Index of every page on this site: [llms.txt](https://pypx.app/llms.txt)

# **atpublic**

v9.0.0

Keep all y'all's \_\_all\_\_'s in sync

11 KB Python 3.11+ py3-none-anyApache Software License

[** Diff **](https://pypx.app/packages/atpublic/diff)

`$ uv add 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.

# Installation

```console
$ pip install atpublic
```

The install extra additionally installs @public and @private into builtins, so they're always available without having to import them first:

```console
$ 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!

# Author

public is Copyright (C) 2004-2026 Barry Warsaw \<barry@python.org>

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

# 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
- PyPI: https://pypi.org/project/atpublic/

## **Details **

<dl>

<dt>Version</dt>
<dd>9.0.0</dd>

<dt>License</dt>
<dd>Apache Software License</dd>

<dt>Python</dt>
<dd>&gt;=3.11</dd>

<dt>Maintainer</dt>
<dd>Barry Warsaw &lt;barry@python.org&gt;</dd></dl>

## **Links**

- [Bug Tracker](https://gitlab.com/flufl/public/-/work_items)
- [Documentation](https://public.readthedocs.io)
- [Home Page](https://public.readthedocs.io)
- [Source](https://gitlab.com/flufl/public.git)
- [View on PyPI](https://pypi.org/project/atpublic/)

## **Release Cadence **

**5**

releases in the past year

avg 131 days between releases

## **Maintainers **

- Barry Warsaw · [barry@python.org](mailto:barry@python.org)

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://pypx.app/#website","@type":"WebSite","description":"The Python Package Index, reimagined. Fast search, dependency insights, download trends, and changelogs — all in one place.","name":"pypx","url":"https://pypx.app/"},{"@id":"https://pypx.app/packages/atpublic#webpage","@type":"WebPage","description":"Keep all y'all's __all__'s in sync","name":"atpublic","url":"https://pypx.app/packages/atpublic","isPartOf":{"@id":"https://pypx.app/#website"},"potentialAction":[{"@type":"ReadAction","target":["https://pypx.app/packages/atpublic"]}]},{"@id":"https://pypx.app/packages/atpublic#/schema/software-application/1","@type":"SoftwareApplication","applicationCategory":"DeveloperApplication","description":"Keep all y'all's __all__'s in sync","license":"Apache Software License","name":"atpublic","softwareVersion":"9.0.0"}]}
```

## Sitemap

See the full [sitemap](https://pypx.app/sitemap.md) for all pages.
