Get the next in coming buses at a Paris area Station.
Project description
A bot/ cli tool that simply gives you the waiting times for next buses at your favorite bus stop.
It works only for the IDFM/RATP Network, relying on the api lines/v4. For now only a handfull of bus stops on the Plateau de Saclay are registered, but you can add your own
Example
$ nbb mdv Next buses at Mare du Vivier: - ⏰ 6 min. (12:29) 9️⃣ 🚍 ▶ Centre Commercial Ulis 2 - ⏰ 27 min. (12:50) 9️⃣ 🚍 ▶ Gare de Jouy en Josas - ⏰ 35 min. (12:58) 9️⃣ 🚍 ▶ Centre Commercial Ulis 2 - ⏰ 53 min. (13:16) 9️⃣ 🚍 ▶ Christ de Saclay
Installation
Pip Installation
$ pip install next-bus-bot
Developer Installation
clone the repo
$ git clone git@github.com:paquiteau/nbb/
create your venv with your favorite tool
Install locally the package with bells and whistles
$ (venv) pip install -e .[dev,test]
Run tests
$ pytest
TODO
automatic aliasing of stops (based on initials )
support for direction filtering
publish on PyPi
Add support for a bot front-end (slack, discord, IRC, etc).
Extend the useful bus stops.
Configuration
nbb can be configured via its command line argument, or via a config file nbb_conf.toml, it uses TOML https://toml.io/en/ syntax formatting. Suitable location for the config file are, loaded in this order:
nbb/nbb_conf.toml
~/.config/nbb_conf.toml
nbb_conf.toml in current directory.
nbb –config <file>
An example (and default) config file is available in nbb/nbb_conf.toml.
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
Built Distribution
Hashes for next_bus_bot-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0eae4cc42e742ada8a9cc0b318ef4777a43b30c4b8414f5c16c00108850e177 |
|
MD5 | 603f28cf3a0967eb55f406107aa87722 |
|
BLAKE2b-256 | 78b9b18a21f512f17e65487ca17126f6c0eb3518a961586342670f7ec2c0076e |