Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

replace __all__ with @public.add decorator

Project description


$ [sudo] pip install public


  • replace __all__ with @public.add decorator


__all__ = ["func"]

def func():


import public

def func():


>>> import public
>>> @public.add
    def func(): pass

>>> @public.add
    class Cls: pass

>>> __all__

>>> public.add("name")
>>> public.add(*["name1","name2"])

>>> __all__


Project details

Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for public, version 2020.7.1
Filename, size File type Python version Upload date Hashes
Filename, size public-2020.7.1.tar.gz (2.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page