Skip to main content

flask-minijson

Build Status Test Coverage Issue Count PyPI PyPI version PyPI PyPI License

An extension for Flask to allow clients to submit data using the minijson codec by providing a Content-Type header of application/minijson.

flask-json is required to be initialized before FlaskMiniJSON, in such a way:

from flask_minijson import FlaskMiniJSON

app = Flask(__name__)
FlaskJSON(app)
FlaskMiniJSON(app)

And you use it like this:

@app.route('/v1', methods=['POST'])
def endpoint():
    json = request.get_json()

if normal JSON is passed, it will be recognized. If minijson is sent by the client, it will be recognized as well.

Release files for flask-minijson 0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flask-minijson 0.4
File Size Uploaded
flask-minijson-0.4.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flask-minijson 0.4
File Interpreter ABI Platform
flask_minijson-0.4-py3-none-any.whl Python 3 none any Details

Total release size:7.2 kB

Release files / flask-minijson-0.4.tar.gz

Download URL flask-minijson-0.4.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
286688303924d7daaa16f8ee773366cb71209be8202a107e590348b59bf3d2bc
BLAKE2b-256 checksum
How to use checksums
a5508335e142c189d628ca043358eab24eabc822eb7eb05901b26d818fe7ade3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.8

Release files / flask_minijson-0.4-py3-none-any.whl

Download URL flask_minijson-0.4-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1aee2bec1e8e51e39369c4d58c35e676a9b0f9479639e9b3e2ec60f573c3c73a
BLAKE2b-256 checksum
How to use checksums
e8508aaf0a4f66f49390028a9ec76084e279846e03ba01f4e10ab06167163bbb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.8

Release history Release notifications | RSS feed

This release

0.4 This release

2 release files

0.3

2 release files

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page