Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

lock the file when access local resource

Project description

Use mono-require to access local resource for avoid read/write conflict.


  • Python 3.6+
  • Works on Linux, Windows, Mac OSX, BSD



pip install mono-require


Use require to access local resource.

require support all arguments except closefd and opener of built-in method open (

And require have three more arguments with default value:

  • timeout=1 and delay=0.001. When require a resource has been used, require could waiting till timeout and throw LockTimeoutException.
  • lock_path=”.” to set the lock file location. By default we create lock file in resource directory.

Project details

Download files

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

Files for mono-require, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size mono-require-0.1.1.tar.gz (2.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page