Metadata-Version: 2.4
Name: israel-bus-cli
Version: 0.1.0
Summary: CLI + Python API to search Israeli bus stops and realtime line arrivals
Author-email: Ben Cohen <benxcohen@gmail.com>
License: MIT
Project-URL: Homepage, https://github.com/Strike24/israel_bus_cli
Project-URL: Issues, https://github.com/Strike24/israel_bus_cli/issues
Keywords: israel,bus,transport,cli,public-transit
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: End Users/Desktop
Classifier: Intended Audience :: Developers
Classifier: Topic :: Utilities
Classifier: Topic :: Internet :: WWW/HTTP :: Indexing/Search
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests>=2.31.0
Requires-Dist: python-bidi>=0.4.2
Dynamic: license-file

# 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
```python
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


