Skip to content

Instantly share code, notes, and snippets.

View oprog's full-sized avatar
😎

oprog oprog

😎
  • The Internet
View GitHub Profile
@CMCDragonkai
CMCDragonkai / exporting_modules_functions_from_python_init.md
Last active April 6, 2024 05:50
Exporting Modules and Functions from Python `__init__.py` #python

Exporting Modules and Functions from Python __init__.py

Any directory with __init__.py is considered a package in Python.

Any python files inside a package is considered a module.

Modules contain functions and other bindings that is always exported.

If you are outside the package, and you want to import a module from a package: