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.2.tar.gz
(1.6 kB
view hashes)