Module reference
pocketpy includes a focused set of Python modules and game-oriented extensions. These pages describe the APIs shipped in this repository, including differences from CPython. They are not a reference to the full Python standard library.
Most native functions accept positional arguments. Examples show supported call forms; see the argument rules.
Data and algorithms
Numbers, time, and text
Runtime and host integration
Games and grids
Optional native modules
These modules default to off in CMake. See build configuration for enabling them and initializing native dependencies.
A host application may add or replace modules. If an import fails, check the running build's capabilities and module loader. Installing a CPython package does not automatically make it available to pocketpy.