Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

A Python library for interacting with the Noonlight API

Project description

noonlight-py

Asynchronous Noonlight API client for Python (based on the API documented here)

Usage

>>> import noonlight

# Initialize the client with your token from completing an OAuth2 flow 
#    with Noonlight (and optionally your aiohttp session and timeout)

>>> client = noonlight.NoonlightClient(token = "my_api_token_from_noonlight")

# Create an alarm object using the body parameters documented here:
#   https://docs.noonlight.com/reference#create-alarm

>>> alarm = await client.create_alarm(body = {'location.coordinates': {'lat':38.897957, 'lng':‎-77.036560, 'accuracy': 5} } )

# Check alarm status

>>> print(alarm.status)

# Cancel alarm

>>> cancelled = await alarm.cancel()

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 noonlight, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size noonlight-0.1.1-py3-none-any.whl (5.6 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size noonlight-0.1.1.tar.gz (4.5 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page