Skip to main content

automodinit + X

Project description

This package extends the the py-package ‘automodinit’ with the option also to import classes and functions inside a module.

If classes/functions have the same name as modules they will override them. This is useful if the ‘one class/function per file’ principle is used

autoXInit is listed in the Python Package Index. You can install it typing ‘pip install autoxinit’.

To init your package with AutoXinit daa the following to your __init__.py:

__all__ = []
# Don't modify the line above, or this line!
from autoxinit import autoxinit
autoxinit(__name__, __file__, globals())
del autoxinit

AutoXinit also provides a test package. Importing this moule…

  1. Execute the test environment

  2. Imports all modules AND all included (dummy) functions/classes. If a function/class share the same same with its parent module calling the modules name leeds to the function/class.

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

autoxinit-0.1.1.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

autoxinit-0.1.1-py2.py3-none-any.whl (6.1 kB view hashes)

Uploaded Python 2 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