Streaming
>>> from spicepy import Client
>>> import os
>>> client = Client(api_key=os.environ["API_KEY"], flight_url="grpc+tls://flight.spiceai.io")
>>> rdr = client.query("SELECT * FROM taxi_trips")
<pyarrow._flight.FlightStreamReader object at 0x1059c9980>import os
from spicepy import Client
client = Client(api_key=os.environ["API_KEY"], flight_url="grpc+tls://flight.spiceai.io")
query = """
SELECT s_suppkey, s_name
FROM tpch.supplier
"""
reader = client.query(query)
suppliers = reader.read_pandas()Last updated
Was this helpful?