Template Multi Level Python Package
This is a template project for creating multi-level python package. For multi level python package, in each folder you
should insert an empty __ini__.py
. Then, in the main folder, you should import the package name (which is the same
as main folder name), then import files from sub-folders. Using this, you can import functions or classes in subfolders
by package_name.function
To test, cd to the template_multi_level
main directory, where the setup.py
is:
cd ../template_multi_level
Then:
pip install -e.
In Python:
import template_multi_level as tml
tml.function_file1()
Output:
you have called function from file 1 in level 2
3
Feel free to make the template better, and ask questions:
Maryam Bahrami - [email protected]
Project Link: https://github.com/maryami66/template_multi_level