Skip to main content

A Dynamodb ORM

Project description

Cerami

Cerami is a python library that hopefully provides some sanity to boto3's DynamoDB client. Its intended use is as a library to help define table data through the creation of models and create sane, readable, and reproducable DynamoDB requests.

Please read the Full Documentation.

Quickstart

python3 -m pip install cerami
import boto3
from cerami import Cerami
from cerami.datatype import String
from cerami.decorators import primary_key

dynamodb = boto3.client('dynamodb')
db = Cerami(dynamodb)

# Configure a Model
@primary_key('title')
class Book(db.Model):
    __tablename__ = "Books"
    title = String()
    author = String()

Book.scan.filter(Book.author.eq("Dav Pilkey")).execute()

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

cerami-0.2.7.tar.gz (35.8 kB view hashes)

Uploaded Source

Built Distribution

cerami-0.2.7-py3-none-any.whl (84.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page