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.2.post10.tar.gz
(21.7 kB
view hashes)
Close
Hashes for atomictempfile-0.2.post10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24dcc6e42900b9979f4e5fe620a2a898cc1c2b364ff56f058b9c9c49a7a5af4f |
|
MD5 | f12f1d56dd32ea8d1aea23ed9d08c7f7 |
|
BLAKE2b-256 | 053cf7f1f9ef69fb26a828f38e2527541c70a406da6834a3b11ea8b0f6b0470c |