Skip to main content

A Python wrapper for the Safecast API.

Project description

A pure Python wrapper around the Safecast API.

Usage

import SafecastPy
safecast = SafecastPy.SafecastPy(
  api_key='YOUR_API_KEY')
# Get some measurements.
print(safecast.get_measurements())
# Add a new measurement.
safecast.add_measurement(json={
    'latitude': 49.418683,
    'longitude': 2.823469,
    'value': random.uniform(1, 10),
    'unit': SafecastPy.UNIT_CPM
})

See the GitHub repository for more documentation.

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

SafecastPy-0.1.0.tar.gz (3.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page