@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.59.tar.gz
(3.4 kB
view details)
File details
Details for the file public-0.0.59.tar.gz
.
File metadata
- Download URL: public-0.0.59.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4863444da7a1f2e99fb3d0831d06239a3681767eddf6a33e1075aab8746d3742 |
|
MD5 | 2371d53917e2eaeab7ecc189e8a2adbf |
|
BLAKE2b-256 | ca1b47575012820bd92002f2eefebc14f5c5cabd3a4b595033bd2eaae7efe4a1 |