A simple Python client for the BloomSky API.
Project description
A simple Python client for the BloomSky API.
Note: Neither this package nor its maintainer are affiliated with BloomSky.
For more information about the BloomSky device and its API, see: http://weatherlution.com/bloomsky-api/
Prerequisites
Python (2.7, 3.3, 3.4, 3.5)
BloomSky API key (get it here: https://dashboard.bloomsky.com/)
Getting Started
Installation
pip install BloomSky-API
Usage
You can either store the API key in an environment variable named BLOOMSKY_API_KEY or provide it as an argument when creating the client.
Stored in environment variable:
import bloomsky_api
client = bloomsky_api.BloomSkyAPIClient()
data = client.get_data()
Provided via argument:
import bloomsky_api
client = bloomsky_api.BloomSkyAPIClient(api_key='Your-real-API-key-goes-here')
data = client.get_data()
Data
The returned data contains all of the information from the API response but with more Pythonic names and data types.
History
0.1.0 - 2016-08-21 * Convert timestamp to ISO timestamp accounting for offset
0.0.1 - 2016-08-20 * Initial release!
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
Built Distribution
File details
Details for the file BloomSky-API-0.1.0.tar.gz
.
File metadata
- Download URL: BloomSky-API-0.1.0.tar.gz
- Upload date:
- Size: 29.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a03a4597e8f05df32d58dfeedcfe31d770ba136f44cc7095e20143ecff8a0ac0 |
|
MD5 | c3a7a220ae15236413a136c8648526d6 |
|
BLAKE2b-256 | 080ee5adf638d37ca0230996def67769b387a45cd97063264b5424921651cff8 |
File details
Details for the file BloomSky_API-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: BloomSky_API-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93ac15fbc40d6da7f3b65d8e99a3fb8c5b1c8f61e057931507607abaccd37ce2 |
|
MD5 | a47f2976e61e601e3d75d3065ed3405d |
|
BLAKE2b-256 | fe3947741836ccee55677fca160918156cb4d3363e5c3d487233e5be49ce5f7b |