$npx skillfedfor your agent

python-dynamodb-lock

Python library that emulates the java-based dynamo-db-client from awslabs

With conditionsPyPI Distributed ComputingReleased Oct 2018519.5K downloads / moApache Software License 2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — python_dynamodb_lock-0.9.1-py2.py3-none-any.whl
v0.9.1 · released 2018-10-28 · 2 runtime deps: boto3, botocore

Yes, with conditions. The package solves a real problem—distributed locking on DynamoDB—and has no known vulnerabilities. However, dormant maintenance (no updates since 2018-10-28) and classifiers limited to Python 3.6 and 3.7 raise questions about compatibility with modern Python versions. Verify it works with your target Python and boto3 versions before relying on it in production. The documented limitations around distributed transactions require careful application-level handling.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires an existing DynamoDB table and AWS credentials configured for boto3.
  • Low install friction with only boto3 and botocore as runtime dependencies.
  • Maintenance is dormant—last release was 2018-10-28 with no updates since, though the repository remains active.

License · maintenance · safety

Apache Software License 2.0 (permissive) — Licensed under Apache Software License 2.0 (permissive), allowing use in most commercial and open-source projects with minimal restrictions.

last release 2018-10-28 (2847 days) · last repo commit 2024-12-07 · 54 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 519,463 downloads/mo, #6,216 on PyPI

Verify before relying

pip install python-dynamodb-lock

from python_dynamodb_lock import DynamoDBLock
import boto3

dynamodb = boto3.resource('dynamodb')
lock = DynamoDBLock(dynamodb, 'lock-table-name')
lock.acquire('my-lock-name')
  • Whether the package works reliably with Python versions beyond 3.7, given classifiers list only 3.6 and 3.7.
  • Current compatibility with recent boto3 and botocore versions and whether breaking changes have occurred since 2018.
  • Whether the lock-theft callback and heartbeat mechanism perform reliably under high-latency or GC-pause conditions.
Same gist for agents: .md · .json

What it is and what it does

Python DynamoDB Lock is a distributed locking library built on DynamoDB that emulates the Java-based AmazonDynamoDBLockClient. It allows multiple processes or services to coordinate access to shared resources by acquiring named locks with configurable retry behavior, maintaining them through periodic heartbeats, and automatically releasing them after a configurable lease duration.

The library supports both coarse-grained and fine-grained locking, stores arbitrary application data alongside locks, and uses monotonically increasing clocks to handle clock skew. It notifies applications via callback if a lock is stolen or nearing expiry. However, the documentation explicitly notes that locks do not participate in distributed transactions—if a heartbeat is delayed beyond the lease duration, another client may acquire the lock while the original holder is still processing, leading to potential data inconsistency if not handled at the application level.

Use it for

  • Coordinate database writes across multiple application instances to ensure only one process modifies a given resource at a time.
  • Implement leader election among distributed services using DynamoDB as the coordination backend.
  • Prevent concurrent execution of expensive batch jobs or scheduled tasks across a fleet of servers.
  • Serialize access to shared state stored in DynamoDB when multiple Lambda functions or microservices need to update it safely.
  • Build a distributed job queue where only one worker processes a given job at a time.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, with conditions.

The package solves a real problem—distributed locking on DynamoDB—and has no known vulnerabilities. However, dormant maintenance (no updates since 2018-10-28) and classifiers limited to Python 3.6 and 3.7 raise questions about compatibility with modern Python versions. Verify it works with your target Python and boto3 versions before relying on it in production. The documented limitations around distributed transactions require careful application-level handling.

Install

python-dynamodb-lock on PyPI

Before you install

Low install friction with only boto3 and botocore as runtime dependencies. Maintenance is dormant—last release was 2018-10-28 with no updates since, though the repository remains active.

Requires an existing DynamoDB table and AWS credentials configured for boto3.

License in practice

Licensed under Apache Software License 2.0 (permissive), allowing use in most commercial and open-source projects with minimal restrictions.

Quickstart

pip install python-dynamodb-lock

from python_dynamodb_lock import DynamoDBLock
import boto3

dynamodb = boto3.resource('dynamodb')
lock = DynamoDBLock(dynamodb, 'lock-table-name')
lock.acquire('my-lock-name')

Verify before relying

  • Whether the package works reliably with Python versions beyond 3.7, given classifiers list only 3.6 and 3.7.
  • Current compatibility with recent boto3 and botocore versions and whether breaking changes have occurred since 2018.
  • Whether the lock-theft callback and heartbeat mechanism perform reliably under high-latency or GC-pause conditions.

Package facts

LicenseApache Software License 2.0 permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
boto3botocore
MaintenanceDormant 2,847 days since the last release
Last repo commit
First released
Downloads519,463 / month, #6,216 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseNatural Language :: EnglishProgramming Language :: Python :: 3Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7

Evidence: python_dynamodb_lock-0.9.1-py2.py3-none-any.whl

Tags

Capabilities
dynamodb distributed lockingaws dynamodb lock clientpython distributed locksdynamodb lease managementconcurrent access control dynamodblock heartbeat renewalmulti-process synchronization aws
Topics
dynamodbdistributed-lockingaws
PyPI keywords
python_dynamodb_lock

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “dynamodb distributed locking”

  • python-dynamodb-lockProvides distributed locking on top of DynamoDB with configurable…
  • oslo.concurrencyoslo.concurrency provides locking mechanisms and external process…
  • flufl.lockProvides NFS-safe file locking with timeout support across POSIX and…

Give your agent the search over MCP, or paste the wish link into any chat.

More Distributed Computing packages

grpcio Worth it
PyPI · Distributed Computing · released Jul 2026

gRPC Python is an HTTP/2-based RPC framework that enables you to define and call remote procedures across network boundaries using protocol buffers for serialization.

Install it if you need RPC communication in a distributed system or are integrating with existing gRPC services.

Apache-2.0compiled wheel · 3.10+
446.4Mdownloads / mo
execnet With conditions
PyPI · Libraries · released Nov 2025

execnet lets you spawn and communicate with Python interpreters across local processes, remote hosts, and different platforms, using a simple API for task distribution and inter-process messaging.

However, the aging maintenance status (275 days since last release) means you should verify it meets your concurrency and performance needs before committing to a…

MITpure Python · 3.8+aging
172.1Mdownloads / mo
cloudpickle Worth it
PyPI · Scientific/Engineering · released Nov 2025

Cloudpickle extends Python's standard pickle module to serialize lambda functions, interactively-defined functions and classes, and other constructs that the default pickle cannot handle, making it suitable for cluster computing and remote code execution.

Install it if you need to serialize lambda functions, interactively-defined code, or non-standard Python constructs for cluster computing or distributed execution.

BSD-3-Clausepure Python · 3.8+
148.4Mdownloads / mo
smart-open Worth it
PyPI · Distributed Computing · released Jul 2026

Provides a unified, open()-compatible Python API for streaming large files from remote storage (S3, GCS, Azure, HDFS, SFTP, HTTP) and local filesystems, with transparent compression support.

Install it if you work with large files on cloud storage or remote systems and want to avoid writing boilerplate around multiple SDKs.

MITpure Python
72.8Mdownloads / mo
portalocker Worth it
PyPI · Libraries · released Aug 2026

Portalocker provides cross-platform file locking with support for exclusive and shared locks, plus Redis-based distributed locks and process-aware PID file locking.

Install it if you need file or process coordination; the optional extras (pywin32, redis) are only required for specific lock types.

BSD-3-Clausepure Python · 3.10+
65.1Mdownloads / mo
ray Worth it
PyPI · Distributed Computing · released Aug 2026

Ray is a distributed computing framework that scales Python applications from a single machine to multi-node clusters, providing abstractions for parallel tasks, stateful actors, and shared objects.

permissive licensecompiled wheel · 3.10+
63.3Mdownloads / mo

See also PyMySQLLock · redlock-py · redlock · locket · aiorwlock · python-redis-lock · kazoo · dyntastic · python-etcd · etcd3