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.3.tar.gz
(14.6 kB
view details)
File details
Details for the file ddbmodel-0.1.3.tar.gz.
File metadata
- Download URL: ddbmodel-0.1.3.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2810f5777d27de74f1b715ca2e138a2ba0c87e3d6844cbabbccc588fa93b7720
|
|
| MD5 |
679affb5c0f0376dab5e78e810ad07e4
|
|
| BLAKE2b-256 |
fa6825e1dae064a7f44ead83d2cc111f77d86832c71d9842d97cf897201daba3
|