Skip to main content

@public decorator and public(*objects) function for add object names to __all__

Project description

https://img.shields.io/pypi/v/public.svg https://img.shields.io/pypi/pyversions/public.svg https://img.shields.io/pypi/dm/public.svg

Install

github.com: pip install git+git://github.com/russianidiot/public.py.git

pypi.python.org: pip install public

download: python setup.py install && [ -e requirements.txt ] && pip install -r requirements.txt

Usage

@public decorator

public(*objects) function

from public import *

public("name")

print(__all__)
>>> ['name']

public("name1","name2")

print(__all__)
>>> ['name','name1','name2']

Feedback

github_issues - Github Issues

gitter - Chat with me (english/russian)

russianidiot.github.io/python/ - my Python packages

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.

Source Distribution

public-0.0.14.tar.gz (7.8 kB view hashes)

Uploaded Source

Built Distribution

public-0.0.14-py2.7.egg (5.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page