pypublibike 3.0.1
pip install pypublibike
Latest version
Released:
A python wrapper around the PubliBike API
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License
- Author: Elia Bieri
- Requires: Python >=3.7
Classifiers
- Development Status
- Intended Audience
- License
- Programming Language
- Topic
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 load data of station
ebike = station.ebikes[0] # access the bikes/ebikes of the station
ebike.batteryLevel # access information about a bike
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
Todo
- API documentation
- Error handling
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License
- Author: Elia Bieri
- Requires: Python >=3.7
Classifiers
- Development Status
- Intended Audience
- License
- Programming Language
- Topic
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
Built Distribution
File details
Details for the file pypublibike-3.0.1.tar.gz
.
File metadata
- Download URL: pypublibike-3.0.1.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 310dbc72dbebe6c28fc9b9d40d6fdc52e8f7e9feca466b89c1898139593ec296 |
|
MD5 | ec1b12ba75239367dfc93c9e71c47429 |
|
BLAKE2b-256 | 309e7c39b9aa684db6134521e213d3e8b059faa5f94893c4cc58728bd83e5e1e |
File details
Details for the file pypublibike-3.0.1-py3-none-any.whl
.
File metadata
- Download URL: pypublibike-3.0.1-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8daf367508359bbca073369d770ac18bf8bf490e32826e897bf4665d625c3a3 |
|
MD5 | fecb8e293592d1cabc04dfb35abfe01a |
|
BLAKE2b-256 | 0128f98802afc2b80545d93443238d5350c7d2489957371534523f00ca51ec0e |