pipen-lock


Namepipen-lock JSON
Version 0.9.1 PyPI version JSON
download
home_pageNone
SummaryProcess lock for pipen to prevent multiple runs at the same time
upload_time2025-03-08 01:11:11
maintainerNone
docs_urlNone
authorpwwang
requires_python<4.0,>=3.9
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # pipen-lock

Process lock for pipen to prevent multiple runs at the same time

## Installation

```bash
pip install -U pipen-lock
```

## Enable/Disable

The plugin is enabled by default. To disable it, either uninstall it or:

```python
from pipen import Proc, Pipen

# process definition

class MyPipeline(Pipen):
    plugins = ["-lock"]

```

## Configuration

- `lock_soft`: Whether to use soft lock. Default: `False`
    non-soft lock is platform dependent while soft lock only watches the existence of the lock file.
    See more details <https://py-filelock.readthedocs.io/en/latest/index.html#filelock-vs-softfilelock>
    for the difference between `FileLock` and `SoftFileLock`

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "pipen-lock",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.9",
    "maintainer_email": null,
    "keywords": null,
    "author": "pwwang",
    "author_email": "pwwang@pwwang.com",
    "download_url": "https://files.pythonhosted.org/packages/2c/18/0700669ae6b5dfe1b6d61593cbbd89e14e774e0420936feaa8448dbc5a08/pipen_lock-0.9.1.tar.gz",
    "platform": null,
    "description": "# pipen-lock\n\nProcess lock for pipen to prevent multiple runs at the same time\n\n## Installation\n\n```bash\npip install -U pipen-lock\n```\n\n## Enable/Disable\n\nThe plugin is enabled by default. To disable it, either uninstall it or:\n\n```python\nfrom pipen import Proc, Pipen\n\n# process definition\n\nclass MyPipeline(Pipen):\n    plugins = [\"-lock\"]\n\n```\n\n## Configuration\n\n- `lock_soft`: Whether to use soft lock. Default: `False`\n    non-soft lock is platform dependent while soft lock only watches the existence of the lock file.\n    See more details <https://py-filelock.readthedocs.io/en/latest/index.html#filelock-vs-softfilelock>\n    for the difference between `FileLock` and `SoftFileLock`\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Process lock for pipen to prevent multiple runs at the same time",
    "version": "0.9.1",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5f322e5ee835cb939a19c4eaad4feb10fa6f6800e922a21ae2352c590989dbb6",
                "md5": "a3902ee79b3625293b1c3ae3afa42fc6",
                "sha256": "efe6113b65cd31b204fcfc5829f5a7879d3e2077ac81b0fefe9fffef3549d7ac"
            },
            "downloads": -1,
            "filename": "pipen_lock-0.9.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "a3902ee79b3625293b1c3ae3afa42fc6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 3445,
            "upload_time": "2025-03-08T01:11:10",
            "upload_time_iso_8601": "2025-03-08T01:11:10.026736Z",
            "url": "https://files.pythonhosted.org/packages/5f/32/2e5ee835cb939a19c4eaad4feb10fa6f6800e922a21ae2352c590989dbb6/pipen_lock-0.9.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2c180700669ae6b5dfe1b6d61593cbbd89e14e774e0420936feaa8448dbc5a08",
                "md5": "80eb6e5151585b32d078bcfc58b2a3dd",
                "sha256": "2b394e509fafe66d6de9e9476cb7dc43b5d17ff2ad57402e86ff3abcf5fc3767"
            },
            "downloads": -1,
            "filename": "pipen_lock-0.9.1.tar.gz",
            "has_sig": false,
            "md5_digest": "80eb6e5151585b32d078bcfc58b2a3dd",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 3039,
            "upload_time": "2025-03-08T01:11:11",
            "upload_time_iso_8601": "2025-03-08T01:11:11.173644Z",
            "url": "https://files.pythonhosted.org/packages/2c/18/0700669ae6b5dfe1b6d61593cbbd89e14e774e0420936feaa8448dbc5a08/pipen_lock-0.9.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-03-08 01:11:11",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "pipen-lock"
}
        
Elapsed time: 1.12059s