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.4.tar.gz
(14.7 kB
view details)
File details
Details for the file ddbmodel-0.1.4.tar.gz.
File metadata
- Download URL: ddbmodel-0.1.4.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b32be446faa2e0ff6965e3013ac8fa64ea828601c19c91d0b8680b3db31f9ea
|
|
| MD5 |
bbb3489c25f45d48405ec9665af9781d
|
|
| BLAKE2b-256 |
ce669a3f2d9714ef3e7767f7a690c4209c95224b8a675c0841b57345dd961252
|