Binary package “python-editor” in ubuntu bionic
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.
Source package
Published versions
- python-editor 0.4-4 in amd64 (Proposed)
- python-editor 0.4-4 in amd64 (Release)
- python-editor 0.4-4 in arm64 (Proposed)
- python-editor 0.4-4 in arm64 (Release)
- python-editor 0.4-4 in armhf (Proposed)
- python-editor 0.4-4 in armhf (Release)
- python-editor 0.4-4 in i386 (Proposed)
- python-editor 0.4-4 in i386 (Release)
- python-editor 0.4-4 in ppc64el (Proposed)
- python-editor 0.4-4 in ppc64el (Release)
- python-editor 0.4-4 in s390x (Proposed)
- python-editor 0.4-4 in s390x (Release)