Skip to main content

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


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 details)

Uploaded Source

File details

Details for the file atomictempfile-0.2.post10.tar.gz.

File metadata

File hashes

Hashes for atomictempfile-0.2.post10.tar.gz
Algorithm Hash digest
SHA256 24dcc6e42900b9979f4e5fe620a2a898cc1c2b364ff56f058b9c9c49a7a5af4f
MD5 f12f1d56dd32ea8d1aea23ed9d08c7f7
BLAKE2b-256 053cf7f1f9ef69fb26a828f38e2527541c70a406da6834a3b11ea8b0f6b0470c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page