Metadata-Version: 1.1
Name: python-editor
Version: 1.0.1
Summary: Programmatically open an editor, capture the result.
Home-page: https://github.com/fmoo/python-editor
Author: Peter Ruibal
Author-email: ruibalp@gmail.com
License: Apache
Description: ``python-editor`` is a library that provides the ``editor`` module for
        programmatically interfacing with your system's $EDITOR.
        
        Examples
        --------
        
        .. code:: python
        
            import editor
            commit_msg = editor.edit(contents="# Enter commit message here")
        
        Opens an editor, prefilled with the contents,
        ``# Enter commit message here``. When the editor is closed, returns the
        contents in variable ``commit_msg``.
        
        .. code:: python
        
            import editor
            editor.edit(file="README.txt")
        
        Opens README.txt in an editor. Changes are saved in place.
        
        How it Works
        ------------
        
        ``editor`` first looks for the ${EDITOR} 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
        
Keywords: editor library vim emacs
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Topic :: Software Development :: Libraries
