Unofficial api for the Arizona Salt River Project (SRP) API
Reason this release was yanked:
Deprecated
Project description
Salt River Project Client
This module provides a Python client for interacting with the Salt River Project (SRP) energy API. It allows users to retrieve energy usage data, billing information, and other related data from SRP.
Usage
Here is an example of how to use the Salt River Project Client:
from saltriverprojectenergyapi import SaltRiverProjectClient
# Initialize the client with your Billing Account and login info
client = SaltRiverProjectClient(
billingAccount="Billing Account Number",
username="SRP email_address or login name",
password="SRP password"
)
# Authenticate and Authorize the client.
# This is a boolean return value, so you can verify if the authentication
# and authorisation were successful or not.
isAuthorised = client.authoriseLogin()
# Retrieve energy usage data
# The dates are passed in as string values with the format dd-mm-yyyy
myHourlyUsageData = client.getHourlyUsage(startDate='01-01-2025', endDate='01-05-2025')
# myHourlyUsageData is a List[HourlyUsage] * See objects/hourly_usage.py
# Weather data does not take any parameters, and just returns a full weather dataset.
myWeatherData = client.getDailyWeather()
# myWeatherData is a List[WeatherData] * See objects/weather_data.py
# Retrieve outage data for your billing account.
# The Outage Data endpoint does not take any parameters, and returns a SelfOutageData object.
myOutageData = client.getUserOutage()
if(myOutageData.isInOutageArea):
print("User is in an outage area.)
Currently supported methods
Currently, this client api supports the following methods.
- getHourlyUsage
- getDailyWeather
- getUserOutage
Features
- Retrieve energy usage data for a specified date range
- Retrieve weather data associated with your account
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
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 saltriverprojectenergyapi-1.0.4-py3-none-any.whl.
File metadata
- Download URL: saltriverprojectenergyapi-1.0.4-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efa4283caff5736f24703f0f65cb78af95561f6ba5605b532cbc6a093053ecf0
|
|
| MD5 |
77354a8456f45c0222b8adb8ca8fc85f
|
|
| BLAKE2b-256 |
0aea7ccfee8f023da2248a9cf937b6dd8d7ecde64094dad8b15d731a524d3240
|