Skip to content

hlovatt/PyBoardTypeshedGenerator

Repository files navigation

Micropython Typeshed Generator (formerly known as PyBoard Typeshed Generator)

Code to generate typesheds (type hint interface stubs .pyi) from restructured text help files (.rst) as used in MicroPython. This code generates the typesheds in PyBoardTypeshed repository. The README for the typeshed repository describes how to use the typesheds.

See doc comment in rsi2pyi.py for a brief description of how to write translators.

Run:

    cd <directory of PyBoardTypeShedGenerator>
    python3 main.py <destination directory>

or if main.py is executable:

    cd <directory of PyBoardTypeShedGenerator>
    ./main.py <destination directory>

About

Code to generate typesheds (a.k.a.: interface stubs, `pyi` files, and type hints) for MicroPython from restructured text files (`.rst`).

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages