Skip to main content

This is a python wrapper for the ecobici api

Project description

Ecobici python wrapper

Build Status PyPI version GitHub

Ecobici logo

Installation

pip install ecobici

Usage

# Import module
from ecobici import Ecobici

# Initialize client
client = Ecobici(your_client_id, your_client_secret)

# Get list of stations
list_of_stations = client.get_stations_list()

# Get status of stations
stations_status = client.get_stations_status()

# (Optional) Force refresh token
client.refresh_token()

Notes

There's no need to refresh the token when it expires. The client does it automatically.

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

ecobici-0.0.2.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

ecobici-0.0.2-py3-none-any.whl (3.2 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