automodinit + X
Project description
===========
AutoXInit - lazy importing
===========
The following code 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'.
* Fork the code on `github <http://pypi.python.org/pypi/automodinit>`_
* Find the original `http://pypi.python.org/pypi/automodinit <http://pypi.python.org/pypi/automodinit>`_
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.
AutoXInit - lazy importing
===========
The following code 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'.
* Fork the code on `github <http://pypi.python.org/pypi/automodinit>`_
* Find the original `http://pypi.python.org/pypi/automodinit <http://pypi.python.org/pypi/automodinit>`_
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
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
autoxinit-0.1.0.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for autoxinit-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56a1fc6cf3eae88a028ea0eff724d4e072ab3487c1b38898ab6c219156f98e4a |
|
MD5 | b2bbf881334b5e1a50d9b1e4daa6d27c |
|
BLAKE2b-256 | 15cddaec544f7ca0e2b47990da3732a5448fad98765b52656d813dc1aca753e5 |