Title here
Summary here
In this article, we will see how to use packages in Python. We can use packages as a namespace and organize a big project.
In the root of the project folder, create the folders and files
The __init__.py
is an empty file. It tells Python to treat hive folder as a package. The hive is the package directory.
The contents of server.py
:
You can now use the package in your code.
From the project folder:
We now have a working setup for creating and using packages.