Skip to main content

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

python3_cyberfusion_file_support-1.6.4.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file python3_cyberfusion_file_support-1.6.4.tar.gz.

File metadata

File hashes

Hashes for python3_cyberfusion_file_support-1.6.4.tar.gz
Algorithm Hash digest
SHA256 5f10dc922c74f515408c570cbc5c64503bc6b2fceeb6063f09ede177c75ac90f
MD5 85e8130f8fdcb7b76d79b3ec057eefa8
BLAKE2b-256 2cdf1bf9ce445e1d09b7f79e3917a40ac0628580a2121a9d60cf969a360d35ca

See more details on using hashes here.

File details

Details for the file python3_cyberfusion_file_support-1.6.4-py3-none-any.whl.

File metadata

File hashes

Hashes for python3_cyberfusion_file_support-1.6.4-py3-none-any.whl
Algorithm Hash digest
SHA256 061afe3b8a1816d3689834cab9437a3cb8cbeaddd233f2d636d25b65aa567a9a
MD5 6dd1dea17aa26b74f30a44cfa0373132
BLAKE2b-256 00cd59ca50b97daceb2339f1c3425e233f639d8cf5579aeb206f0d2e56fffff0

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