stubber.freeze.get_frozen

Collect modules and python stubs from MicroPython source projects (v1.12 +) and stores them in the all_stubs folder The all_stubs folder should be mapped/symlinked to the micropython_stubs/stubs repo/folder

Module Contents

Functions

get_manifests(→ List[pathlib.Path])

return a list of all manifests.py files found in the ports folder

freeze_any(stub_folder, version[, mpy_path, mpy_lib_path])

get and parse the to-be-frozen .py modules for micropython to extract the static type information

Attributes

FAMILY

stubber.freeze.get_frozen.FAMILY = micropython
stubber.freeze.get_frozen.get_manifests(mpy_path: pathlib.Path) List[pathlib.Path]

return a list of all manifests.py files found in the ports folder

Parameters

mpy_path (pathlib.Path) –

Return type

List[pathlib.Path]

stubber.freeze.get_frozen.freeze_any(stub_folder: pathlib.Path, version: str, mpy_path: Optional[pathlib.Path] = None, mpy_lib_path: Optional[pathlib.Path] = None)
get and parse the to-be-frozen .py modules for micropython to extract the static type information
  • requires that the MicroPython and Micropython-lib repos are checked out and available on a local path

  • repos should be cloned side-by-side as some of the manifests refer to micropython-lib scripts using a relative path

the repos should be checked out to the version

Parameters