Skip to main content

OpenBikes API library

Project description

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

<br/>

<div align="center">
<a href="https://travis-ci.org/OpenBikes/obpy">
<img alt="Build Status" src="https://travis-ci.org/OpenBikes/obpy.svg?branch=master">
</a>
<a href="https://coveralls.io/github/OpenBikes/obpy?branch=master">
<img alt="Coverage Status" src="https://coveralls.io/repos/github/OpenBikes/obpy/badge.svg?branch=master">
</a>
<a href="https://opensource.org/licenses/MIT">
<img src="http://img.shields.io/:license-mit-ff69b4.svg?style=flat-square" alt="mit"/>
</a>
</div>


# `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 details)

Uploaded Source

File details

Details for the file obpy-1.0.0.tar.gz.

File metadata

  • Download URL: obpy-1.0.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for obpy-1.0.0.tar.gz
Algorithm Hash digest
SHA256 df8bfa2f6bc8f07fbbf88a7a0c3daa69a843d6177f42cda2c3fe33016d0d3c79
MD5 49218d42e3e7b90ee820c4e50bda56e7
BLAKE2b-256 a8aa4b6ee961e7e4bd772edb383efb8a9a983ea9eb05cc4166919dcac75db24c

See more details on using hashes here.

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