Skip to main content

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 "יהודה הנשיא 36 תל אביב" --list-stops --json

Get lines for the first (nearest) stop, filter line 12:

israel-bus --address "יהודה הנשיא 36 תל אביב" --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("יהודה הנשיא 36 תל אביב")[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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

israel_bus_cli-0.1.0.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

israel_bus_cli-0.1.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file israel_bus_cli-0.1.0.tar.gz.

File metadata

  • Download URL: israel_bus_cli-0.1.0.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

Hashes for israel_bus_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 755279536cd7bb131efe8cba83d224eccba7e6d9ba91586fe9aec909292a9c82
MD5 7cb6508fc66a6facef7ffe6f0b488051
BLAKE2b-256 a2254370e67fbd17222e2f7dcf57286dd7e974af65114a4c9e80695ca0a91445

See more details on using hashes here.

File details

Details for the file israel_bus_cli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: israel_bus_cli-0.1.0-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

Hashes for israel_bus_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8320022d6a89d8a00d7255e71cd47915c0f73aaeef0da00dbf16c210c45e67a2
MD5 c786042939df096ef3b8a186a47fc6b1
BLAKE2b-256 257c2b875463fd4f123e2b814ba595e82d0560699881cf01e60bc88c3ff3fb94

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page