All Projects → stevearc → Flywheel

stevearc / Flywheel

Licence: mit
Object mapper for Amazon's DynamoDB

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Flywheel

Npdynamodb
A Node.js Simple Query Builder and ORM for AWS DynamoDB
Stars: ✭ 113 (-8.87%)
Mutual labels:  aws, orm, dynamodb
Dynogels
DynamoDB data mapper for node.js. Originally forked from https://github.com/ryanfitz/vogels
Stars: ✭ 471 (+279.84%)
Mutual labels:  aws, orm, dynamodb
Dynamo Easy
DynamoDB client for NodeJS and browser with a fluent api to build requests. We take care of the type mapping between JS and DynamoDB, customizable trough typescript decorators.
Stars: ✭ 133 (+7.26%)
Mutual labels:  aws, orm, dynamodb
Moviesapp
React Native Movies App: AWS Amplify, AWS AppSync, AWS Cognito, GraphQL, DynamoDB
Stars: ✭ 78 (-37.1%)
Mutual labels:  aws, dynamodb
Contacts api
Serverless RESTful API with AWS Lambda, API Gateway and DynamoDB
Stars: ✭ 66 (-46.77%)
Mutual labels:  aws, dynamodb
Dynamorm
Python object & relation mapping library for Amazon's DynamoDB service
Stars: ✭ 72 (-41.94%)
Mutual labels:  orm, dynamodb
Terraform Aws Dynamodb
Terraform module that implements AWS DynamoDB with support for AutoScaling
Stars: ✭ 49 (-60.48%)
Mutual labels:  aws, dynamodb
Awesome Aws
A curated list of awesome Amazon Web Services (AWS) libraries, open source repos, guides, blogs, and other resources. Featuring the Fiery Meter of AWSome.
Stars: ✭ 9,895 (+7879.84%)
Mutual labels:  aws, dynamodb
Historical
A serverless, event-driven AWS configuration collection service with configuration versioning.
Stars: ✭ 85 (-31.45%)
Mutual labels:  aws, dynamodb
Aws Cli Cheatsheet
☁️ AWS CLI + JQ = Make life easier
Stars: ✭ 94 (-24.19%)
Mutual labels:  aws, dynamodb
Jedlik
DynamoDB ODM for Node
Stars: ✭ 100 (-19.35%)
Mutual labels:  aws, dynamodb
Autopush Rs
Push Connection Node in Rust
Stars: ✭ 101 (-18.55%)
Mutual labels:  aws, dynamodb
Content Dynamodb Deepdive
Amazon DynamoDB Deep Dive Course
Stars: ✭ 59 (-52.42%)
Mutual labels:  aws, dynamodb
Aws Testing Library
Chai (https://chaijs.com) and Jest (https://jestjs.io/) assertions for testing services built with aws
Stars: ✭ 52 (-58.06%)
Mutual labels:  aws, dynamodb
Lambda Refarch Webapp
The Web Application reference architecture is a general-purpose, event-driven, web application back-end that uses AWS Lambda, Amazon API Gateway for its business logic. It also uses Amazon DynamoDB as its database and Amazon Cognito for user management. All static content is hosted using AWS Amplify Console.
Stars: ✭ 1,208 (+874.19%)
Mutual labels:  aws, dynamodb
Serverless
This is intended to be a repo containing all of the official AWS Serverless architecture patterns built with CDK for developers to use. All patterns come in Typescript and Python with the exported CloudFormation also included.
Stars: ✭ 1,048 (+745.16%)
Mutual labels:  aws, dynamodb
This Or That
This or that - Real-time atomic voting app built with AWS Amplify
Stars: ✭ 87 (-29.84%)
Mutual labels:  aws, dynamodb
Pynamodb
A pythonic interface to Amazon's DynamoDB
Stars: ✭ 1,787 (+1341.13%)
Mutual labels:  aws, dynamodb
Graphql Serverless
Sample project to guide the use of GraphQL and Serverless Architecture.
Stars: ✭ 28 (-77.42%)
Mutual labels:  aws, dynamodb
Tempest
Typesafe DynamoDB for Kotlin and Java.
Stars: ✭ 32 (-74.19%)
Mutual labels:  aws, dynamodb

Flywheel

:Build: |build|_ |coverage|_ :Documentation: http://flywheel.readthedocs.org/ :Downloads: http://pypi.python.org/pypi/flywheel :Source: https://github.com/stevearc/flywheel

.. |build| image:: https://travis-ci.org/stevearc/flywheel.png?branch=master .. _build: https://travis-ci.org/stevearc/flywheel .. |coverage| image:: https://coveralls.io/repos/stevearc/flywheel/badge.png?branch=master .. _coverage: https://coveralls.io/r/stevearc/flywheel?branch=master

Object mapper for Amazon's DynamoDB

END OF LIFE WARNING: I haven't personally used this project, or even written much python, since early 2014. I will continue to respond to bugs and pull requests, but I am no longer doing active development. My apologies to those of you who have come to rely on Flywheel; I wish I had the time to continue it. If there is anyone in the community interested in becoming the new maintainer and continuing to move development forward, send me an email and we can discuss.

If you are looking for an alternative, I can recommend PynamoDB <https://github.com/jlafon/PynamoDB>_.

Getting Started

This is what a basic model looks like (schema taken from this DynamoDB API documentation <http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GSI.html>_)

.. sourcecode:: python

from flywheel import Model, Field, GlobalIndex

class GameScore(Model):
    __metadata__ = {
        'global_indexes': [
            GlobalIndex('GameTitleIndex', 'title', 'top_score')
        ],
    }
    userid = Field(hash_key=True)
    title = Field(range_key=True)
    top_score = Field(type=int)
    top_score_time = Field(type=datetime)
    wins = Field(type=int)
    losses = Field(type=int)

    def __init__(self, title, userid):
        self.title = title
        self.userid = userid

Create a new top score

.. sourcecode:: python

>>> score = GameScore('Master Blaster', 'abc')
>>> score.top_score = 9001
>>> score.top_score_time = datetime.utcnow()
>>> engine.sync(score)

Get all top scores for a user

.. sourcecode:: python

>>> scores = engine.query(GameScore).filter(userid='abc').all()

Get the top score for Galaxy Invaders

.. sourcecode:: python

>>> top_score = engine.query(GameScore).filter(title='Galaxy Invaders')\
...     .first(desc=True)

Atomically increment a user's "wins" count on Alien Adventure

.. sourcecode:: python

>>> score = GameScore('Alien Adventure', 'abc')
>>> score.incr_(wins=1)
>>> engine.sync(score)

Get all scores on Comet Quest that are over 9000

.. sourcecode:: python

>>> scores = engine.query(GameScore).filter(GameScore.top_score > 9000,
...                                         title='Comet Quest').all()
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].