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.0.tar.gz
(4.3 kB
view details)
Built Distribution
File details
Details for the file scriptlock-1.0.0.tar.gz
.
File metadata
- Download URL: scriptlock-1.0.0.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d043678ad5d5888462e182ba153552ed9f0bcf999f80edddca5142418b3f76ed |
|
MD5 | bd5728af2c3b396f21bea665460bff48 |
|
BLAKE2b-256 | a5d2987f5097584422bf1b396d8fd031526354b4c9e6bfe9faf168d41b072aad |
Provenance
File details
Details for the file scriptlock-1.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: scriptlock-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78127dcf0c2111c681aeb1a2527f6a6dd06130ab438e7d5f7d58a5269b54d76e |
|
MD5 | 94f54da32934653728aa2be9030c9e2f |
|
BLAKE2b-256 | 345ea622ae1d48f437ab6486ad484e6e7448d0e660958089089ca1486a4f02d5 |