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 details)
Built Distribution
File details
Details for the file osc_client-0.0.1.tar.gz
.
File metadata
- Download URL: osc_client-0.0.1.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48c66581247b206bc794714e9853a7616d6f25925e06563018d6a2532244d872 |
|
MD5 | c6bc4bb647b848cdff58f532101c6cc7 |
|
BLAKE2b-256 | 7b364e1d0484f67a335eae3161cdda53cc02f5fa39919742a43c4b6073ba1b2f |
File details
Details for the file osc_client-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: osc_client-0.0.1-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d38c9452c3f538ceb317d76103a067c218dfb079d2f6281659aec9e99d2e51df |
|
MD5 | 960afb77d6140b9d2c8e9dd9b7633bf4 |
|
BLAKE2b-256 | 1c545cf22d69364def7c9dcdd0de85e9a0d780ffa4729efc9718b34223f15fc5 |