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.2.tar.gz (14.7 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: ddbmodel-0.1.2.tar.gz
  • Upload date:
  • Size: 14.7 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.2.tar.gz
Algorithm Hash digest
SHA256 b5788c9c860e421a60e121e489ad8d5ccfda16bc8f171b97b2f017bda848ee39
MD5 511c90138fbc94a3775d3a879461fc0f
BLAKE2b-256 13964ddf7eab582bb020f7f350960d26bdb511a8af0d3230d64c9ca65ea5f21a

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