Library for idempotent writing to files.
Project description
python3-cyberfusion-file-support
Library for idempotent writing to files.
Install
PyPI
Run the following command to install the package from PyPI:
pip3 install python3-cyberfusion-file-support
Debian
Run the following commands to build a Debian package:
mk-build-deps -i -t 'apt -o Debug::pkgProblemResolver=yes --no-install-recommends -y'
dpkg-buildpackage -us -uc
Configure
No configuration is supported.
Usage
Example
from cyberfusion.QueueSupport import Queue
from cyberfusion.FileSupport import DestinationFileReplacement
queue = Queue()
tmp_file = DestinationFileReplacement(
queue,
contents="foobar",
destination_file_path="/tmp/foobar.txt",
default_comment_character=None,
command=["true"],
)
print(tmp_file.differences)
tmp_file.add_copy_to_queue()
queue.process(preview=...)
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
Built Distribution
Close
Hashes for python3_cyberfusion_file_support-1.1.1.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b5bea3dfe72d4e4c16de41010d17274fd9b668d685f1cb3b84e313d2d994111 |
|
MD5 | 6c0e3f5f5ef0c4d1f56628de76614825 |
|
BLAKE2b-256 | 8d9baebe04d8616aa31fe3c80223aabcf4aaa027e822096f7e9ceb964cfa7e22 |
Close
Hashes for python3_cyberfusion_file_support-1.1.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 967736518b0222152698d504540c62b30dc6c24d5f2b14df964203203082f1de |
|
MD5 | f2fbcaa476370a928a065fd070ee59ad |
|
BLAKE2b-256 | 94cffe3afc89529fddfa778517028b69943d5d144457837cd893970e0db736a9 |