{ "info": { "author": "Anthony Martinet", "author_email": "anthony@alkivi.fr", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Build Tools" ], "description": "python-scriptlock\n=================\n\n|Build Status| |Requirements Status|\n\nLock tool for scripts.\n\nPackage\n-------\n\nExample\n\n.. code:: python\n\n import time\n import atexit\n\n from scriptlock import Lock\n\n lock = Lock()\n atexit.register(lock.cleanup) # Needed to clean the lock correctly\n\n time.sleep(100)\n\nLaunch another one and see what happend\n\nWorkaround\n----------\n\nThe use of atexit is necessary to correctly clean the lock. We tried to\nuse the **del** module but it caused issues with the logger.\n\nTests\n-----\n\nTesting is set up using `pytest `__ and coverage is\nhandled with the pytest-cov plugin.\n\nRun your tests with ``py.test`` in the root directory.\n\nCoverage is ran by default and is set in the ``pytest.ini`` file. To see\nan html output of coverage open ``htmlcov/index.html`` after running the\ntests.\n\nTODO\n\nTravis CI\n---------\n\nThere is a ``.travis.yml`` file that is set up to run your tests for\npython 2.7 and python 3.2, should you choose to use it.\n\nTODO\n\n.. |Build Status| image:: https://travis-ci.org/alkivi-sas/python-scriptlock.svg?branch=master\n :target: https://travis-ci.org/alkivi-sas/python-scriptlock\n.. |Requirements Status| image:: https://requires.io/github/alkivi-sas/python-scriptlock/requirements.svg?branch=master\n :target: https://requires.io/github/alkivi-sas/python-scriptlock/requirements/?branch=master\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/alkivi-sas/python-scriptlock", "keywords": "alkivi odoo", "license": "LGPLv3", "maintainer": "", "maintainer_email": "", "name": "scriptlock", "package_url": "https://pypi.org/project/scriptlock/", "platform": "", "project_url": "https://pypi.org/project/scriptlock/", "project_urls": { "Homepage": "https://github.com/alkivi-sas/python-scriptlock" }, "release_url": "https://pypi.org/project/scriptlock/1.0.5/", "requires_dist": null, "requires_python": "", "summary": "Lock script to allow only one instance", "version": "1.0.5" }, "last_serial": 2754566, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "94f54da32934653728aa2be9030c9e2f", "sha256": "78127dcf0c2111c681aeb1a2527f6a6dd06130ab438e7d5f7d58a5269b54d76e" }, "downloads": -1, "filename": "scriptlock-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "94f54da32934653728aa2be9030c9e2f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5427, "upload_time": "2017-03-22T15:21:24", "url": "https://files.pythonhosted.org/packages/34/5e/a622ae1d48f437ab6486ad484e6e7448d0e660958089089ca1486a4f02d5/scriptlock-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bd5728af2c3b396f21bea665460bff48", "sha256": "d043678ad5d5888462e182ba153552ed9f0bcf999f80edddca5142418b3f76ed" }, "downloads": -1, "filename": "scriptlock-1.0.0.tar.gz", "has_sig": false, "md5_digest": "bd5728af2c3b396f21bea665460bff48", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4343, "upload_time": "2017-03-22T15:21:28", "url": "https://files.pythonhosted.org/packages/a5/d2/987f5097584422bf1b396d8fd031526354b4c9e6bfe9faf168d41b072aad/scriptlock-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "fdf5a61071b3aecdd78cf92de171c37e", "sha256": "db3ba5521006e29485e65d43d5fcf2362c86758e091fcaa0deef097ebd2c5ca3" }, "downloads": -1, "filename": "scriptlock-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "fdf5a61071b3aecdd78cf92de171c37e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9719, "upload_time": "2017-03-22T15:42:34", "url": "https://files.pythonhosted.org/packages/74/45/60a7a568d40fea7bd2dd6d9b8df5983a6783ab315a5ddcac7cb0e4903902/scriptlock-1.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a159c0baf58abe4cd03c645f93bebc81", "sha256": "334601adba0c7339a041efb36e4f2fd2e4ce3eb97889cad63913d49dbb03a7f7" }, "downloads": -1, "filename": "scriptlock-1.0.1.tar.gz", "has_sig": false, "md5_digest": "a159c0baf58abe4cd03c645f93bebc81", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4326, "upload_time": "2017-03-22T15:42:35", "url": "https://files.pythonhosted.org/packages/26/ff/21c29e4a677e19bf0a5359fd1ad08da5025646eafff40968527c9aa1611e/scriptlock-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "bdb852ab90270c356243a7181ea275fc", "sha256": "e0cd40c8a4f64944ef72e70120dc982eaadfc42fd0cad89705179d0b3292f99b" }, "downloads": -1, "filename": "scriptlock-1.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "bdb852ab90270c356243a7181ea275fc", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 9712, "upload_time": "2017-03-22T16:03:57", "url": "https://files.pythonhosted.org/packages/39/0e/f87217747304fb733ce2d8d9fa737313cd72cca005f22229ca072b8ede04/scriptlock-1.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f1826cbdebfd7b4afa7ae715b3df4540", "sha256": "407b46fc6ea0add9b853e0aec48d09653a92e2db542a3424cbd40e64bfed60a8" }, "downloads": -1, "filename": "scriptlock-1.0.2.tar.gz", "has_sig": false, "md5_digest": "f1826cbdebfd7b4afa7ae715b3df4540", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4324, "upload_time": "2017-03-22T16:03:58", "url": "https://files.pythonhosted.org/packages/ee/6a/3339c7ff7ae486ea24dffcba698dea42ca51d5017fa451cc54c8dd5971bd/scriptlock-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "3b284a3b09729cb697c64792b2a9e6bf", "sha256": "dc3ad36b5d00d14f5106f91e0ba4840da8d32621bf592a626c048a595f0a3aa2" }, "downloads": -1, "filename": "scriptlock-1.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3b284a3b09729cb697c64792b2a9e6bf", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5594, "upload_time": "2017-03-23T08:54:46", "url": "https://files.pythonhosted.org/packages/f5/c2/c5ad4b922c306e4e50b078d06ad08005103d0e7fbce4db3155aef6658975/scriptlock-1.0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "73018e31132aead2c0694836c0a26d4e", "sha256": "b8f1f45f44a37cbd5d3f665e4c14115f30673a5b79c51c802793fcfe17734dd5" }, "downloads": -1, "filename": "scriptlock-1.0.3.tar.gz", "has_sig": false, "md5_digest": "73018e31132aead2c0694836c0a26d4e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4426, "upload_time": "2017-03-23T08:54:46", "url": "https://files.pythonhosted.org/packages/53/89/0ac6faaef950b92d01ee38bc2d75c336aee95ec803802d9620874cf5e1a1/scriptlock-1.0.3.tar.gz" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "2811185294eb5e01ec083f01f09e7df8", "sha256": "86e36c684fd594990662c66072713d52907953406bb2b309b4d5c29043c07426" }, "downloads": -1, "filename": "scriptlock-1.0.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2811185294eb5e01ec083f01f09e7df8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4583, "upload_time": "2017-04-05T10:50:35", "url": "https://files.pythonhosted.org/packages/00/fd/3e7be634ccf416075d77c999d1e5cbd469744484ece0a7c2fb4f08b58cf8/scriptlock-1.0.5-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2811185294eb5e01ec083f01f09e7df8", "sha256": "86e36c684fd594990662c66072713d52907953406bb2b309b4d5c29043c07426" }, "downloads": -1, "filename": "scriptlock-1.0.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2811185294eb5e01ec083f01f09e7df8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4583, "upload_time": "2017-04-05T10:50:35", "url": "https://files.pythonhosted.org/packages/00/fd/3e7be634ccf416075d77c999d1e5cbd469744484ece0a7c2fb4f08b58cf8/scriptlock-1.0.5-py2.py3-none-any.whl" } ] }