@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: [ -e requirements.txt ] && pip install -r requirements.txt; python setup.py install
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.16.tar.gz
(8.1 kB
view details)
Built Distribution
public-0.0.16-py2.7.egg
(5.7 kB
view details)
File details
Details for the file public-0.0.16.tar.gz
.
File metadata
- Download URL: public-0.0.16.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41ec7b6682b2e82fab205d6b5ac6f20275b525d353d5e09d5888dac0054a6b05 |
|
MD5 | 32163c4f624ecbd3b6b0d9a9e22b908f |
|
BLAKE2b-256 | b8c3291e3e5a14ecfe9c0f6c2d85ebddbbbd4c0d06837da73e73218a777a728e |
File details
Details for the file public-0.0.16-py2.7.egg
.
File metadata
- Download URL: public-0.0.16-py2.7.egg
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 810229aad6c436cf6bcd9aab7cf5041a4cfd9903e1bd272d2b32874dac3d31a7 |
|
MD5 | 9e80a5b8fb4045435ef8cbaef670e167 |
|
BLAKE2b-256 | 97fbd9d613a56c4801d8ad5f01f15b074b1ed7b4852ff064a205aca2e80b9272 |