No project description provided
Project description
citybussin
WIP, will eat your underfunded bus
CityBus (of West Lafayette)'s API wrapped up in a Python library
Usage
Import library and use
Example
from citybussin import Citybussin
c = Citybussin()
target_route = c.get_route_by_short_name("4B")
target_route_stops = c.get_route_stops(target_route["key"])
target_route_directions = c.get_route_directions(target_route["key"])
target_route_direction = target_route_directions[0]
next_depart_times = c.get_next_depart_times(target_route["key"], target_route_direction["direction"]["key"],
target_route_stops[0]["stopCode"])
import humanize
from datetime import datetime
humanize.naturaltime(datetime.fromisoformat(next_depart_times[0]["estimatedDepartTimeUtc"]))
# 14 minutes from now
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
citybussin-0.0.1a1.tar.gz
(1.8 kB
view details)
Built Distribution
File details
Details for the file citybussin-0.0.1a1.tar.gz
.
File metadata
- Download URL: citybussin-0.0.1a1.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.5 Windows/11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82c03d5b1f9e269212a35d855a9d527ccd6bdd141aa20a069d871b86f33ea18a |
|
MD5 | 198d7fb660e5e2b30b0569ba6f956b17 |
|
BLAKE2b-256 | b076bd088412a5f2b4bffe38983b8745ff44e53c7caede50a448c93254fba32f |
File details
Details for the file citybussin-0.0.1a1-py3-none-any.whl
.
File metadata
- Download URL: citybussin-0.0.1a1-py3-none-any.whl
- Upload date:
- Size: 2.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.5 Windows/11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ccd018271ed44a3b022185b88d74440975e98d3fbf2d0de528247d55caafe15 |
|
MD5 | 3aafbd58da7b876d3e7c735405392137 |
|
BLAKE2b-256 | a8b24c799f9cd46b747b2cfa06286c9274ba4cfc615ac6a248c40d721c310b70 |