A python wrapper around the PubliBike API
Project description
=============================== ⚡️🚲 pypublibike - A python wrapper round the PubliBike API
pypublibike makes it easy to access the PubliBike API in your own Python projects.
Quick Start
$ pip install pypublibike
Examples
Getting a list of all PubliBike stations
from pypublibike import publibike, station
pb = publibike.PubliBike()
for station in pb.getStations():
station.refresh() # refresh to get newest data
print(station.numEbikes)
Finding the nearest PubliBike station
from pypublibike import publibike, location
pb = publibike.PubliBike()
ourLocation = location.Location(latitude=46.950043, longitude=7.443169)
nearestStation = pb.findNearestStationTo(ourLocation)
nearestStation.refresh()
print(nearestStation.name)
Getting Help
-
Open a issue on GitHub if you run into any problems
-
Contact me on
Twitter <https://twitter.com/eliabieri>
__
Todo
- API documentation
- Error handling
- Add unittests
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
pypublibike-1.1.0.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for pypublibike-1.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b75ed2cea48c7fa7f2665eb3b840494a222f2f39239f9ea9476340d9af871b7b |
|
MD5 | 5377ec21be34a6d1da6fbdcfdee7771e |
|
BLAKE2b-256 | df96d63f873792456d2a5f44e33acfdd3ce87cca9e0b2e9412d922661c156f90 |