python3-cyberfusion-file-support


Namepython3-cyberfusion-file-support JSON
Version 1.2 PyPI version JSON
download
home_pageNone
SummaryLibrary for idempotent writing to files.
upload_time2024-08-29 20:07:19
maintainerNone
docs_urlNone
authorNone
requires_pythonNone
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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

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

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "python3-cyberfusion-file-support",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": null,
    "author_email": "Cyberfusion <support@cyberfusion.io>",
    "download_url": "https://files.pythonhosted.org/packages/b6/64/240ca726fd6df0c8656a8a7f67517a11d8bc76e1a9541bd515a0ee3678c8/python3_cyberfusion_file_support-1.2.tar.gz",
    "platform": null,
    "description": "# python3-cyberfusion-file-support\n\nLibrary for idempotent writing to files.\n\n# Install\n\n## PyPI\n\nRun the following command to install the package from PyPI:\n\n    pip3 install python3-cyberfusion-file-support\n\n## Debian\n\nRun the following commands to build a Debian package:\n\n    mk-build-deps -i -t 'apt -o Debug::pkgProblemResolver=yes --no-install-recommends -y'\n    dpkg-buildpackage -us -uc\n\n# Configure\n\nNo configuration is supported.\n\n# Usage\n\n## Example\n\n```python\nfrom cyberfusion.QueueSupport import Queue\nfrom cyberfusion.FileSupport import DestinationFileReplacement\n\nqueue = Queue()\n\ntmp_file = DestinationFileReplacement(\n    queue,\n    contents=\"foobar\",\n    destination_file_path=\"/tmp/foobar.txt\",\n    default_comment_character=None,\n    command=[\"true\"],\n)\n\nprint(tmp_file.differences)\n\ntmp_file.add_copy_to_queue()\n\nqueue.process(preview=...)\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Library for idempotent writing to files.",
    "version": "1.2",
    "project_urls": {
        "Source": "https://github.com/CyberfusionIO/python3-cyberfusion-file-support"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "624213b858bbe1a42dbe4e9be90438466c977d4e9cd4fd3694226017f7296b27",
                "md5": "cb61a65f7138bdcc2748316603388a70",
                "sha256": "495af788fbcf27950535604ba77765aab61e97c82b5408c5072c991383c04d43"
            },
            "downloads": -1,
            "filename": "python3_cyberfusion_file_support-1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "cb61a65f7138bdcc2748316603388a70",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 4535,
            "upload_time": "2024-08-29T20:07:18",
            "upload_time_iso_8601": "2024-08-29T20:07:18.583230Z",
            "url": "https://files.pythonhosted.org/packages/62/42/13b858bbe1a42dbe4e9be90438466c977d4e9cd4fd3694226017f7296b27/python3_cyberfusion_file_support-1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b664240ca726fd6df0c8656a8a7f67517a11d8bc76e1a9541bd515a0ee3678c8",
                "md5": "07b88760422b6ce43ad9a62b915f0abf",
                "sha256": "26aac74e6b562f1c74da7418a7c86320ca28efcad0f4b665acdf662433002e7e"
            },
            "downloads": -1,
            "filename": "python3_cyberfusion_file_support-1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "07b88760422b6ce43ad9a62b915f0abf",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3879,
            "upload_time": "2024-08-29T20:07:19",
            "upload_time_iso_8601": "2024-08-29T20:07:19.596345Z",
            "url": "https://files.pythonhosted.org/packages/b6/64/240ca726fd6df0c8656a8a7f67517a11d8bc76e1a9541bd515a0ee3678c8/python3_cyberfusion_file_support-1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-29 20:07:19",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "CyberfusionIO",
    "github_project": "python3-cyberfusion-file-support",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "python3-cyberfusion-file-support"
}
        
Elapsed time: 0.58196s