Announcing spicepy v2.0! 🎉
The v2.0 release adds full support for Spice OSS and now connects to localhost by default instead of the Spice Cloud service.
Follow the Spice OSS quickstart to install and run the spice runtime locally, and query data using the spicepy SDK:
from spicepy import Client
client = Client()
data = client.query(
'SELECT trip_distance, total_amount FROM taxi_trips ORDER BY trip_distance DESC LIMIT 10;',
timeout=5*60
)
pd = data.read_pandas()
Read the docs to learn more.
Breaking Changes
- Asset Prices is now deprecated and the Prices() method and types were removed. Asset prices data can continue to be fetched using HTTP clients directly from the Spice cloud service.
- The SDK now connects to localhost by default (API Key is now optional).
What's Changed
- Remove deprecated Asset Prices API support by @lukekim in #84
- Make api_key optional, for local spice runtime support by @ewgenius in #86
- Conditionally run Spice.AI cloud tests only in a single job by @ewgenius in #91
- Bump certifi from 2023.7.22 to 2024.2.2 by @dependabot in #76
- Bump version to v2.0.0 and update dependencies by @ewgenius in #90
New Contributors
- @ewgenius made their first contribution in #86
- @dependabot made their first contribution in #76
Full Changelog: v1.0.1...v2.0.0