Skip to main content

No project description provided

Project description

Flask http response

A Flask http custom response

Description

This is a flask http custom reponse made by flask jsonify module.

Dependencies

Flask

Uses

Install it by runing

  • pip install flask-http-response

Import into your project

  • from flask_http_response import success, result, error

Use it in your http response

  • return success.return_response(message='Successfully Completed', status=200)

If you use any type of response without passing parameter into it. No problem it will always return a default message. For result.return_response() you can pass data or object as a message into it.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flask_http_response-0.0.1.0.tar.gz (3.3 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page