pipen-lock


Namepipen-lock JSON
Version 0.8.1 PyPI version JSON
download
home_pageNone
SummaryProcess lock for pipen to prevent multiple runs at the same time
upload_time2024-07-29 23:26:34
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/3a/a6/0cdab9442551b8bb9f69d424766ca3094a2b11c211f430ca0dd3b23adcc3/pipen_lock-0.8.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.8.1",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ad342016391e57cecbbfeb40ac564ef199f46e422a8509d90acfe3430440466e",
                "md5": "81301c2969c81eface60f32b8df620b3",
                "sha256": "29e979a467502c037728fa9c0aa13d1bb1ef8c9edc09b3567511b97100ed2ba3"
            },
            "downloads": -1,
            "filename": "pipen_lock-0.8.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "81301c2969c81eface60f32b8df620b3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 3108,
            "upload_time": "2024-07-29T23:26:33",
            "upload_time_iso_8601": "2024-07-29T23:26:33.045015Z",
            "url": "https://files.pythonhosted.org/packages/ad/34/2016391e57cecbbfeb40ac564ef199f46e422a8509d90acfe3430440466e/pipen_lock-0.8.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3aa60cdab9442551b8bb9f69d424766ca3094a2b11c211f430ca0dd3b23adcc3",
                "md5": "ed725b46e5e248883540ace26111d668",
                "sha256": "f7c17520d17e79c59192d38a2fad85685d103d551117784c90bdcbd84bb34d32"
            },
            "downloads": -1,
            "filename": "pipen_lock-0.8.1.tar.gz",
            "has_sig": false,
            "md5_digest": "ed725b46e5e248883540ace26111d668",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 2764,
            "upload_time": "2024-07-29T23:26:34",
            "upload_time_iso_8601": "2024-07-29T23:26:34.095105Z",
            "url": "https://files.pythonhosted.org/packages/3a/a6/0cdab9442551b8bb9f69d424766ca3094a2b11c211f430ca0dd3b23adcc3/pipen_lock-0.8.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-29 23:26:34",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "pipen-lock"
}
        
Elapsed time: 0.33164s