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.name)
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
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.0.0.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for pypublibike-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74cecca0b7234eafd3cb923a814264129873b815b06a26a971fb6ed897888c31 |
|
MD5 | ba9e41cc6414733af6113d38f8233f87 |
|
BLAKE2b-256 | 0e352b8b50cdaab6041191e8895eca031cbaa610113c5d91fe5d0fe1e921cfac |