@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.61.tar.gz
(3.4 kB
view details)
File details
Details for the file public-0.0.61.tar.gz
.
File metadata
- Download URL: public-0.0.61.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34bea7be0726328b51045c99e65c7a6e3537c80a4f359f813d91d089f090d261 |
|
MD5 | 73382fb4afdb3057f03ef1a4be46fafd |
|
BLAKE2b-256 | 7be4c8b67dcf4063e392418c14a9f3eb23cf50c349ff0cf098ed426371dc5644 |