Skip to main content

A package to lock ports

Project description


A simple library you can use to ensure that only one copy of your script is running at once

Works on *NIX systems, not sure about Windows.

from portlock import ensure_singleton

def main():
    # If you reach here, you can ensure that no other proccess
    # is running on port 6000

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

portlock-0.0.5.tar.gz (2.2 kB view hashes)

Uploaded source

Built Distribution

portlock-0.0.5-py3-none-any.whl (3.2 kB view hashes)

Uploaded py3

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