__init__.py

A file inside a folder that marks the folder as a regular Python package and runs when the package is first imported.

In more detail

It can be empty. It may import the package's main names so users can write from mypkg import thing, and it can set the package version.

Related terms

Taught in

References

Certification courses