Skip to main content

The WattMaven SolarNetwork tools.

Project description

wattmaven-solarnetwork-tools

codecov

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

Coverage

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

wattmaven_solarnetwork_tools-0.4.0.tar.gz (60.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wattmaven_solarnetwork_tools-0.4.0-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file wattmaven_solarnetwork_tools-0.4.0.tar.gz.

File metadata

File hashes

Hashes for wattmaven_solarnetwork_tools-0.4.0.tar.gz
Algorithm Hash digest
SHA256 b5d49c0566cfec31cb15db38240459cf4b43d5bb4c8409c138d9229998b92af1
MD5 57c3889d5806394bb5bb942e66101344
BLAKE2b-256 b17668383010e821f888a9aa4a9ff91bf5cd6cb1b56087d57714c2344fc8678c

See more details on using hashes here.

File details

Details for the file wattmaven_solarnetwork_tools-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for wattmaven_solarnetwork_tools-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 34ee0f3b45380a84fd3015744fb331b9350afba574f78961960c4651b27486fd
MD5 07d888fa97805fb12b89a95545d0cb7d
BLAKE2b-256 61b4a8c115182ee897f75b49c14f9361a9a283b071e5518ca2a783393d1328d8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page