bottle-json-pretty
A plugin for the Bottle Web Framework that returns pretty formatted JSON.
The plugin extends the default JSON formatter's behavior by adding the indent keyword argument to each call.
This is supported by at least the standard library json, ujson, and simplejson (1, 2, 3).
Indent level and formatting during production can be controlled via the initializer.
from bottle import Bottle
from bottle_json_pretty import JSONPrettyPlugin
app = Bottle(autojson=False)
app.install(JSONPrettyPlugin(indent=2, pretty_production=True))
@app.get('/')
def bottle_test():
return {
'status': 'ok',
'code': 200,
'messages': [],
'result': {
'test': {
'working': True
}
}
}
app.run()
Metadata
Release files for bottle-json-pretty 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bottle_json_pretty-0.1.2.tar.gz | 3.1 kB | Without provenance | Details for bottle_json_pretty-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bottle_json_pretty-0.1.2-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for bottle_json_pretty-0.1.2-py2.py3-none-any.whl |
Total release size: 6.5 kB
Release files / bottle_json_pretty-0.1.2.tar.gz
| Download URL | bottle_json_pretty-0.1.2.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5e14c8c3166fb3fb54e3b0ddd32230c5ee845d3412f020f2b3bd70925b180c9a
|
|
BLAKE2b-256 checksum How to use checksums |
d6aed623a94227f124a1ef9db3507e7314e9383a68756879c743c1039a4a1877
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.9
|
Release files / bottle_json_pretty-0.1.2-py2.py3-none-any.whl
| Download URL | bottle_json_pretty-0.1.2-py2.py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
04d11cb58717d5aa69c8b64f4943a3c8ee60f19b4dbed81af4b630dd61b2bab3
|
|
BLAKE2b-256 checksum How to use checksums |
8d49b1507975dda98019b4650e2a206574c73a76486995674446d22b6b2aa227
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.9
|
Security for bottle-json-pretty 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.