Flask with UltraJSON.
Project description
flask-ujson
Flask with 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 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.2.tar.gz
(13.3 kB
view hashes)
Built Distribution
Close
Hashes for flask_ujson-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 486b39e84a3f7954fa77b5e487be44038f3aa8bb115101e7007df31c2fed6df1 |
|
MD5 | e677de7a1afa32fe2a3642289bcd6371 |
|
BLAKE2b-256 | 480a54619352e9731c684e3e90a6daa2d1e4ed560dfb96fb4bc8b3545453e0ca |