skillfed

dynamodb-encryption-sdk

DynamoDB Encryption Client for Python

dynamodb-encryption-sdk v3.3.0 131.1K downloads/30d#11,608 on PyPI95
Permissive license Apache License 2.0 Active released

What it is and what it does

The DynamoDB Encryption Client for Python is an AWS-provided library that adds client-side encryption to DynamoDB operations. It wraps boto3's DynamoDB client, resource, and table interfaces to transparently encrypt items before they reach DynamoDB and decrypt them on retrieval. The library supports attribute-level encryption and signing, allowing you to protect sensitive data while still querying unencrypted attributes.

The package provides two usage patterns: helper clients (EncryptedClient, EncryptedResource, EncryptedTable) that act as drop-in replacements for boto3 equivalents, and low-level item encryptor functions for advanced use cases like processing DynamoDB Streams. It depends on boto3 for AWS communication, cryptography for encryption primitives, and attrs for internal data structures. Note that the helper clients intentionally block update_item and attribute filtering operations to prevent signature validation failures from partial updates or missing signed attributes.

Use it for:

  • Protect sensitive DynamoDB table data (PII, financial records) before it leaves your application
  • Comply with data protection regulations by encrypting items client-side before storage in managed AWS services
  • Decrypt items from DynamoDB Streams for processing while maintaining encryption at rest
  • Build multi-tenant applications where each tenant's data is encrypted with separate keys
  • Migrate encrypted data between DynamoDB tables while preserving encryption boundaries

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Encrypts and decrypts DynamoDB items client-side before transmission, using boto3 as a transparent wrapper with support for attribute-level encryption and cryptographic key management.

Yes. This is an actively maintained, production-stable AWS library with no known vulnerabilities, low install friction, and permissive licensing. Install it if you need client-side encryption for DynamoDB items. Be aware that helper clients intentionally restrict update_item and attribute filtering to prevent signature validation failures—review the documentation to confirm this aligns with your access patterns.

Install

dynamodb-encryption-sdk on PyPI

pip

pip install dynamodb-encryption-sdk

uv

uv add dynamodb-encryption-sdk

poetry

poetry add dynamodb-encryption-sdk

Installing dynamodb-encryption-sdk

Before you install

Low friction: pure Python wheel with three stable runtime dependencies (boto3, cryptography, attrs). Repository is active with recent commits and no archived status.

License in practice

Apache License 2.0 (permissive): you may use, modify, and distribute this package freely in commercial and private projects, provided you include the license notice.

Quickstart

pip install dynamodb-encryption-sdk

from dynamodb_encryption_sdk.encrypted.item import encrypt_python_item, decrypt_python_item

encrypted_item = encrypt_python_item(
    item={'some': 'data', 'more': 5},
    crypto_config=my_crypto_config
)
decrypted_item = decrypt_python_item(
    item=encrypted_item,
    crypto_config=my_crypto_config
)

Requires cryptography package; see cryptography installation guide for OS-specific prerequisites. Requires Python 3.8+.

Verify before relying

  • Whether the package supports all boto3 DynamoDB operations or only a documented subset beyond put/get/scan/batch operations
  • Performance overhead of client-side encryption relative to unencrypted boto3 calls
  • Compatibility guarantees with specific boto3 versions or AWS SDK updates

Package facts

License Apache License 2.0 (permissive)
Python support not specified
Install friction low — pure-Python wheel
Runtime dependencies 3 — boto3, cryptography, attrs
Maintenance actively maintained — 737 days since the last release
Last repo commit
First released
Downloads 131,093/month — #11,608 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: dynamodb_encryption_sdk-3.3.0-py2.py3-none-any.whl

Keywords: dynamodb-encryption-sdk, aws, kms, encryption, dynamodb

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseNatural Language :: EnglishProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonTopic :: SecurityTopic :: Security :: Cryptography

Tags

dynamodb client-side encryptionencrypt dynamodb items pythonaws dynamodb encryption sdkdynamodb data protectionboto3 encrypted wrapperdynamodb cryptographyattribute-level encryption dynamodb
aws-dynamodbclient-side-encryptionkey-management

More Security packages

SecretStorage

Provides Python bindings to the FreeDesktop.org…

permissive · top 1,000 on PyPI

msal

MSAL for Python handles OAuth2 and OpenID…

permissive · top 1,000 on PyPI

joserfc

joserfc implements JOSE standards (JWS, JWE,…

permissive · top 1,000 on PyPI

Authlib

Authlib provides a complete implementation of…

permissive · top 1,000 on PyPI

argon2-cffi-bindings

Provides low-level CFFI bindings to the…

permissive · top 1,000 on PyPI

adal

ADAL for Python authenticates applications with…

permissive · top 1,000 on PyPI

aws-encryption-sdk

Encrypts and decrypts data using AWS KMS keys…

permissive · top 5,000 on PyPI

aws-cdk.aws-dynamodb

Provides AWS CDK constructs for defining,…

permissive · top 15,000 on PyPI

django-encrypted-model-fields

Wraps Django model fields with transparent…

permissive · top 15,000 on PyPI

credstash

CredStash stores and retrieves secrets using…

permissive · top 15,000 on PyPI

aws-cryptographic-material-providers

Provides cryptographic material management and…

unclear · top 15,000 on PyPI

pynamodb

PynamoDB provides a Pythonic ORM-like interface…

permissive · top 5,000 on PyPI

django-cryptography-django5

Encrypts and decrypts data in Django models…

permissive · top 15,000 on PyPI

davey

Implements the Discord Audio & Video End-to-End…

permissive · top 5,000 on PyPI

ansible-vault

Reads and writes Ansible vault-encrypted YAML…

copyleft · top 15,000 on PyPI

aws-encryption-sdk-cli

Command-line tool to encrypt and decrypt files…

permissive · top 15,000 on PyPI