Skip to main content

A simple Python client for the BloomSky API.

Project description

BloomSky API

.. image::

.. image::

.. image::

.. image::
:alt: Documentation Status

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:


* Python (2.7, 3.3, 3.4, 3.5)
* BloomSky API key (get it here:

Getting Started


.. code-block:: bash

pip install BloomSky-API

To install optional command-line interface (requires click):

.. code-block:: bash

pip install BloomSky-API[cli]


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:**

.. code-block:: python

import bloomsky_api
client = bloomsky_api.BloomSkyAPIClient()
data = client.get_data()

**Provided via argument:**

.. code-block:: python

import bloomsky_api
client = bloomsky_api.BloomSkyAPIClient(api_key='Your-real-API-key-goes-here')
data = client.get_data()

Command Line Interface

If you install the optional command-line interface, the `bloomsky-api` command will be available. Usage:

.. code-block:: none

Usage: bloomsky-api [OPTIONS]

Retrieve data from the BloomSky API and output it as JSON.

--api-key TEXT BloomSky API key (can be set via env var
--api-url TEXT Override BloomSky API endpoint URL.
--json-indent INTEGER Number of spaces to indent nested JSON levels.
-i, --intl-units Use SI units instead of the default US.
--raw Return raw response instead of remapped keys.
--help Show this message and exit.


The returned data contains all of the information from the API response but
with more Pythonic names and data types.


* 0.3.0 - 2017-01-07

* Include device_type in response

* 0.2.0 - 2016-08-22

* Add CLI

* 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.

Files for BloomSky-API, version 0.3.1
Filename, size File type Python version Upload date Hashes
Filename, size BloomSky_API-0.3.1-py2.py3-none-any.whl (8.5 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size BloomSky-API-0.3.1.tar.gz (31.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page