An atomic file write context manager
Project description
A context manager for atomic file writes.
$ pip install atomictempfile
AtomicTempFile
A temporary file object which will be atomically renamed to the specified path on exit.
- with AtomicTempFile(‘whatever’) as f:
f.write(‘stuff’)
This allows transactional behaviours with file writes.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
atomictempfile-0.1.post12.tar.gz
(21.6 kB
view hashes)
Close
Hashes for atomictempfile-0.1.post12.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 792ec4e0bf966422a6104f781062d53921b65a2c7bbcc7b86175272b6e417b60 |
|
MD5 | dec668eb20384822daf9c25eef64a852 |
|
BLAKE2b-256 | a0af62d28385716dbe16861fa255e67254520a3d574fb9a2bb75a8d70ffa7481 |