Skip to content

Instantly share code, notes, and snippets.

@h3xagn
Created May 14, 2022 13:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save h3xagn/942c98c50f8718dd3fed81c02f66ce64 to your computer and use it in GitHub Desktop.
Save h3xagn/942c98c50f8718dd3fed81c02f66ce64 to your computer and use it in GitHub Desktop.
Build ETL from device to cloud: https://h3xagn.com
# OLD: reading JSON file
import_file = BytesIO(import_file_bytes)
# NEW: reading compressed JSON file
from io import StringIO
import gzip
import_file = StringIO(gzip.decompress(import_file_bytes).decode("utf-8"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment