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()
Release files for finalsa-dynamo-dao 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| finalsa_dynamo_dao-0.1.0.tar.gz | 4.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| finalsa_dynamo_dao-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.1 kB
Release files / finalsa_dynamo_dao-0.1.0.tar.gz
| Download URL | finalsa_dynamo_dao-0.1.0.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fd93f76cd9ae1b75f34180445a5f837d54b2e6fd33fd6aa6f21e61c4df8a2319
|
|
BLAKE2b-256 checksum How to use checksums |
6c375f611e9cc3427981eb79f362b2811ad35427aecfdf597bdb402938ba0ed5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.19
|
Release files / finalsa_dynamo_dao-0.1.0-py3-none-any.whl
| Download URL | finalsa_dynamo_dao-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c1efa21b1045e6d51d30985f066667b9d1a0aa18697ee16d19fa1384780b5a52
|
|
BLAKE2b-256 checksum How to use checksums |
a129b965d9c1050fb60a3796c9943556ba8e60cb6afb620b90787ac63d95dfa3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.19
|