@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.15.tar.gz
(8.1 kB
view details)
File details
Details for the file public-0.0.15.tar.gz
.
File metadata
- Download URL: public-0.0.15.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69aef47dab8e23acfff3c7ea864b5178d7e9c0bccff1b918a63cbfd94906f17d |
|
MD5 | 99c52a70ed769c86ac04885e22bffcf7 |
|
BLAKE2b-256 | 4ccfdf86d26582b06b7e074032ec5efed08c54492d61679f24d3e4e3e5404784 |