Metadata-Version: 2.1
Name: openeditor
Version: 0.1
Summary: Edit files with your $EDITOR, like git commit does.
Home-page: https://github.com/metov/openeditor
License: MIT
Author: Azat Akhmetov
Requires-Python: >=3.6,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Project-URL: Repository, https://github.com/metov/openeditor
Description-Content-Type: text/markdown

# `openeditor`
Edit files with your `$EDITOR`, like git commit does.

## Usage
```
# Let user edit file
s = openeditor.edit_file("path/to/my/file.txt")
print("The file now contains:\n" + s)

# Use a temp file
s = openeditor.edit_file("path/to/my/file.txt")
print("The file now contains:\n" + s) 
```

`openeditor.edit_file("path/to/my/file.txt")` to let user edit `path/to/my/file.txt` in the configured editor and return 
