Skip to main content

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

Metadata

Release files for radar-python 0.0.4

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

Source distribution (sdist)

Source distribution for radar-python 0.0.4
File Size Uploaded Provenance Actions
radar-python-0.0.4.tar.gz 12.7 kB Without provenance Details for radar-python-0.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for radar-python 0.0.4
File Interpreter ABI Platform Actions
radar_python-0.0.4-py3-none-any.whl Python 3 none any Details for radar_python-0.0.4-py3-none-any.whl

Total release size: 30.4 kB

Release files / radar-python-0.0.4.tar.gz

Download URL radar-python-0.0.4.tar.gz
Size 12.7 kB
Tags Source
SHA-256 checksum
How to use checksums
895463ab882dd535771fc267ec919aeca462a8406d9fb7c2d8fbd3f08e27937a
BLAKE2b-256 checksum
How to use checksums
d13d1093c30501b1e6a22d50012c0a2ed708fdddeea9cbe047bf22daae18f0f9
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / radar_python-0.0.4-py3-none-any.whl

Download URL radar_python-0.0.4-py3-none-any.whl
Size 17.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
acb2f57d7fa7b1dc55f1e714432e84f5e3e57577b578375f2e01a20e477e0fe1
BLAKE2b-256 checksum
How to use checksums
86f591eb0f797c2d66bf00f0b344bfcd160a1c61057ce3ae0720ac7d4875730c
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for radar-python 0.0.4

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