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.0.tar.gz
(7.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ddbmodel-0.1.0.tar.gz.
File metadata
- Download URL: ddbmodel-0.1.0.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d86ef876ca5017e8ccf7a13871d4bcd1f32ff1e040d1ebf64ca73712c71a993
|
|
| MD5 |
32f53299414e540e3d24f6a1f6c33b9e
|
|
| BLAKE2b-256 |
34db7d0c0edcdf7580c319fd751238d5f851770ec54843a3925422b4f0fb3cfb
|
File details
Details for the file ddbmodel-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ddbmodel-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3366c1c918e711ae512c5c179939a0b8bacb783c4e568e0ee4be4df827cedb52
|
|
| MD5 |
e6642842ecf2bf509e97f4cae0d5b82d
|
|
| BLAKE2b-256 |
a1a9c9fcbdefece77ed7a24cda265de44ff3fe5f42a4f6c3f2d223c84d613e2c
|