Skip to main content

Overview

This library contains useful wrappers around the Solar API

Usage

Instantiate the API wrapper using the following code:

from solar_api.api import SolarApi

# Do not include trailing backslash in TONIC_URL
api = SolarApi(SOLAR_URL, API_KEY)

Once instantiated, the following endpoints are available for consumption. Note that available endpoints and response types are limited. Available fields may be severely limited compared to the current Tonic API.

Build and package

Update the version in pyproject.toml. Ensure you are in the python_sdk/ folder in the repo root for the following instructions.

Update build and twine

python -m pip install --upgrade build
python -m pip install --upgrade twine

Clean out dist folder

rm dist/ -rf

Now build

python -m build

And ship

python -m twine upload .\dist\*

The username is token and the pw is your token including the 'pypi-'

Metadata

Release files for solar-api 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for solar-api 1.1.0
File Size Uploaded
solar_api-1.1.0.tar.gz 8.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for solar-api 1.1.0
File Interpreter ABI Platform
solar_api-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 19.9 kB

Release files / solar_api-1.1.0.tar.gz

Download URL solar_api-1.1.0.tar.gz
Size 8.3 kB
Tags Source
SHA-256 checksum
How to use checksums
4a5a300143f152e78e45666b49eb888af36a33c0e7127dad18ca8a84d35f64f2
BLAKE2b-256 checksum
How to use checksums
8c1c05a50b4f520bd6a11efbc146f32fa685d1a9569123502cb37362514cc208
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.0 CPython/3.10.0 Darwin/23.0.0

Release files / solar_api-1.1.0-py3-none-any.whl

Download URL solar_api-1.1.0-py3-none-any.whl
Size 11.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5095e760d6366ba7932cee6abbf04861a7196e9b143dabe771585bbfe4d5a9e4
BLAKE2b-256 checksum
How to use checksums
f5aa4dd65ab4dbe4073f7c80c63a5704a8fa3040485e09bfb2e5ade83f8bc1f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.0 CPython/3.10.0 Darwin/23.0.0

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page