Skip to main content

One decrator 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


#  __all__ == ['some_public_function']

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

Uploaded Source

Built Distribution

module_exports-1.0.0-py3-none-any.whl (2.6 kB view hashes)

Uploaded Python 3

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