Skip to main content

Implementations of flask response in many formats like: json, xml, html...

Project description

Flask-ResponseBuilder
=====================

Implementations of flask response in many formats: base64, csv, json, xml, html, yaml.

Based on PyYAML, xmltodict, dicttoxml. See their documentation for other options.

Decorator for http response status 201 CREATED
Decorator for http response status 204 NO_CONTENT

Support for case notation checker and converter. See ``Case`` class.

Quickstart
~~~~~~~~~~

Install ``flask_response_builder`` using ``pip``:

::

$ pip install Flask-ResponseBuilder

.. _section-1:

Example usage
^^^^^^^^^^^^^

For example usage see ``test.py`` file in example folder.

.. _section-2:

Configuration
^^^^^^^^^^^^^

1. ``RB_DEFAULT_ENCODE``: *(default: utf-8)*
2. ``RB_DEFAULT_DUMP_INDENT``: *(default: None)*
3. ``RB_BASE64_ALTCHARS``: *(default: None)*
4. ``RB_BASE64_CONTENT_TYPE``: *(default: text/plain)*
5. ``RB_HTML_DEFAULT_TEMPLATE``: *(default: None)*
6. ``RB_YAML_ALLOW_UNICODE``: *(default: True)*
7. ``RB_CSV_DEFAULT_NAME``: *(default: filename)*
7. ``RB_CSV_QUOTING``: *(default: True)*
8. ``RB_CSV_DELIMITER``: *(default: ;)*
10. ``RB_CSV_QUOTING_CHAR``: *(default: ")*
11. ``RB_CSV_DIALECT``: *(default: excel-tab)*
12. ``RB_XML_CDATA``: *(default: False)*
13. ``RB_XML_ROOT``: *(default: root)*


License MIT


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-ResponseBuilder-0.0.1.tar.gz (4.6 kB view hashes)

Uploaded Source

Built Distribution

Flask_ResponseBuilder-0.0.1-py3-none-any.whl (6.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page