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.1.post12.tar.gz (21.6 kB view details)

Uploaded Source

File details

Details for the file atomictempfile-0.1.post12.tar.gz.

File metadata

File hashes

Hashes for atomictempfile-0.1.post12.tar.gz
Algorithm Hash digest
SHA256 792ec4e0bf966422a6104f781062d53921b65a2c7bbcc7b86175272b6e417b60
MD5 dec668eb20384822daf9c25eef64a852
BLAKE2b-256 a0af62d28385716dbe16861fa255e67254520a3d574fb9a2bb75a8d70ffa7481

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