@public decorator and public(*objects) function for add object names to __all__
Project description
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
- 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.13.tar.gz
(7.9 kB
view details)
Built Distribution
public-0.0.13-py2.7.egg
(5.7 kB
view details)
File details
Details for the file public-0.0.13.tar.gz
.
File metadata
- Download URL: public-0.0.13.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67c77a9dd46553786ca397150c4cfe41e45d9143c47aecced9ca92fea41d9daf |
|
MD5 | 4adeba075c871fd9f7796bf42c744d80 |
|
BLAKE2b-256 | b2eb81c5ba1f6df3fa023e1343aa5486871a7012c69972bcc2845cb60daba6f0 |
File details
Details for the file public-0.0.13-py2.7.egg
.
File metadata
- Download URL: public-0.0.13-py2.7.egg
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | de8175ee765fae50f7dadfd775400328e4b113ba9cb1322591a0cb631146d6bb |
|
MD5 | 3bc20d55f9f2adb20d19c06e41854d0a |
|
BLAKE2b-256 | 4e949a418ca7613dec88a78985d92dfea4c50f38bc28a433b7f80b8794d09bb3 |