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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 26aac74e6b562f1c74da7418a7c86320ca28efcad0f4b665acdf662433002e7e |
|
MD5 | 07b88760422b6ce43ad9a62b915f0abf |
|
BLAKE2b-256 | b664240ca726fd6df0c8656a8a7f67517a11d8bc76e1a9541bd515a0ee3678c8 |
Close
Hashes for python3_cyberfusion_file_support-1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 495af788fbcf27950535604ba77765aab61e97c82b5408c5072c991383c04d43 |
|
MD5 | cb61a65f7138bdcc2748316603388a70 |
|
BLAKE2b-256 | 624213b858bbe1a42dbe4e9be90438466c977d4e9cd4fd3694226017f7296b27 |