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.

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

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page