Skip to main content

⚡️🚲 pypublibike - A python wrapper round the PubliBike API

Upload Python Package

PyPI version

DeepSource

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

Metadata

Release files for pypublibike 3.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pypublibike 3.0.1
File Size Uploaded Provenance Actions
pypublibike-3.0.1.tar.gz 5.6 kB Without provenance Details for pypublibike-3.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pypublibike 3.0.1
File Interpreter ABI Platform Actions
pypublibike-3.0.1-py3-none-any.whl Python 3 none any Details for pypublibike-3.0.1-py3-none-any.whl

Total release size: 11.5 kB

Release files / pypublibike-3.0.1.tar.gz

Download URL pypublibike-3.0.1.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
310dbc72dbebe6c28fc9b9d40d6fdc52e8f7e9feca466b89c1898139593ec296
BLAKE2b-256 checksum
How to use checksums
309e7c39b9aa684db6134521e213d3e8b059faa5f94893c4cc58728bd83e5e1e
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / pypublibike-3.0.1-py3-none-any.whl

Download URL pypublibike-3.0.1-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b8daf367508359bbca073369d770ac18bf8bf490e32826e897bf4665d625c3a3
BLAKE2b-256 checksum
How to use checksums
0128f98802afc2b80545d93443238d5350c7d2489957371534523f00ca51ec0e
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for pypublibike 3.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page