Skip to main content

⚠ NOTE: Starting at json-stream 2.2.0,to_standard_types is part of json-stream itself, so there is no longer a need for this packgage.

json-stream-to-standard-types

Utility function to convert json-stream objects to normal Python dicts/lists.

Parallel PR: https://github.com/daggaz/json-stream/pull/17

Installation

pip install json-stream-to-standard-types

Usage

To convert a json-stream dict-like or list-like object and all its descendants to a standard list and dict, simply apply the library's to_standard_types function:

import json_stream
from json_stream_to_standard_types import to_standard_types

# JSON: {"round": 1, "results": [1, 2, 3]}
data = json_stream.load(f)
results = data["results"]
print(results)  # prints <TransientStreamingJSONList: TRANSIENT, STREAMING>
converted = to_standard_types(results)
print(converted)  # prints [1, 2, 3]

License

Do whatever you want with it license or whatever it was called

Metadata

Release files for json-stream-to-standard-types 0.1.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 json-stream-to-standard-types 0.1.4
File Size Uploaded Provenance Actions
json_stream_to_standard_types-0.1.4.tar.gz 1.7 kB Without provenance Details for json_stream_to_standard_types-0.1.4.tar.gz

Release files / json_stream_to_standard_types-0.1.4.tar.gz

Download URL json_stream_to_standard_types-0.1.4.tar.gz
Size 1.7 kB
Tags Source
SHA-256 checksum
How to use checksums
36b50de33149f469d344d6852cb91a714d2d439433216200cee6ea00ffa7ee70
BLAKE2b-256 checksum
How to use checksums
6742aadf9f11d800a0b53a109ac74dffa135d39143140baec72c7cef98001896
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.16

Security for json-stream-to-standard-types 0.1.4

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.

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