@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.29.tar.gz
(8.1 kB
view details)
File details
Details for the file public-0.0.29.tar.gz
.
File metadata
- Download URL: public-0.0.29.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8dfb89750319fae7bdcb434147fb77d5e11c7ce836d8b338e72528ea4c51fcc3 |
|
MD5 | 024b6ee15d508f3b460a43eb9cb0dd58 |
|
BLAKE2b-256 | 09f27d6000c1e51922ac6a0c987ab3beba2fb26baaa5baa834e22baaa492ebf8 |