Skip to main content

parsing a stream of json objects without loading the whole stream into memory

Project description

Parsing a stream of json objects without loading the whole stream into memory. Solution to https://stackoverflow.com/questions/6886283/how-i-can-i-lazily-read-multiple-json-values-from-a-file-stream-in-python

import sys
from json_stream_parser import load_iter
for obj in load_iter(sys.stdin):
    print(obj)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for json-stream-parser, version 0.1.dev0
Filename, size File type Python version Upload date Hashes
Filename, size json_stream_parser-0.1.dev0.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page