Created
May 14, 2022 13:54
-
-
Save h3xagn/942c98c50f8718dd3fed81c02f66ce64 to your computer and use it in GitHub Desktop.
Build ETL from device to cloud: https://h3xagn.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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