

[](https://coveralls.io/github/jidn/flask-resteasy?branch=master)

# Flask-RESTeasy
It starts with an itch. I was using Flask-RESTful but I soon started
having to work around it with request parsing and output fields caused
errors. I got frustrated. I loved the project, but it was doing more
than what I wanted it to do.
I just wanted something to ease the setup and binding of flask MethodViews
for handling JSON REST APIs. The rest can be handled by other packages
dedicated to their tasks. I kept the basic resource handling for both
apps and blueprints and removed the rest: request parsing, output fields,
authentication, and static error handling.
I wanted something simple in the way Flask was simple. This is my
attempt at making it so. If you have seen Flask-RESTful, this will
look very familiar.
# Install
For install you can use pip:
```console
$ pip install flask_resteasy
```
# QuickStart
```python
from flask import Flask
from flask.ext import resteasy
app = Flask(__name__)
api = resteasy.Api(app)
@api.resource('/')
class HelloWorld(resteasy.Resource):
def get(self):
return {'msg': 'Hello world'}
def delete(self):
return {'msg': 'Sorry Dave.'}
if __name__ == '__main__':
app.run(debug=True)
```
Execute that code and you have a running server on port 5000. If you get an error, you probably have something else running on that port. Either stop the other process or change the port in your Flask app.
Now either check with a browser, or use the following commands.
```console
$ curl http://localhost:5000
{"msg": "Hello world"}
$ curl http://localhost:5000 -X "DELETE"
{"msg": "Sorry Dave."}
```
Metadata
Release files for Flask-RESTeasy 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| Flask-RESTeasy-0.0.8.tar.gz | 6.9 kB | Without provenance | Details for Flask-RESTeasy-0.0.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| Flask_RESTeasy-0.0.8-py2-none-any.whl | Python 2 | none | any | Details for Flask_RESTeasy-0.0.8-py2-none-any.whl |
Total release size: 15.7 kB
Release files / Flask-RESTeasy-0.0.8.tar.gz
| Download URL | Flask-RESTeasy-0.0.8.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5bfd8e91b37ea4a8e4554a17f6e592ba5999097119d50f2ba827ee0e1fe515d2
|
|
BLAKE2b-256 checksum How to use checksums |
5f04838bd54378a8434ae22ac0cec082883982d7e208111e5aebf66d5cd20cd2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / Flask_RESTeasy-0.0.8-py2-none-any.whl
| Download URL | Flask_RESTeasy-0.0.8-py2-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
c08c80d6328cd26eef60b1b04f13c57187d7781ed45310cbfd935c64346b892d
|
|
BLAKE2b-256 checksum How to use checksums |
5fd61f182ed21da4504e96831fed4ebaa14fed79e41a561b58ca6931237ecf70
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for Flask-RESTeasy 0.0.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.