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


Release history Release notifications

Download files

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

Files for cs.edit, version 20191201.1
Filename, size File type Python version Upload date Hashes
Filename, size cs.edit-20191201.1.tar.gz (2.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page