@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
Examples
>>> @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']
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.65.tar.gz
(3.4 kB
view details)
File details
Details for the file public-0.0.65.tar.gz
.
File metadata
- Download URL: public-0.0.65.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e3cc5ad2aee017b32184a8356030997053e3a5a3cae5474620af8f77fef886e |
|
MD5 | 498484c6fc38ebc437d87078523b6f73 |
|
BLAKE2b-256 | 49210fbb5c29e2588927b7d6da606509fd54199a585a8e217780ee88a53c56eb |