Skip to main content

A python client for Aurora Solar

Project description

Python Aurora Solar Client

This is a generic client that can be used to integrate with the Aurora Solar API.

Requirements

  • Python (with pip)
  • requests

Getting Started

It is recommended that you create a virtual environment and then simply install the requests library.

Creating a virtual environment

MacOS/Linux
python3 -m venv pyenv
source pyenv/bin/activate
Windows
py -m venv pyenv
.\pyenv\Scripts\activate

Install Requests

pip install requests

Usage

AuroraSolarClient must be initialized with a tenant_id, api_key, and api_secret. Once intialized, you can use any of the provided functions to return a requests response object.

Example

from .client import AuroraSolarClient

tenant_id = "my_tenant_id"
api_key = "my_api_key"
api_secret = "my_api_secret"
aurora_project_id = "my_aurora_project_id"

client = AuroraSolarClient(tenant_id, api_key, api_secret)
response = client.get_project(aurora_project_id)
print("response:", response.text)

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

AuroraSolarClient-1.0.1.tar.gz (1.6 kB view details)

Uploaded Source

Built Distribution

AuroraSolarClient-1.0.1-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file AuroraSolarClient-1.0.1.tar.gz.

File metadata

  • Download URL: AuroraSolarClient-1.0.1.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.9

File hashes

Hashes for AuroraSolarClient-1.0.1.tar.gz
Algorithm Hash digest
SHA256 f9f3ee91627703350d9fe7289dee94586d799818855e15b9bfb794bf18b00efe
MD5 3bfe9bb6fc955b512d4c079c166df0a2
BLAKE2b-256 4f71afa53e5afdf5f294962470870a08b96a7de6d80db325f0a3eefa87c4936a

See more details on using hashes here.

File details

Details for the file AuroraSolarClient-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: AuroraSolarClient-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.9

File hashes

Hashes for AuroraSolarClient-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 09e4cc9885072fc84f12915d637d7d94d65f9dd4d82bb8c0464162075639d689
MD5 b4602e3e778c70ac587256212338046d
BLAKE2b-256 fbf1f6261b2ba23cfd37199d867044f32378eea5055db46cd52d524ae56a63df

See more details on using hashes here.

Supported by

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