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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| solar_api-1.1.0.tar.gz | 8.3 kB | Without provenance | Details for solar_api-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| solar_api-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for solar_api-1.1.0-py3-none-any.whl |
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
|
Security for solar-api 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.