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.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.4.tar.gz.

File metadata

File hashes

Hashes for python3_cyberfusion_file_support-1.4.tar.gz
Algorithm Hash digest
SHA256 ba9a8f48c92997db8d135fc8d73b67e0200bf98cd298b778040002db9b52c92d
MD5 97647d803fa31a3d111f8be746e8b090
BLAKE2b-256 d6cf2b18745f97f9a43ecb62836f8a423958bf1d243fb361192ac9751dd179fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python3_cyberfusion_file_support-1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ce1b6b82f6c7cca88b118d7f1fde37ec8a4b0631b645e8105fea069a38be2cf9
MD5 f9a55da7a50922c067175a11a17ae795
BLAKE2b-256 1829ac1e330c5685270f6c7f9ac811b06858c3ea5dacefba495eae28f3bc9a63

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