in_place (conda): The in_place module provides an InPlace class for reading & writing a file "in-place": data that you write ends up at the same filepath that you read from, and in_place takes care of all the necessary mucking about with temporary files for you.
Keywords: available-on-pypi|file|fileinput|in-place|inplace|io|open|python|redirection|sed|tempfile|tmpfile