title: 'Python SDK' description: 'Connect to Spice using the Python SDK' pagination_prev: null pagination_next: null tags:
:::note[Parameterized Queries] Native parameterized query support in spicepy is coming soon. For parameterized queries, use ADBC directly. See Parameterized Queries and ADBC for more information. :::
By default, the Python SDK will connect to a locally running Spice Runtime:
To connect to Spice Cloud, specify the required Flight and HTTP URLs to connect to Spice Cloud:
By specifying a custom Flight and HTTP URL, the Python SDK can connect to a remote Spice Runtime - for example, a centralised Spice Runtime instance.
Example code:
The SDK supports refreshing an accelerated dataset with the Client.refresh_dataset() method. Refresh a dataset by calling this method on an instance of an SDK client: