Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

Simple Lockfile System.

Project description

[![PYTHON version](,3.6-blue.svg)](
[![PyPI version](](
[![Build Status](](
[![BCH compliance](](

# simple-lock

> Note

Simple-lockfile uses a file as a lock system.

## Coencept

## How to use

The following example is based on Django project. With this module, you can lock a view method in your app.


from simple_lock import SimpleLock

# ~~~

# A lockfile is created in the root_path directory without setting path as arguments.



from response_lockfile import lock_lockfile

# ~~~

def view():
return HttpResponse()

This decoreator creates lockfile1.lock and releases.


from response_lockfile import watch_lockfile

# ~~~

def view():
return HttpResponse()

If lockfile1.lock exists when execute app2/view:view, this decoreator returns a http response.

Project details

Release history Release notifications

This version
History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
simple_lock-1.0.1-py2.py3-none-any.whl (5.5 kB) Copy SHA256 hash SHA256 Wheel 3.6 Jun 13, 2018
simple_lock-1.0.1.tar.gz (3.8 kB) Copy SHA256 hash SHA256 Source None Jun 13, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page