Git Product home page Git Product logo

flask-restless's People

Contributors

alekzvik avatar andir avatar bjourne avatar bpedman avatar cheungpat avatar citizen-stig avatar clarete avatar croach avatar florentx avatar frewsxcv avatar glyphobet avatar jbkkd avatar jfinkels avatar jpoehnelt avatar jpvanhal avatar klinkin avatar logandk avatar maplye avatar mhils avatar natureshadow avatar oko avatar reubano avatar rezun avatar romainpaulus avatar schlamar avatar synasius avatar talam avatar timotheejeannin avatar xion avatar ykalchevskiy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flask-restless's Issues

Create a base class for database backends

Create a base class for database backends and refactor code to use this base class.

Create subclass implementations for SQLAlchemy, FlaskSQLAlchemy, and Elixir, then move on to other database abstraction libraries, like PeeWee, etc.

Support Flask-SQLAlchemy, vanilla SQLAlchemy, and Elixir in parallel

Support for Flask-SQLAlchemy is on the master branch.

Initial support for SQLAlchemy can be found on the sqlalchemy branch.

Support for Elixir can be found on the elixir branch.

Is there a simple way to merge these three so that APIManager can be configured to (possibly transparently) choose among the appropriate options, depending on how the user has defined his or her models?

The problem in definining views.py comes from the fact that each of the three has a slightly different way of doing things like querying, adding, deleting, and committing. One idea is to have an abstract class which represents this interface (that is, it might provide "add", "delete", "get_by" methods), and then implement a new class for each backend.

Trying to pip bundle flask-restless results in error

Hey all,

Trying to bundle a set of requirements for distribution inside a network behind a firewall that doesn't allow easy access for pip to get at github, etc.

This eventually results in this error for me on Mac OSX 10.7.2

pip bundle app.pybundle Flask-Restless 
...
OSError: [Errno 2] No such file or directory: '/path_to_application/build-bundle3/Flask-Restless/README'

It seems to happen when installing different packages but always says that the README file doesn't exist. Can anyone replicate this?

Use with vanilla sqlalchemy

Hi,

I'm wondering if this can be used with vanilla sqlalchemy?

And if not, what features of flask-sqlalchemy are being used?

Thankyou.

Handle requests with content-type not 'application/json'

This will be an issue when we merge branch use-request-json into master.

Requests with the incorrect Content-Type header should respond with an error message suggesting that the client should set the Content-Type to application/json.

Don't use exception.message

exception.message is deprecated in Python 2.6. Possibly solution, give a custom message for each exception.

simplejson decodes strings instead of unicodes, but database may require unicode

Due to 2e4d1e7, we are using whatever json module Flask picks up on the system. If it is simplejson, it will decode strings within a JSON string to objects of type str, not objects of type unicode. This is an issue if the database model has a field of type Unicode; SQLAlchemy raises a warning when writing a str to a unicode field. This occurs in methods which write to the database, like patch or post.

example for separate URLs for each HTTP method

Create an example (and a test case) in which a single model is affected by different URL endpoints. For example, /add/person for POST requests, /delete/person/:id for DELETE requests, /update/person/:id for PATCH requests, etc.

Tests skipped silently in Python 2.5 & 2.6

Two tests about validation is skipped silently. For more details see pallets/flask#485
The goal is to make setup.py test use unittest2 instead of unittest.
The problem of existing implementation here aed13d5 is that setup.py test does not install neither test requirements, nor the one needed for flask-restless.

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.