CLI + Python API to search Israeli bus stops and realtime line arrivals
Project description
Israel Bus CLI 🚌🚍
CLI & Python API for searching Israeli bus stops and realtime line arrival info (unofficial, uses public Web endpoints).
Install
pip install israel-bus-cli
Quick usage (CLI)
Search address and list nearby stops (JSON):
israel-bus --address "דיזינגוף 220 תל אביב" --list-stops --json
Get lines for the first (nearest) stop, filter line 12:
israel-bus --address "דיזינגוף 220 תל אביב" --first-stop --line 12
Direct by stop id:
israel-bus --stop-id 26629 --line 12 --json
Interactive mode (no flags):
israel-bus
Python API
from israel_bus_cli import search_address, get_stops_near_location, get_lines_by_stop
addr = search_address("דיזינגוף 220 תל אביב")[0]
lat, lon = float(addr['lat']), float(addr['lon'])
stops = get_stops_near_location(lat, lon)
lines = get_lines_by_stop('26629')
Disclaimer
Not affiliated with official transit authorities. API structure may change.
License
MIT
Development
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file israel_bus_cli-0.1.1.tar.gz.
File metadata
- Download URL: israel_bus_cli-0.1.1.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd168b84661325e604e2ca15707f4a458e1852c0e53a5983a3b8d4f237c20258
|
|
| MD5 |
d2852a39e80540ff46da0131839b6f17
|
|
| BLAKE2b-256 |
b8a3f055785012a912c689801c1e0cd01a84033f84e5168d4741cc858571c00d
|
File details
Details for the file israel_bus_cli-0.1.1-py3-none-any.whl.
File metadata
- Download URL: israel_bus_cli-0.1.1-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd20b20c252b7cc6fdaa7398c675656a68af0c8e3d448cae81ea782fdc5a1544
|
|
| MD5 |
9b66b0d3a74ebc489ca9ab58ff964c12
|
|
| BLAKE2b-256 |
80b12c9dade8fbdd145f2e7ed7ea4de2ada4d6cf7285d8f2cdd6787b3e04cf3d
|