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
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python3_cyberfusion_file_support-1.6.4.tar.gz.
File metadata
- Download URL: python3_cyberfusion_file_support-1.6.4.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f10dc922c74f515408c570cbc5c64503bc6b2fceeb6063f09ede177c75ac90f
|
|
| MD5 |
85e8130f8fdcb7b76d79b3ec057eefa8
|
|
| BLAKE2b-256 |
2cdf1bf9ce445e1d09b7f79e3917a40ac0628580a2121a9d60cf969a360d35ca
|
File details
Details for the file python3_cyberfusion_file_support-1.6.4-py3-none-any.whl.
File metadata
- Download URL: python3_cyberfusion_file_support-1.6.4-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
061afe3b8a1816d3689834cab9437a3cb8cbeaddd233f2d636d25b65aa567a9a
|
|
| MD5 |
6dd1dea17aa26b74f30a44cfa0373132
|
|
| BLAKE2b-256 |
00cd59ca50b97daceb2339f1c3425e233f639d8cf5579aeb206f0d2e56fffff0
|