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.1.tar.gz (3.8 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.1.tar.gz.

File metadata

File hashes

Hashes for python3_cyberfusion_file_support-1.6.1.tar.gz
Algorithm Hash digest
SHA256 fc954a6bae6c5ce272e3b8292af0f34d481ec5f74fb2054f8b27fc440c57f960
MD5 68d6f0055f4d60d4d9997810edd8b224
BLAKE2b-256 03e61f6b7cb6706a6812cd147c9642d40128a5a49500bc00ff1711791d6bd433

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python3_cyberfusion_file_support-1.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 860d36fb182c48c4dcfb83a23c8b6aa4126d7add3c631833cbc22a35d3c8793a
MD5 dd6b23e11a58ad8afa276afc4bfb34cf
BLAKE2b-256 07bc017e2cc8fcd127f9d69d432baf7aee04d6e77ed2964e49eeba2f40788892

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