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
AuroraClient 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 AuroraClient
tenant_id = "my_tenant_id"
api_key = "my_api_key"
api_secret = "my_api_secret"
aurora_project_id = "my_aurora_project_id"
client = AuroraClient(tenant_id, api_key, api_secret)
response = client.get_project(aurora_project_id)
print("response:", response.text)
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 Distribution
Built Distribution
File details
Details for the file AuroraSolarClient-1.0.0.tar.gz
.
File metadata
- Download URL: AuroraSolarClient-1.0.0.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6523f5cfb58d64f38bf509d70e41f161c0d98f23e0c810d50ddb0122c44219b |
|
MD5 | 53da5217e341f6252fde7b77fc290b24 |
|
BLAKE2b-256 | dedbb3969471391d2e21cc34c1bad49a7535a7986a270a1f546d3e343a2df976 |
File details
Details for the file AuroraSolarClient-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: AuroraSolarClient-1.0.0-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddff16335f0a7ff6d8709bfed8f7406f28340b53068b500e1f2b8aa4d3a9f78d |
|
MD5 | 3bc88c828b21793d4f87fdef787d1065 |
|
BLAKE2b-256 | 363170c2c2e1fd7dd852eb08e81b36a017e0844975a23ad0e8416f1e1dd35eeb |