Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import json
- from gzip import GzipFile
- from s3fs import S3FileSystem
- s3 = S3FileSystem()
- PATH = "s3://{filepath}"
- with s3.open(PATH, 'rb') as f_gz:
- with GzipFile(fileobj=f_gz) as f:
- data = json.loads(f.read())
- data["key1"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement