Skip to content
Sections
>> Trisquel >> Packages >> etiona >> python >> python-editor
etiona  ]
[ Source: python-editor  ]

Package: python-editor (0.4-4)

programmatically open an editor, capture the result - Python 2.7

python-editor is a library that provides the editor module for programmatically interfacing with your system's $EDITOR. The user can then enter a commit message for example.

Editor first looks for the environment variable. If set, it uses the value as-is, without fallbacks. If no $EDITOR is set, editor will search through a list of known editors, and use the first one that exists on the system. For example, on Linux, editor will look for the following editors in order:

 * vim
 * emacs
 * nano

When calling the edit() function, editor will open the editor in a subprocess, inheriting the parent process's stdin, stdout

This package contains the Python 2.7 module.

Other Packages Related to python-editor

  • depends
  • recommends
  • suggests
  • dep: python
    interactive high-level object-oriented language (default version)
  • dep: python-six
    Python 2 and 3 compatibility library (Python 2 interface)

Download python-editor

Download for all available architectures
Architecture Package Size Installed Size Files
all 4.5 kB20 kB [list of files]