Skip to main content

a simple Python SDK for the Solcast API

Project description

Solcast API Python SDK

Python SDK to access the Solcast API

Docs Tests Publish 📦 to PyPI



pip install solcast

or from source:

git clone
cd solcast-api-python-sdk
pip install .

The vanilla version doesn't have any dependency. For full functionality, for example for getting the data into DataFrames, and for development, use the [all] tag:

pip install .[all] for the dev libs

Basic Usage

from solcast import live

df = live.radiation_and_weather(
    output_parameters=['air_temp', 'dni', 'ghi']

Don't forget to set your account Api Key with: export SOLCAST_API_KEY={your commercial api_key}


Tests are run against the Solcast API, you will need a key to run them. They are executed on unmetered locations and as such won't consume your credits.

pytest tests

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

solcast-1.1.0.tar.gz (1.4 MB view hashes)

Uploaded source

Built Distribution

solcast-1.1.0-py3-none-any.whl (9.2 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page