Code Monkey home page Code Monkey logo

flask-pynamodb-resource's Introduction

Flask PynamoDB Resource

PyPI version Build Status

Presents PynamoDB models (DynamoDB tables) as Flask-RESTX resources.

Release Notes

As of release 1.0.0, this module creates resources using Flask-RESTX (formerly Flask-RESTPlus) instead of Flask-RESTful. If you register your models with a Flask App or Blueprint, you will find a Swagger UI and definition available at '/docs' and '/swagger.json'. If you register them with a Flask-RESTX API, they will simply be added to your existing API definition.

This brings with it some changes to the serialization of a few contentious types such a date/datetime. Previously these were either a string or number, depending on what type you used in PynamoDB. Now they should be reliably serialized as a ISO8601 datetime string.

Usage

flask_pynamodb_resource provides factory methods to generate Flask-RESTX resources for PynamoDB Models and Indexes:

modelresource_factory(model)
    Create a resource class for the given model.

indexresource_factory(index, name=None)
    Create a resource class for the given index.

Examples

Several simple REST APIs based on PynamoDB example are available in the examples directory.

flask-pynamodb-resource's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

flask-pynamodb-resource's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.