Skip to main content

Wrappers around the Solar API

Project description

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-'

Project details


Download files

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

Source Distribution

solar_api-1.1.0.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

solar_api-1.1.0-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file solar_api-1.1.0.tar.gz.

File metadata

  • Download URL: solar_api-1.1.0.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.10.0 Darwin/23.0.0

File hashes

Hashes for solar_api-1.1.0.tar.gz
Algorithm Hash digest
SHA256 4a5a300143f152e78e45666b49eb888af36a33c0e7127dad18ca8a84d35f64f2
MD5 8e28b04204f212c2877e8004b438e6fe
BLAKE2b-256 8c1c05a50b4f520bd6a11efbc146f32fa685d1a9569123502cb37362514cc208

See more details on using hashes here.

File details

Details for the file solar_api-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: solar_api-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.0 CPython/3.10.0 Darwin/23.0.0

File hashes

Hashes for solar_api-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5095e760d6366ba7932cee6abbf04861a7196e9b143dabe771585bbfe4d5a9e4
MD5 f2e8307ee0fc62d81c547441db7b8513
BLAKE2b-256 f5aa4dd65ab4dbe4073f7c80c63a5704a8fa3040485e09bfb2e5ade83f8bc1f1

See more details on using hashes here.

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