Skip to content

jsonify and stream any Iterable or Mapping that falls through default encoder's numerous cracks.

Notifications You must be signed in to change notification settings

toregeschliman/flask_jsonstream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask_JSONStream

Provides a wrapper for Mappings and Iterables to convert to JSON and stream using flask

Sample usage

import flask
from flask_jsonstream import jsonify_stream

app = flask.Flask(__name__)
@app.route('/', methods=['GET'])
def big_list_route():
  return jsonify_stream({'numbers': range(1000000)})

Test & Install

After setting up a virtual environment (requires Python 3.4 or up), run pip install . to install the module and dependencies using wheel (required for testing) then python setup.py test to run two basic tests.

About

jsonify and stream any Iterable or Mapping that falls through default encoder's numerous cracks.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages