We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
0 parents commit 26d5c75Copy full SHA for 26d5c75
snippet.py
@@ -0,0 +1,13 @@
1
+import pyarrow as pa
2
+from pyarrow import flight
3
+
4
+client = pa.flight.connect('grpc+tls://flight.spiceai.io')
5
6
+headers = [client.authenticate_basic_token('', 'API_KEY')]
7
+options = flight.FlightCallOptions(headers=headers)
8
9
+query = 'SELECT * FROM eth.blocks ORDER BY number DESC LIMIT 10;'
10
+flight_info = client.get_flight_info(flight.FlightDescriptor.for_command(query), options)
11
+reader = client.do_get(flight_info.endpoints[0].ticket, options)
12
13
+print(reader.read_pandas())
0 commit comments