Streaming
>>> from spicepy import Client
>>> import os
>>> client = Client(os.environ["API_KEY"])
>>> rdr = client.query("SELECT * FROM eth.recent_blocks")
<pyarrow._flight.FlightStreamReader object at 0x1059c9980>from spicepy import Client
client = Client(os.environ["API_KEY"])
query = """
SELECT s_suppkey, s_name
FROM tpch.supplier
"""
reader = client.query(query)
suppliers = reader.read_pandas()Last updated
Was this helpful?