- Pulling data into a notebook — return any dataset directly as a
pandas.DataFrame. - Pushing your own data — upload a
DataFrameor CSV with one method call. - Automating data pipelines — create repositories, initialize columns, and check process status programmatically.
- Discovery — search datasets across your repositories or the entire public catalog.
The SDK is open source and published on PyPI as
alphacast. Source code, issues, and releases live at github.com/Alphacastio/alphacast-python-sdk.Installation
Install the package from PyPI:requests, pandas, and python-dotenv. These are installed automatically.
Initialize the client
Import theAlphacast class and instantiate it with your API key. You can find your key in your account settings under Account Settings → API Key.
| Attribute | Class | Description |
|---|---|---|
alphacast.repository | Repository | Create, list, and delete repositories. |
alphacast.datasets | Datasets | List, create, upload, download, and delete datasets. |
alphacast.search | Search | Full-text search for datasets across the catalog. |
alphacast.series(id) | Series | Read metadata and data for a single series. |
What’s in this section
Quickstart
End-to-end example: install, create a repository, upload a CSV, and download it as a DataFrame.
Authentication
Where to find your API key and how the SDK uses it.
Repositories
repository.read_all, read_by_id, read_by_name, create, delete.Datasets
Find datasets by name or ID and inspect their metadata, columns, and date stats.
Uploading data
Create a dataset, initialize its columns, and upload from a DataFrame or CSV.
Downloading data
Pull data as JSON, CSV, XLSX, or directly into a
pandas.DataFrame.Series
Read metadata and data for individual series by ID.
Search
Search datasets across your repositories and Alphacast’s public catalog.
Beyond the SDK
The SDK does not currently cover every endpoint exposed by the REST API (data providers, MCP, account management). For workflows that fall outside the SDK’s surface, fall back to the REST API reference and call the API withrequests directly using your same API key.