@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.17.tar.gz
(8.3 kB
view details)
Built Distribution
public-0.0.17-py2.7.egg
(5.7 kB
view details)
File details
Details for the file public-0.0.17.tar.gz
.
File metadata
- Download URL: public-0.0.17.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f4ff992ae2ebd9c5dd878545dd00c348dfb804633ffcb779e12a3f187b7c362 |
|
MD5 | c024c2b329677c0ede18321345a69759 |
|
BLAKE2b-256 | 641ec7f9f31b57a93a68dc09b05a24da75e85afb150351b54b50ebc4323f377e |
File details
Details for the file public-0.0.17-py2.7.egg
.
File metadata
- Download URL: public-0.0.17-py2.7.egg
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f82015e82e08fd46bfc70de6234f88665a1480b614d01f1cbce302883adcb83c |
|
MD5 | 67e933dd96f1d2e45059e685f0db2576 |
|
BLAKE2b-256 | cb11f99d2549cf133177f89d723bd6da965c7b9a192d73430d269b7e78a998f4 |