One decorator to export them __all__ :)
Project description
module-exports
Single decorator that injects __name__
of object to export into __all__
.
from module_exports import export_from_module
@export_from_module
def some_public_function():
return 4
SOME_CONSTANT = 100500
export_from_module.by_name('SOME_CONSTANT')
# __all__ == ['some_public_function', 'SOME_CONSTANT']
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
module_exports-1.1.0.tar.gz
(1.4 kB
view hashes)
Built Distribution
Close
Hashes for module_exports-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64cb3ee61dde115f60adc591e4b9bc0bc1c4b5ef3a5f9947443e13e17c00794e |
|
MD5 | 0d101fa8b3750a8ae48d2b07dd3e6393 |
|
BLAKE2b-256 | 61adf228cdbb23966f0bf7c90bb9107ad68b343759361d2b52e5424b906f2873 |