Flask with UltraJSON.
Project description
flask-ujson
pip install flask-ujson
Flask with UltraJSON.
https://github.com/ultrajson/ultrajson
from flask import Flask
from flask_ujson import UJSON
ultra_json = UJSON()
def create_app():
app = Flask(__name__)
ultra_json.init_app(app)
@app.route("/")
def index():
"""
Outputs a JSON response using the UltraJSON library.
https://github.com/ultrajson/ultrajson
"""
return {"hello": "world"}
return app
if __name__ == "__main__":
app = create_app()
app.run(debug=True)
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_ujson-1.0.3.tar.gz
(11.8 kB
view hashes)
Built Distribution
Close
Hashes for flask_ujson-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 348de4bf1713052c1c8a3803f56b60871d01cf3ad879e51011cb1d35b89d3d5e |
|
MD5 | 735b91eec94331ee6c6cdf1961836db6 |
|
BLAKE2b-256 | ca1f048065e3dedb935624efa728f73a6c271ef944e1247773384ba5faf5d771 |