@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.14.tar.gz
(7.8 kB
view details)
Built Distribution
public-0.0.14-py2.7.egg
(5.7 kB
view details)
File details
Details for the file public-0.0.14.tar.gz
.
File metadata
- Download URL: public-0.0.14.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f94996897a394e09ea85761e66de6a08a38ec8e67a0e6ef7166c947561abc3a |
|
MD5 | ef2f9cbe9a79efadfec4426244c1f8c9 |
|
BLAKE2b-256 | 4f51393a14151faa4331f2469a2dad475f59076f88c822ab4228a0e43f7c3c09 |
File details
Details for the file public-0.0.14-py2.7.egg
.
File metadata
- Download URL: public-0.0.14-py2.7.egg
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18826a6c4bb3daa233fe74731d2f5cbcfa6c8bb1570018468786c5e3103bd85b |
|
MD5 | 2860afdd4fbf303cb8f1ee04a32c8677 |
|
BLAKE2b-256 | bb84e2c67b1e69b9bff7c0ed442664359c9704d449d68027947584bd9af60828 |