@public decorator, public(*objects) function - add objects names to __all__
Project description
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.38.tar.gz
(2.9 kB
view details)
File details
Details for the file public-0.0.38.tar.gz
.
File metadata
- Download URL: public-0.0.38.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 05b9b688508d13bff397caf046a646d17d89b01a6f330247461d7414ed101187 |
|
MD5 | d2374203d53830b328fe33ce53a095bb |
|
BLAKE2b-256 | 5672d167beff73d65636827565abebf66195e8ef79ff65c4d8ab3a6610174b77 |