Atomic file writes.
Project description
Atomic file writes.
Features that distinguish it from other similar libraries:
Race-free assertion that the target file doesn’t yet exist. This can be controlled with the overwrite parameter.
Windows support, although untested. The MSDN resources are not very explicit about which operations are atomic. This requires pywin32.
Simple high-level API that wraps a very flexible class-based API.
Usage:
from atomicwrites import atomic_write with atomic_write('foo.txt') as f: f.write('Hello world.') # "foo.txt" doesn't exist yet. # Now it does.
License
Licensed under the MIT, see LICENSE.
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
atomicwrites-0.1.2.tar.gz
(9.7 kB
view hashes)
Built Distribution
Close
Hashes for atomicwrites-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 088471b73d3ac375f42b1167b80c3de1e8d7fe2824113b9a1706af21d76ba0e7 |
|
MD5 | deb49596f39ad2e2961602b4b6c04026 |
|
BLAKE2b-256 | 0f3763bddc74cce777d109fb8eb5cf049727601398fee2f7e9bbd42bacb5f5d0 |