No project description provided
Project description
purple_air_api (PAA)
This is a python3 wrapper for the new PurpleAirAPI (PAA). Details of the API can be found using this link: https://api.purpleair.com/#api-welcome
To use the PurpleAirAPI (PAA) api keys are required. You can get API keys by sending an email to contact@purpleair.com
with a first and last name to assign them to.
Purpose
This package is designed to be used for making tools around the PurpleAir API.
For example, PAA data loggers - https://github.com/carlkid1499/purpleair_data_logger
Installation
You can install the PurpleAir API via pip.
python3 -m pip install purple_air_api
You can install PurpleAir API by cloning down this repo.
git clone https://github.com/carlkid1499/purple_air_api.git
cd purple_air_api
python3 setup.py install
Usage Example
First we need to import the PurpleAir API (PAA)
from purpleair_api.PurpleAirAPI
Next we need to make an instance of PAA.
my_paa = PurpleAirAPI(your_api_read_key, your_api_write_key)
Now you can use that PAA instance to do things like...
retval = my_paa.request_sensor_data(1234)
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
Hashes for purpleair_api-1.0.0a2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e570a3f8d5e0c76a4356a1e54ba5330c0bbac69ead202f099965e5bbb8389986 |
|
MD5 | 86977a232538f4cfb4789ab617ec3538 |
|
BLAKE2b-256 | 50c221d29fc4ff20e486c077fe0428f6bd5ddd8eb61947e4d942842a7aaa2f7c |