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
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a5a300143f152e78e45666b49eb888af36a33c0e7127dad18ca8a84d35f64f2 |
|
MD5 | 8e28b04204f212c2877e8004b438e6fe |
|
BLAKE2b-256 | 8c1c05a50b4f520bd6a11efbc146f32fa685d1a9569123502cb37362514cc208 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5095e760d6366ba7932cee6abbf04861a7196e9b143dabe771585bbfe4d5a9e4 |
|
MD5 | f2e8307ee0fc62d81c547441db7b8513 |
|
BLAKE2b-256 | f5aa4dd65ab4dbe4073f7c80c63a5704a8fa3040485e09bfb2e5ade83f8bc1f1 |