Single access to run a python script
Project description
Single access to run a python script.
Installation
$ pip install single_access
Usage
from single_access import single_access, lock
@single_access
def main():
# try to lock this script file
...
or
@single_access(filename='/tmp/single_access_test.loc')
def main():
...
or
def main():
if not lock('/tmp/single_access_test.loc'):
return
...
Repository
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
single_access-0.0.5.tar.gz
(2.3 kB
view details)
File details
Details for the file single_access-0.0.5.tar.gz.
File metadata
- Download URL: single_access-0.0.5.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
637fd2fd54ac3cf9cf532e71b4c900709d626f52abb9fb2c42fe3b38fa39c736
|
|
| MD5 |
05d2fa020931a0225943450d80aac637
|
|
| BLAKE2b-256 |
9cd423d581cb0f4c35aa013178f451ea5843fbd3fa9e332b0dcfc5aa81be8110
|