Skip to main content

OpenBikes API library

Project description

<div align="center">
<img src="misc/obpy.png" alt="obpy_logo"/>


<div align="center">
<a href="">
<img alt="Build Status" src="">
<a href="">
<img alt="Coverage Status" src="">
<a href="">
<img src="" alt="mit"/>

# `obpy`
:snake: Python SDK for OpenBikes API

## Available functions

| **Function** | **API Endpoint** | **Description** |
| `get_latest_geojson` | `GET /geojson/<string:city_slug>` | Return the latest geojson file of a city. |
| `get_countries` | `GET /countries` | Return the list of countries. |
| `get_metrics` | `GET /metrics` | Returns latest metrics. |
| `get_cities` | `GET /cities` | Return the list of cities. |
| `get_stations` | `GET /stations` | Return the list of stations. |
| `get_providers` | `GET /providers` | Return the list of providers |
| `get_updates` | `GET /updates` | Return the list of latest updates for each city. |
| `get_forecast` | `POST /forecast` | Return a forecast for a station at a given time. |
| `get_filtered_stations` | `POST /filtered_stations` | Return filtered stations. |
| `get_closest_city` | `GET /closest_city/<float:latitude>/<float:longitude>` | Return the closest city for a given latitude and longitude. |
| `get_closest_station` | `GET /closest_station/<float:latitude>/<float:longitude>` | Return the closest station for a given latitude and longitude. |

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

obpy-1.0.0.tar.gz (3.8 kB view hashes)

Uploaded source

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