Skip to main content

Convenience functions for editing things. - Cameron Simpson <cs@cskk.id.au> 02jun2016

Project description

Latest release 20191201.1: Initial PyPI release: assorted functions for invoking editors on strings.

Convenience functions for editing things.

Function choose_editor(editor=None, environ=None)

Choose an editor.

Function edit(lines, editor=None, environ=None)

Write lines to a temporary file, edit the file, return the new lines.

Function edit_strings(strs, editor=None, environ=None)

Edit a list of string, return tuples of changed string pairs. Honours $EDITOR envvar, defaults to "vi".

Release Log

Release 20191201.1: Initial PyPI release: assorted functions for invoking editors on strings.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cs.edit-20191201.1.tar.gz (2.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page