# Limits the number of running instances of a Python script
## pip install lockexclusive
## How to use it
```python
import sys
from time import sleep
from lockexclusive import configure_lock
# it can be used like this:
# configure_lock(maxinstances=1, message="More than one instance running",file=sys.argv[0])
# or without the file argument:
configure_lock(maxinstances=1, message="More than one instance running")
sleep(100)
```
Raw data
{
"_id": null,
"home_page": "https://github.com/hansalemaos/lockexclusive",
"name": "lockexclusive",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "limit,instances",
"author": "Johannes Fischer",
"author_email": "aulasparticularesdealemaosp@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/4a/90/8e2180c3774f207c74fe7acbe9e9189e44bf4ff751cb6b822c270d9d20ee/lockexclusive-0.10.tar.gz",
"platform": null,
"description": "# Limits the number of running instances of a Python script\r\n\r\n## pip install lockexclusive \r\n\r\n## How to use it\r\n\r\n```python\r\nimport sys\r\nfrom time import sleep\r\n\r\nfrom lockexclusive import configure_lock\r\n\r\n# it can be used like this:\r\n# configure_lock(maxinstances=1, message=\"More than one instance running\",file=sys.argv[0])\r\n\r\n# or without the file argument:\r\nconfigure_lock(maxinstances=1, message=\"More than one instance running\")\r\n\r\nsleep(100)\r\n\r\n\r\n```\r\n\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Limits the number of running instances of a Python script",
"version": "0.10",
"split_keywords": [
"limit",
"instances"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "409750f785605316fd288a1f99371314e8e6c40d511be4caef1614306aba458f",
"md5": "dc0ae3d1c767b79c789b2ab6885c2cd1",
"sha256": "7dc1ed2876bcb334a4b1774af9f4c0eb152ad98743ea66aaf5f42fee04351483"
},
"downloads": -1,
"filename": "lockexclusive-0.10-py3-none-any.whl",
"has_sig": false,
"md5_digest": "dc0ae3d1c767b79c789b2ab6885c2cd1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 4798,
"upload_time": "2023-04-23T01:27:36",
"upload_time_iso_8601": "2023-04-23T01:27:36.117531Z",
"url": "https://files.pythonhosted.org/packages/40/97/50f785605316fd288a1f99371314e8e6c40d511be4caef1614306aba458f/lockexclusive-0.10-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "4a908e2180c3774f207c74fe7acbe9e9189e44bf4ff751cb6b822c270d9d20ee",
"md5": "d60d6fb82671ddd57052689051836df3",
"sha256": "c71eb7ffe48e72d95577e17baeada728fa9dbefe27cefce2a63c76e6eddfff57"
},
"downloads": -1,
"filename": "lockexclusive-0.10.tar.gz",
"has_sig": false,
"md5_digest": "d60d6fb82671ddd57052689051836df3",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3418,
"upload_time": "2023-04-23T01:27:38",
"upload_time_iso_8601": "2023-04-23T01:27:38.352624Z",
"url": "https://files.pythonhosted.org/packages/4a/90/8e2180c3774f207c74fe7acbe9e9189e44bf4ff751cb6b822c270d9d20ee/lockexclusive-0.10.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-04-23 01:27:38",
"github": true,
"gitlab": false,
"bitbucket": false,
"github_user": "hansalemaos",
"github_project": "lockexclusive",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "lockexclusive"
}