pyrustic / written

Try to atomically write data to a file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This package attempts to atomically write data to a file.

Example 1:

import written

data = "my text"
path = "/path/to/file.txt"

written.write(data, path)

Example 2:

import written

data = b'my bin data'
path = "/path/to/file.bin"

written.write(data, path)

Installation:

pip install written

About

Try to atomically write data to a file

License:MIT License


Languages

Language:Python 100.0%