Skip to main content

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


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)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page