Skip to main content

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=...)

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.9.tar.gz (4.1 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.9.tar.gz.

File metadata

File hashes

Hashes for python3_cyberfusion_file_support-1.9.tar.gz
Algorithm Hash digest
SHA256 41f56b87f3986d782cb9408832578a9cf8ef1339e89b79dab4cd8d0c44091972
MD5 a3d37b7e518cb3e902ce099b7645b344
BLAKE2b-256 0c0ba6b77857abb75bd984052a79dc41a4ab1dc42b17c641e0e6b292e4b231ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python3_cyberfusion_file_support-1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 c3b53b820dc70805f763cfd082ec05f534d66507a4f227e2a23d8c0b1c99081f
MD5 c117e2da6580516e658d62c19a6192d5
BLAKE2b-256 1d147c8b0f4891ea447525a422256c6473e7288e41ee63c0c8f7304f295078ec

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.9 This release

2 files

1.8.1

2 files

1.8

2 files

1.7

2 files

1.6.4

2 files

1.6.3

2 files

1.6.2

2 files

1.6.1

2 files

1.6.0

2 files

1.5

2 files

1.4

2 files

1.3

2 files

1.2

2 files

1.1.1.2

2 files

1.1.1.1

1 file

1.1.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page