Skip to main content

appinstance

Check if an app with the same name is running, supports parameters.

install

pip install appinstance

intention

In cronjobs to detect if a program with the same arguments is already running

install

pip install appinstance

usage

from appinstance import AppInstance, AppInstanceRunning
import time

try:
    # use Appinstance context manager, "arg1" is a good place for commandline variables.
    with AppInstance("arg1", True):
        print "sleep for 2 sec"
        time.sleep(2)
except AppInstanceRunning:
    print "already running"

Metadata

Release files for appinstance 20

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for appinstance 20
File Size Uploaded Provenance Actions
appinstance-20.tar.gz 2.4 kB Without provenance Details for appinstance-20.tar.gz

Release files / appinstance-20.tar.gz

Download URL appinstance-20.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
3a75c6a0d49ccb78aaa6682eb756238aea269df7047ca8aca2f80b6dfd298c91
BLAKE2b-256 checksum
How to use checksums
078d1a8d7d48ba1aee74e862fedf7a3475f563336915a4c606dcd3e5f5586948
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for appinstance 20

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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