Skip to main content

Python bindings for the Radar API

Project description

radar-python

Python library for the Radar API

The Radar Python library provides convenient access to Radar's APIs from your python applications or command line.

CircleCI

Installation

You don't need this source code unless you want to modify the package. If you just want to use the package, just run:

pip install radar-python

Requirements

Python 3.4+

Usage

The radar client needs to be initialized with your project’s secret key which is available in your Radar Dashboard.

import os
from radar import RadarClient

# initialize client
radar = RadarClient(os.environ["RADAR_SECRET_KEY"])

# get a geofence by id
geofence = radar.geofences.get(id='123')

# list geofences
radar.geofences.list()

Full Endpoint List:

Users:

radar.users.list
radar.users.get(id='1')
radar.users.delete(id='1')

Geofences

radar.geofences.list()
radar.geofences.get(id=’123’)
radar.geofences.get(tag=’store’, externalId=’123’)
radar.geofences.list_users(id='123')
radar.geofences.create({ 'type': 'circle', ... })
radar.geofences.delete(id='123')
radar.geofences.delete(tag=’store’, externalId=’123’)

Events

radar.events.list()
radar.events.get(id='123')
radar.events.delete(id='123')
radar.events.verify(id='123', 'accept')

Context

radar.context.get(coordinates=(40.7041895, -73.9867797))

Geocoding

radar.geocode.forward(query=’20 jay st brooklyn’)
radar.geocode.reverse(coordinates=(40.7041895, -73.9867797))
radar.geocode.ip(ip=’107.77.199.117’)

Search

radar.search.users(near=[lat,long])
radar.search.geofences(near=[lat,long])
radar.search.places(near=[lat,long])
radar.search.autocomplete(query=’20 jay st’, near=[lat, long])

Routing

radar.route.distance(origin=[lat,lng], destination=[lat,lng], modes=’car’, units=’metric’)

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

radar-python-0.0.4.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

radar_python-0.0.4-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file radar-python-0.0.4.tar.gz.

File metadata

  • Download URL: radar-python-0.0.4.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for radar-python-0.0.4.tar.gz
Algorithm Hash digest
SHA256 895463ab882dd535771fc267ec919aeca462a8406d9fb7c2d8fbd3f08e27937a
MD5 e86f606c2087559fd59d1f107498435a
BLAKE2b-256 d13d1093c30501b1e6a22d50012c0a2ed708fdddeea9cbe047bf22daae18f0f9

See more details on using hashes here.

File details

Details for the file radar_python-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: radar_python-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 17.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.6

File hashes

Hashes for radar_python-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 acb2f57d7fa7b1dc55f1e714432e84f5e3e57577b578375f2e01a20e477e0fe1
MD5 73a96fe466742f4507a22649f48e5144
BLAKE2b-256 86f591eb0f797c2d66bf00f0b344bfcd160a1c61057ce3ae0720ac7d4875730c

See more details on using hashes here.

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