Search results
Results from the WOW.Com Content Network
Eve is an open source Python REST API framework designed for human beings. It allows to effortlessly build and deploy highly customizable, fully featured RESTful Web Services. Eve is powered by Flask and Cerberus and it offers native support for MongoDB data stores.
Eve is the tool that allows you to do so. Eve provides a robust, feature rich, REST-centered API implementation, and you just need to configure your API settings and behavior, plug in your datasource, and you’re good to go. See Features for a list of features available to Eve-powered APIs.
In the following paragraphs we’ll see a couple of possible Account Management implementations, both making intensive use of a host of Eve features such as Custom Endpoint Security, Role Based Access Control, User-Restricted Resource Access, Event Hooks.
When enabled, Eve begins automatically tracking changes to documents and adds the fields _version and _latest_version when retrieving documents. Behind the scenes, Eve stores document versions in shadow collections that parallels the collection of each primary resource that Eve defines.
This part of the documentation covers the installation of Eve. The first step to using any software package is getting it properly installed. Installing Eve is simple with pip :
Since you have total control over the Authorization process, integrating OAuth2 with Eve is easy. Make yourself comfortable with the topics illustrated in this page, then head over to Eve-OAuth2, an example project which leverages Flask-Sentinel to demonstrate how you can protect your API with OAuth2.
A few people suggested that I post the slides on the Eve website, so here it is: a quick rundown on Eve features, along with a few code snippets and examples. Hopefully it will do a good job in letting you decide whether Eve is valid solution for your use case.
This is the Eve configuration file, a standard Python module, and it is telling Eve that your API is comprised of just one accessible resource, people. Now your are ready to launch your API. $ python run.py * Running on http://127.0.0.1:5000/
Learn Eve at TalkPython Training¶ There is a 5 hours-long Eve course available for you at the fine TalkPython Training website. The teacher is Nicola, Eve author and maintainer.
Cerberus and Eve also offer function-based validation and type coercion, lightweight alternatives to class-based custom validation. Custom Data Types ¶ You can also add new data types by simply adding _validate_type_<typename> methods to your subclass.