micropy.main

Main Module.

Classes

MicroPy()

Handles App State Management.

class micropy.main.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.