@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.63.tar.gz
(3.4 kB
view details)
File details
Details for the file public-0.0.63.tar.gz
.
File metadata
- Download URL: public-0.0.63.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06f343786ef4d3748a30360f1c1d21f0ce65fa4a42946767879b027f2d1f38d8 |
|
MD5 | 1e9f2e01d3e8c6f627be903523961c15 |
|
BLAKE2b-256 | 26acc312bb0e2780a9478d4aa144156819971be535b341950beedde439ec1c71 |