Skip to main content

A DynamoDB modeling library

Project description

DDBModel

A Python library for DynamoDB modeling and operations.

Installation

pip install ddbmodel

Usage

from ddbmodel.base import DDBModel
from ddbmodel.field import StringField, PasswordField

class User(DDBModel):
    table_name = "users"
    
    username = StringField(hash_key=True)
    password = PasswordField()
    email = StringField()

# Create a user
user = User(username="john", password="secret", email="john@example.com")
user.put_item()

# Get a user
user = User(username="john").get_item()

Features

  • Simple DynamoDB modeling
  • Field validation
  • Password hashing
  • Transaction support
  • Key management

Project details


Download files

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

Source Distribution

ddbmodel-0.1.1.tar.gz (14.4 kB view details)

Uploaded Source

File details

Details for the file ddbmodel-0.1.1.tar.gz.

File metadata

  • Download URL: ddbmodel-0.1.1.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for ddbmodel-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e3090ee99ea9d66a961bb2fc1ba2a945a19626d042e5e5fc409309d6263c62c2
MD5 1f4e10f62b5583d1713d16670a98e0bc
BLAKE2b-256 083db5d5c55c95c680441d27b8cfe0cce68bcfba8057e2906c473a5dafca5272

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page