Skip to main content

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

https://github.com/imbolc/single_access

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)

Uploaded Source

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

Hashes for single_access-0.0.5.tar.gz
Algorithm Hash digest
SHA256 637fd2fd54ac3cf9cf532e71b4c900709d626f52abb9fb2c42fe3b38fa39c736
MD5 05d2fa020931a0225943450d80aac637
BLAKE2b-256 9cd423d581cb0f4c35aa013178f451ea5843fbd3fa9e332b0dcfc5aa81be8110

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.5 This release

1 file

0.0.4

1 file

0.0.3

1 file

0.0.2

1 file

0.0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page