jsonext
jsonext makes it easy to serialize objects outside of the standard Python primitives to JSON:
>>> import jsonext >>> from datetime import datetime >>> jsonext.dumps(datetime.now()) '"2014-03-22T22:17:18.304528+00:00"' >>> jsonext.dumps(i**2 for i in range(10)) '[0, 1, 4, 9, 16, 25, 36, 49, 64, 81]'
It uses mixins to the standard encoder to achieve this and is easily reuse- and extensible. Check out the documentation for details.
Metadata
Release files for jsonext 0.4.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 |
|---|---|---|---|---|
| jsonext-0.4.2.tar.gz | 9.6 kB | Without provenance | Details for jsonext-0.4.2.tar.gz |
Release files / jsonext-0.4.2.tar.gz
| Download URL | jsonext-0.4.2.tar.gz |
|---|---|
| Size | 9.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e7634e0b8d1a668bd2c92db5498f6162573feb72ac050c4415384e773b1ea091
|
|
BLAKE2b-256 checksum How to use checksums |
61820f25c43a8a870c2de367c4769809be26c7da38d0e2681b83788d7e295058
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for jsonext 0.4.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.