@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.64.tar.gz
(3.4 kB
view details)
File details
Details for the file public-0.0.64.tar.gz
.
File metadata
- Download URL: public-0.0.64.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f99379a976063d2e038ec61c4d80e79d83598aaf676dfb0825754d07a857332 |
|
MD5 | 9e1f21040d52829f2504bc4f6a700ada |
|
BLAKE2b-256 | df3f2ef2b0b52b5728b79a54b3a4db5ebc7837e2ae8b36f94b4548e5a7f611c0 |