replace __all__ with @public.add decorator
Project description
Installation
$ [sudo] pip install public
Features
- replace
__all__
with@public.add
decorator
before
__all__ = ["func"]
def func():
after
import public
@public.add
def func():
Examples
>>> import public
>>> @public.add
def func(): pass
>>> @public.add
class Cls: pass
>>> __all__
['Cls','func']
>>> public.add("name")
>>> public.add(*["name1","name2"])
>>> __all__
['Cls','func','name','name1','name2']
Links
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-2020.7.1.tar.gz
(2.1 kB
view details)
File details
Details for the file public-2020.7.1.tar.gz
.
File metadata
- Download URL: public-2020.7.1.tar.gz
- Upload date:
- Size: 2.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/47.3.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf9cdd660fbf3411407ed55841ec4c53e60147d6bfde22b71a63ed86aa624d86 |
|
MD5 | 6d542de8026ed87c0e1fdbcb04e33f24 |
|
BLAKE2b-256 | 6a3b7fa7439d8b0509bbdd857eeaca36f374f5bf1224da2d6b3ebe579738fe11 |