Lock script to allow only one instance
Project description
Lock tool for scripts.
Package
Example
import time
from scriptlock import Lock
lock = Lock()
time.sleep(100)
Launch another one and see what happend
Tests
Testing is set up using pytest and coverage is handled with the pytest-cov plugin.
Run your tests with py.test in the root directory.
Coverage is ran by default and is set in the pytest.ini file. To see an html output of coverage open htmlcov/index.html after running the tests.
TODO
Travis CI
There is a .travis.yml file that is set up to run your tests for python 2.7 and python 3.2, should you choose to use it.
TODO
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
scriptlock-1.0.2.tar.gz
(4.3 kB
view details)
Built Distribution
File details
Details for the file scriptlock-1.0.2.tar.gz
.
File metadata
- Download URL: scriptlock-1.0.2.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 407b46fc6ea0add9b853e0aec48d09653a92e2db542a3424cbd40e64bfed60a8 |
|
MD5 | f1826cbdebfd7b4afa7ae715b3df4540 |
|
BLAKE2b-256 | ee6a3339c7ff7ae486ea24dffcba698dea42ca51d5017fa451cc54c8dd5971bd |
Provenance
File details
Details for the file scriptlock-1.0.2-py2.py3-none-any.whl
.
File metadata
- Download URL: scriptlock-1.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0cd40c8a4f64944ef72e70120dc982eaadfc42fd0cad89705179d0b3292f99b |
|
MD5 | bdb852ab90270c356243a7181ea275fc |
|
BLAKE2b-256 | 390ef87217747304fb733ce2d8d9fa737313cd72cca005f22229ca072b8ede04 |