module documentation

pye - MicroPython text editor driver.

Class Editor A MicroPython text editor running on a virtual terminal.
Function pye_edit Edit files in the terminal and return the edited content.
Constant KEY_ALT_DOWN Undocumented
Constant KEY_ALT_LEFT Undocumented
Constant KEY_ALT_RIGHT Undocumented
Constant KEY_ALT_UP Undocumented
Constant KEY_BACKSPACE Undocumented
Constant KEY_BACKTAB Undocumented
Constant KEY_COMMENT Undocumented
Constant KEY_COPY Undocumented
Constant KEY_CUT Undocumented
Constant KEY_DEDENT Undocumented
Constant KEY_DEL_LINE Undocumented
Constant KEY_DEL_WORD Undocumented
Constant KEY_DELETE Undocumented
Constant KEY_DOWN Undocumented
Constant KEY_END Undocumented
Constant KEY_ENTER Undocumented
Constant KEY_FIND Undocumented
Constant KEY_FIND_AGAIN Undocumented
Constant KEY_FIRST Undocumented
Constant KEY_FORCE_QUIT Undocumented
Constant KEY_GET Undocumented
Constant KEY_GOTO Undocumented
Constant KEY_HOME Undocumented
Constant KEY_INDENT Undocumented
Constant KEY_LAST Undocumented
Constant KEY_LEFT Undocumented
Constant KEY_MARK Undocumented
Constant KEY_MATCH Undocumented
Constant KEY_MOUSE Undocumented
Constant KEY_NEXT Undocumented
Constant KEY_NEXT_PLACE Undocumented
Constant KEY_NONE Undocumented
Constant KEY_PASTE Undocumented
Constant KEY_PGDN Undocumented
Constant KEY_PGUP Undocumented
Constant KEY_PLACE Undocumented
Constant KEY_PREV Undocumented
Constant KEY_PREV_PLACE Undocumented
Constant KEY_QUIT Undocumented
Constant KEY_REDO Undocumented
Constant KEY_REDRAW Undocumented
Constant KEY_REPLC Undocumented
Constant KEY_RIGHT Undocumented
Constant KEY_SCRLDN Undocumented
Constant KEY_SCRLUP Undocumented
Constant KEY_SHIFT_CTRL_LEFT Undocumented
Constant KEY_SHIFT_CTRL_RIGHT Undocumented
Constant KEY_SHIFT_DOWN Undocumented
Constant KEY_SHIFT_LEFT Undocumented
Constant KEY_SHIFT_RIGHT Undocumented
Constant KEY_SHIFT_UP Undocumented
Constant KEY_TAB Undocumented
Constant KEY_TOGGLE Undocumented
Constant KEY_UNDO Undocumented
Constant KEY_UNDO_NEXT Undocumented
Constant KEY_UNDO_PREV Undocumented
Constant KEY_UNDO_YANK Undocumented
Constant KEY_UP Undocumented
Constant KEY_WORD_LEFT Undocumented
Constant KEY_WORD_RIGHT Undocumented
Constant KEY_WRITE Undocumented
Constant PYE_VERSION Undocumented
Variable is_micropython Undocumented
def pye_edit(content, tab_size=4, undo=50, io_device=None, storage=None):

Edit files in the terminal and return the edited content.

Parameters
content:listThe file names or content to edit.
tab_size:intThe tab width in spaces. Defaults to 4.
undo:intThe undo limit. Defaults to 50.
io_deviceThe virtual terminal device. Defaults to None.
storage:Storage or NoneThe storage interface. Defaults to None.
Returns
str or listThe saved file name or edited content.
KEY_ALT_DOWN =

Undocumented

Value
const(65515)
KEY_ALT_LEFT =

Undocumented

Value
const(65513)
KEY_ALT_RIGHT =

Undocumented

Value
const(65512)
KEY_ALT_UP =

Undocumented

Value
const(65514)
KEY_BACKSPACE =

Undocumented

Value
const(8)
KEY_BACKTAB =

Undocumented

Value
const(21)
KEY_COMMENT =

Undocumented

Value
const(65532)
KEY_COPY =

Undocumented

Value
const(4)
KEY_CUT =

Undocumented

Value
const(24)
KEY_DEDENT =

Undocumented

Value
const(65535)
KEY_DEL_LINE =

Undocumented

Value
const(65511)
KEY_DEL_WORD =

Undocumented

Value
const(65527)
KEY_DELETE =

Undocumented

Value
const(127)
KEY_DOWN =

Undocumented

Value
const(13)
KEY_END =

Undocumented

Value
const(3)
KEY_ENTER =

Undocumented

Value
const(10)
KEY_FIND =

Undocumented

Value
const(6)
KEY_FIND_AGAIN =

Undocumented

Value
const(14)
KEY_FIRST =

Undocumented

Value
const(20)
KEY_FORCE_QUIT =

Undocumented

Value
const(65510)
KEY_GET =

Undocumented

Value
const(15)
KEY_GOTO =

Undocumented

Value
const(7)
KEY_HOME =

Undocumented

Value
const(16)
KEY_INDENT =

Undocumented

Value
const(65534)
KEY_LAST =

Undocumented

Value
const(2)
KEY_LEFT =

Undocumented

Value
const(31)
KEY_MARK =

Undocumented

Value
const(12)
KEY_MATCH =

Undocumented

Value
const(65533)
KEY_MOUSE =

Undocumented

Value
const(27)
KEY_NEXT =

Undocumented

Value
const(23)
KEY_NEXT_PLACE =

Undocumented

Value
const(65507)
KEY_NONE =

Undocumented

Value
const(0)
KEY_PASTE =

Undocumented

Value
const(22)
KEY_PGDN =

Undocumented

Value
const(65522)
KEY_PGUP =

Undocumented

Value
const(65521)
KEY_PLACE =

Undocumented

Value
const(65508)
KEY_PREV =

Undocumented

Value
const(65509)
KEY_PREV_PLACE =

Undocumented

Value
const(65506)
KEY_QUIT =

Undocumented

Value
const(17)
KEY_REDO =

Undocumented

Value
const(65518)
KEY_REDRAW =

Undocumented

Value
const(5)
KEY_REPLC =

Undocumented

Value
const(18)
KEY_RIGHT =

Undocumented

Value
const(30)
KEY_SCRLDN =

Undocumented

Value
const(29)
KEY_SCRLUP =

Undocumented

Value
const(28)
KEY_SHIFT_CTRL_LEFT =

Undocumented

Value
const(65517)
KEY_SHIFT_CTRL_RIGHT =

Undocumented

Value
const(65516)
KEY_SHIFT_DOWN =

Undocumented

Value
const(65526)
KEY_SHIFT_LEFT =

Undocumented

Value
const(65520)
KEY_SHIFT_RIGHT =

Undocumented

Value
const(65519)
KEY_SHIFT_UP =

Undocumented

Value
const(65525)
KEY_TAB =

Undocumented

Value
const(9)
KEY_TOGGLE =

Undocumented

Value
const(1)
KEY_UNDO =

Undocumented

Value
const(26)
KEY_UNDO_NEXT =

Undocumented

Value
const(65504)
KEY_UNDO_PREV =

Undocumented

Value
const(65505)
KEY_UNDO_YANK =

Undocumented

Value
const(65503)
KEY_UP =

Undocumented

Value
const(11)
KEY_WORD_LEFT =

Undocumented

Value
const(65523)
KEY_WORD_RIGHT =

Undocumented

Value
const(65524)
KEY_WRITE =

Undocumented

Value
const(19)
PYE_VERSION: str =

Undocumented

Value
' V2.78 '
is_micropython: bool =

Undocumented