Tempfile wrapper to ensure output is either complete, or empty
Project description
Tool to facilitate console script output redirection. When scripts run, often they have an output file option. If no output option is specified, its common to write to stdout. Its common to use tempfiles as output, and then rename the tempfile to the output name as the last step of the program so that the flip of output is atomic and partial/truncated/corrupt output is not confused as successful output. This is especially true when dealing with make, as exiting with error will stop make, but subsequent runs will assume that partial output files left in the workspace are complete.
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
File details
Details for the file safeoutput-1.0.tar.gz
.
File metadata
- Download URL: safeoutput-1.0.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/28.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2647a9ac580b7bd7ec70145a42f7da31bd9e62b3d3b580d50b341a3dda942280 |
|
MD5 | d74432fbb2b6a021295298c9710c564b |
|
BLAKE2b-256 | 0d5786093f3d1789dfb8c59a61c66b94e95d6904c82f1554d860f8acf951100a |