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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for osc_client-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d38c9452c3f538ceb317d76103a067c218dfb079d2f6281659aec9e99d2e51df |
|
MD5 | 960afb77d6140b9d2c8e9dd9b7633bf4 |
|
BLAKE2b-256 | 1c545cf22d69364def7c9dcdd0de85e9a0d780ffa4729efc9718b34223f15fc5 |