@public decorator, public(*objects) function - add objects names to __all__
Project description
Install
[sudo] pip install public
Usage
>>> from public import public
>>> @public # decorator
>>> public(*objects) # function
Example
>>> @public
def func(): pass
>>> @public
class CLS: pass
>>> print(__all__)
['CLS',func']
# public(*objects) function
>>> public("name")
>>> public("name1","name2")
>>> print(__all__)
['name','name1','name2']
Sources:
russianidiot.github.io/python/ - Python packages
russianidiot.github.io/cli/ - command line scripts
README.rst - generated with readmemako.py (python+ mako templates) and .README dotfiles
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.32.tar.gz
(7.3 kB
view details)
File details
Details for the file public-0.0.32.tar.gz
.
File metadata
- Download URL: public-0.0.32.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62ff0b1d5744c728a096ba53665a83cf853ab1c64e939e64c60e457e19bf6717 |
|
MD5 | 88feed85d3e7ec1b75032784621f0519 |
|
BLAKE2b-256 | 7a7c7da4db400a370e8ade9b1222514f61ba9e3a5ef8dbb14574d5a64ec847d5 |