Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 390 Bytes

README.md

File metadata and controls

23 lines (16 loc) · 390 Bytes

bigjson

Python library that reads JSON files of any size.

The magic is in the Array and Object types. They load stuff from the file only when necessary.

Example

The file size in this example is 78 GB.

import bigjson

with open('wikidata-latest-all.json', 'rb') as f:
    j = bigjson.load(f)
    element = j[4]
    print element['type']
    print element['id']