8000 GitHub - henu/bigjson at 1.0.2
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

henu/bigjson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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']

Testing

pytest .

About

Python library that reads JSON files of any size.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages

0