The WattMaven SolarNetwork tools.
Project description
wattmaven-solarnetwork-tools
The WattMaven Python package for SolarNetwork tools.
Note that this package is still under active development and the API is not yet stable. Breaking changes will be introduced in the minor version until the API is stable.
Installation
pip install wattmaven-solarnetwork-tools
Usage
See examples for usage examples.
from wattmaven_solarnetwork_tools.core.solarnetwork_client import (
SolarNetworkClient,
SolarNetworkCredentials,
)
# Create a client
with SolarNetworkClient(
host="data.solarnetwork.net",
credentials=SolarNetworkCredentials(
token="your_token",
secret="your_secret",
)
) as client:
# Make requests
response = client.request("GET", "/solarquery/api/v1/sec/nodes")
json = response.json()
print(json)
# ...
Testing
# This will run tests and generate a coverage report
make test
Creating a Release
This project uses Hatch for building and releasing.
# Bump the version
cz bump --major-version-zero
# Build the package
uv build
# Release the package
uv publish
# Push the changes
git push
git push -u origin v<new-version>
Acknowledgements
This project takes inspiration from the solarnetwork-api-core JavaScript package. This package is not a direct port.
License
This project is licensed under the MIT License. See the LICENSE file for details.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wattmaven_solarnetwork_tools-0.4.0.tar.gz.
File metadata
- Download URL: wattmaven_solarnetwork_tools-0.4.0.tar.gz
- Upload date:
- Size: 60.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5d49c0566cfec31cb15db38240459cf4b43d5bb4c8409c138d9229998b92af1
|
|
| MD5 |
57c3889d5806394bb5bb942e66101344
|
|
| BLAKE2b-256 |
b17668383010e821f888a9aa4a9ff91bf5cd6cb1b56087d57714c2344fc8678c
|
File details
Details for the file wattmaven_solarnetwork_tools-0.4.0-py3-none-any.whl.
File metadata
- Download URL: wattmaven_solarnetwork_tools-0.4.0-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34ee0f3b45380a84fd3015744fb331b9350afba574f78961960c4651b27486fd
|
|
| MD5 |
07d888fa97805fb12b89a95545d0cb7d
|
|
| BLAKE2b-256 |
61b4a8c115182ee897f75b49c14f9361a9a283b071e5518ca2a783393d1328d8
|