Python Package
Python provides a very straightforward packaging system, which extends the module mechanism to a directory.
Any directory with an __init__.py
file is considered a Python package. The top-level directory with an __init__.py
is the root package.9 The different modules in the pack‐ age are imported in a similar manner as plain modules, but with a special behavior for the __init__.py
file, which is used to gather all package-wide definitions.
Here is a tutorial on hwo to write your python package: https://python-packaging-tutorial.readthedocs.io/en/latest/setup_py.html
- I think I might eventually do this for my Poker AI