Skip to main content

# memcache_lock Simple locking mechanism for Python 2.7 GAE, using memcache

## Usage

Import the UUIDLock class in any app engine module

` from memcache_lock import UUIDLock `

Acquire the lock

` lock_helper = UUIDLock(key='lock_key') lock_helper.lock() `

Release the lock

` lock_helper.release() `

## Options

### You use other kwargs to control the lock mechanism

Send default_timeout in secs to change the time after with the lock will be released automatically ` lock_helper = UUIDLock(key='lock_key', default_timeout=3600) ` NOTE: default value for timeout is 24 hours

Send force_lock as True to acquire lock even if some other application already has lock on the key ` lock_helper = UUIDLock(key='lock_key', force_lock=True) ` NOTE: default value for force_lock is False

Send max_wait_time in secs to raise Exception if lock is not acquired after waiting for max_wait_time ` lock_helper = UUIDLock(key='lock_key', max_wait_time=120) ` NOTE: default value for max_wait_time is 60 secs

Metadata

Release files for memcache-lock 0.0.5

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

Source distribution (sdist)

Source distribution for memcache-lock 0.0.5
File Size Uploaded
memcache_lock-0.0.5.tar.gz 2.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for memcache-lock 0.0.5
File Interpreter ABI Platform
memcache_lock-0.0.5-py2-none-any.whl Python 2 none any Details

Total release size: 5.8 kB

Release files / memcache_lock-0.0.5.tar.gz

Download URL memcache_lock-0.0.5.tar.gz
Size 2.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ef660d6e5019f7fe21d23ca363e9a72904e9c8d03e172df1ae12d3acd02a997d
BLAKE2b-256 checksum
How to use checksums
6dd72dc8f30a29bfc845726ce318db3a53eaef974f75730bb54dd957da8e9c82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15

Release files / memcache_lock-0.0.5-py2-none-any.whl

Download URL memcache_lock-0.0.5-py2-none-any.whl
Size 3.6 kB
Tags Python 2
SHA-256 checksum
How to use checksums
0c09fd117765b8c97ec6a36f11ea9e4ef870817bcb3d1db5fcbc0a3e0a8bd3d7
BLAKE2b-256 checksum
How to use checksums
9dc8d496dab23fbc09ee62671b61a6b8699c7d2a078f991df448e24a36880dd6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15

Release history Release notifications | RSS feed

This release

0.0.5 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

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