Skip to main content

A Python client for OpenStreetCam.org (OSC) API utilization.

Project description

OSC Client

An OpenStreetCam.org client in Python for ease in requesting publicly available resources from the platform.

Originally created as part of the following volunteer AI challenge: Omdena + iRAP: Preventing Road Crashes and Saving Lives (https://omdena.com/projects/ai-road-safety/).

Installation

pip install git+https://github.com/d33bs/osc_client@main#egg=osc_client

Usage

Simple Request Example

from osc_client import OSC
osc = OSC()
photos_list = osc.get_photos_from_point(lat=34.94083565649461, lng=-82.8662492514243)
photos_list[0]

Testing

Various tests may be found under the ./tests directory within this repo. See below for a straightforward example on running those tests.

pip install pytest
pytest tests

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

osc_client-0.0.1.tar.gz (6.6 kB view hashes)

Uploaded Source

Built Distribution

osc_client-0.0.1-py3-none-any.whl (6.9 kB view hashes)

Uploaded Python 3

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