Skip to main content

bay-wheels

An unofficial Python client for the Bay Wheels bike-share API. Supports authentication, station lookup, bike availability, and reservations. Mostly vibe coded; use at your own risk.

Installation

uv add bay-wheels

Usage

import asyncio
from bay_wheels import BayWheelsClient

async def main():
    async with BayWheelsClient() as client:
        # Authenticate via SMS
        await client.request_code("+14155551234")
        code = input("Enter code: ")
        await client.login("+14155551234", code)

        # List stations
        stations = await client.list_stations()
        for station in stations[:5]:
            print(f"{station.name}: {station.ebikes_available} e-bikes")

        # Get bikes at a station
        bikes = await client.get_station_bikes(stations[0].id)
        for bike in bikes:
            print(f"  Bike {bike.bike_id}: {bike.estimated_range_miles} mi")

        # Reserve a bike
        reservation = await client.create_reservation(stations[0].id)
        print(f"Reserved: {reservation.ride_id}")

        # Cancel reservation
        await client.cancel_reservation(reservation.ride_id)

asyncio.run(main())

License

MIT

Metadata

Release files for bay-wheels 0.3.0

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

Source distribution (sdist)

Source distribution for bay-wheels 0.3.0
File Size Uploaded Provenance
bay_wheels-0.3.0.tar.gz 30.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for bay-wheels 0.3.0
File Interpreter ABI Platform
bay_wheels-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 40.6 kB

Release files / bay_wheels-0.3.0.tar.gz

Download URL bay_wheels-0.3.0.tar.gz
Size 30.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7fc5e876457fc9167e3277fd0e9bbb63f0cb9eeff2a4d70a05ac0cdc4f24a77f
BLAKE2b-256 checksum
How to use checksums
988f9cd09360bb5907f2b7f55187719ac6d65e6cfc1dfc587b9f55eda1b400a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.4.29

Release files / bay_wheels-0.3.0-py3-none-any.whl

Download URL bay_wheels-0.3.0-py3-none-any.whl
Size 10.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
70d7735e01861ce22756d2da5d0ee098bb1be28c771cf13d2819e94b1688ea26
BLAKE2b-256 checksum
How to use checksums
13a82f97f10a7fbb413d0019e21afbb3422695ea745d7fe5fe835ebe17d57145
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.4.29

Security for bay-wheels 0.3.0

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