micropy

Micropy Cli.

Micropy Cli is a project management/generation tool for writing Micropython code in modern IDEs such as VSCode. Its primary goal is to automate the process of creating a workspace complete with:

Linting compatible with Micropython, VSCode Intellisense, Autocompletion, Dependency Management, VCS Compatibility and more.

class micropy.MicroPy

Bases: object

Handles App State Management.

create_stubs(port, verbose=False)

Create and add stubs from Pyboard.

Parameters

port (str) – Port of Pyboard

Returns

generated stub

Return type

Stub

resolve_project(path, verbose=True)

Returns project from path if it exists.

Parameters
  • path (str) – Path to test

  • verbose (bool) – Log to stdout. Defaults to True.

Returns

Project if it exists

setup()

Creates necessary directories for micropy.