An utils package for using dynamodb
Project description
Dynamo Dao
Description
This is a simple DynamoDB Dao that can be used to interact with DynamoDB. It is a simple wrapper around the AWS SDK for DynamoDB.
Installation
pip install finalsa-dynamo-dao
Usage
from finalsa.dynamo.dao import DynamoDao
# Create a new model and its dao
class MyModelDao(DynamoDao):
id:str
name:str
age:int
created_at:datetime
class MyModelDao(DynamoDao):
PK:str
name:str
age:int
created_at:datetime
ttl:int
# Create a mapper
def my_mapper(item:dict) -> MyModelDao:
return MyModelDao(**item)
# Create a reverse mapper
def my_reverse_mapper(model:MyModelDao) -> dict:
return model.dict()
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
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 finalsa_dynamo_dao-0.1.1.tar.gz.
File metadata
- Download URL: finalsa_dynamo_dao-0.1.1.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5f47842c4ce45dbeff5623035685e32bbcc7cb32e00939cab6653ab3f914b22
|
|
| MD5 |
8bde3202504597ff9e01a0a8e1cfbc57
|
|
| BLAKE2b-256 |
064119e2089eece7cb2a927f47bd3c6f0d3aa20c06384f6df4c2069de53a29b3
|
File details
Details for the file finalsa_dynamo_dao-0.1.1-py3-none-any.whl.
File metadata
- Download URL: finalsa_dynamo_dao-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1af1cbec83706b76d9324c6de61cbebc827b92a0f496a65f137ab9b48d10126
|
|
| MD5 |
d9142bc5f986de13d5a7f58feda194e6
|
|
| BLAKE2b-256 |
17c8708375117e4b6ea657e1f71f61380f380c0e29329d56a38e1e3396b88b94
|