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/)
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
Pre-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
File details
Details for the file BloomSky-API-0.0.1.tar.gz
.
File metadata
- Download URL: BloomSky-API-0.0.1.tar.gz
- Upload date:
- Size: 28.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e222bb31340a9651408673603929230342adb15ac1c451aea02e9f3fc413fc1a |
|
MD5 | 33ea92d323b9b2ccba990e7340363f76 |
|
BLAKE2b-256 | a6f5790cfc5689a7c8323f78ae6b9dcff88b5cb9f5dfb5a2473c299543cb96ad |