@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']
Sources
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-1.0.3.tar.gz
(1.7 kB
view details)
File details
Details for the file public-1.0.3.tar.gz
.
File metadata
- Download URL: public-1.0.3.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b923b41a57ef886f4d0aee932aac848506680f3d746326149079f73a6403485f |
|
MD5 | bcc7d775a7f795aea63dbc1cc6036fed |
|
BLAKE2b-256 | e8d6297dc43e6f84fea8f92ba3fdba0c0028a4ffd122fc05ce96ee6ab0cc59f8 |