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.8.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.8.1.tar.gz.

File metadata

File hashes

Hashes for python3_cyberfusion_file_support-1.8.1.tar.gz
Algorithm Hash digest
SHA256 8c661c6cb8bb749857e2779343a70d0e8c5026d7de1bee09b359cd19687a6aff
MD5 f49bf2ae6e9ef25c5c0230f939aa7329
BLAKE2b-256 5ecce80bb7853511e39ed24d07bdc1edf6b662f0488ab1d94a980990cfa03d74

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python3_cyberfusion_file_support-1.8.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4495e59fc3a05bdeb745c2c91287797131d56341b767f457a185c342fa870979
MD5 e31a5131900295abe5a87bc2c2471c14
BLAKE2b-256 c44aabee6999fe0e8405e8f67bda09fa47edaabfca5ace8049cd86e56aa2066d

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