I'm developing a module to help me deal with files, that's the structure:
Archive/
| archive/
- __init__.py
- move.py
- rename.py
- mime_type.py
| setup.py
I'm designing one file - one function. For me, it's better, i feel more comfortable with this style since i have an Node.js and C/C++ background.
So, my doubt is about how to implement the __init__.py
to be able to call the functions using:
from archive import move
from archive import rename
from archive import mime_type
Instead of:
from archive import move.move
from archive import rename.rename
from archive import mime_type.mime_type
I'm doing like this:
__init__.py
from move import move
from rename import rename
from mime_type import mime_type
Is there an easier way to achieve automatically this behaviour? Without the necessity of changing the __init__.py
each time i create an file.
Thanks.