Skip to main content

Lock script to allow only one instance

Project description

Build Status Requirements Status

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.1.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

scriptlock-1.0.1-py2.py3-none-any.whl (9.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file scriptlock-1.0.1.tar.gz.

File metadata

  • Download URL: scriptlock-1.0.1.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for scriptlock-1.0.1.tar.gz
Algorithm Hash digest
SHA256 334601adba0c7339a041efb36e4f2fd2e4ce3eb97889cad63913d49dbb03a7f7
MD5 a159c0baf58abe4cd03c645f93bebc81
BLAKE2b-256 26ff21c29e4a677e19bf0a5359fd1ad08da5025646eafff40968527c9aa1611e

See more details on using hashes here.

Provenance

File details

Details for the file scriptlock-1.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for scriptlock-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 db3ba5521006e29485e65d43d5fcf2362c86758e091fcaa0deef097ebd2c5ca3
MD5 fdf5a61071b3aecdd78cf92de171c37e
BLAKE2b-256 744560a7a568d40fea7bd2dd6d9b8df5983a6783ab315a5ddcac7cb0e4903902

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page