Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

BloomSky API

https://img.shields.io/travis/tylerdave/bloomsky-api.svg https://img.shields.io/pypi/v/bloomsky-api.svg https://coveralls.io/repos/github/tylerdave/bloomsky-api/badge.svg?branch=master 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: http://weatherlution.com/bloomsky-api/

Prerequisites

Getting Started

Installation

pip install BloomSky-API

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

pip install BloomSky-API[cli]

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()

Command Line Interface

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

Usage: bloomsky-api [OPTIONS]

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

Options:
  --api-key TEXT         BloomSky API key (can be set via env var
                         BLOOMSKY_API_KEY).
  --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.

Data

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

History

  • 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!

Metadata

Release files for BloomSky-API 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for BloomSky-API 0.3.1
File Size Uploaded Provenance Actions
BloomSky-API-0.3.1.tar.gz 31.5 kB Without provenance Details for BloomSky-API-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for BloomSky-API 0.3.1
File Interpreter ABI Platform Actions
BloomSky_API-0.3.1-py2.py3-none-any.whl Python 2, Python 3 none any Details for BloomSky_API-0.3.1-py2.py3-none-any.whl

Total release size: 40.0 kB

Release files / BloomSky-API-0.3.1.tar.gz

Download URL BloomSky-API-0.3.1.tar.gz
Size 31.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b4c9f8a9925abe0dc3e19da63ed7c2c069eb71723b33089ba302c230f32b2330
BLAKE2b-256 checksum
How to use checksums
2f7028f184d017e20180646b6382b888690a4669fba0377dcc4598bd766fec31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / BloomSky_API-0.3.1-py2.py3-none-any.whl

Download URL BloomSky_API-0.3.1-py2.py3-none-any.whl
Size 8.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
79972615c798c9dee92deb2a25a4940708c0fc8716e093661d06d5f600b521fc
BLAKE2b-256 checksum
How to use checksums
f501c9f47fcf6c2618e1af1344f3939164fff408124afc08bc5ca8a5ecfaa35d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for BloomSky-API 0.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page