{"id":34793877,"url":"https://github.com/paquiteau/nbb","last_synced_at":"2026-05-23T01:31:54.400Z","repository":{"id":111553733,"uuid":"575606496","full_name":"paquiteau/nbb","owner":"paquiteau","description":"When is the next bus coming ? ","archived":false,"fork":false,"pushed_at":"2023-06-20T15:11:24.000Z","size":78,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-26T21:15:35.887Z","etag":null,"topics":["api","cli","idfm","python","ratp"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/next-bus-bot/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/paquiteau.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-12-07T22:26:43.000Z","updated_at":"2023-10-04T10:29:37.000Z","dependencies_parsed_at":"2025-12-25T10:02:42.119Z","dependency_job_id":null,"html_url":"https://github.com/paquiteau/nbb","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/paquiteau/nbb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paquiteau%2Fnbb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paquiteau%2Fnbb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paquiteau%2Fnbb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paquiteau%2Fnbb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paquiteau","download_url":"https://codeload.github.com/paquiteau/nbb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paquiteau%2Fnbb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33379721,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-23T01:21:08.577Z","status":"ssl_error","status_checked_at":"2026-05-23T01:20:25.255Z","response_time":265,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","cli","idfm","python","ratp"],"created_at":"2025-12-25T10:01:30.462Z","updated_at":"2026-05-23T01:31:54.396Z","avatar_url":"https://github.com/paquiteau.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"===============\nNext Bus Bot\n===============\n\nA bot/ cli tool that simply gives you the waiting times for next buses at your favorite bus stop.\n\nIt 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\n\n\n.. warning::\n\n   I am not responsible if you arrive late at your work.\n   For serious travel planning, use your favorite app.\n\nExample\n-------\n::\n\n   $ nbb mdv\n   Next buses at Mare du Vivier:\n   - ⏰  6 min. (12:29)  9️⃣ 🚍 ▶ Centre Commercial Ulis 2\n   - ⏰ 27 min. (12:50)  9️⃣ 🚍 ▶ Gare de Jouy en Josas\n   - ⏰ 35 min. (12:58)  9️⃣ 🚍 ▶ Centre Commercial Ulis 2\n   - ⏰ 53 min. (13:16)  9️⃣ 🚍 ▶ Christ de Saclay\n\n\nInstallation\n============\n\nPip Installation\n----------------\n\n::\n\n   $ pip install next-bus-bot\n\n\nDeveloper Installation\n----------------------\n\n1. clone the repo ::\n\n   $ git clone git@github.com:paquiteau/nbb/\n\n2. create your venv with your favorite tool\n3. Install locally the package with bells and whistles ::\n\n   $ (venv) pip install -e .[dev,test]\n\n\nTODO\n----\n - automatic aliasing of stops (based on initials)\n - support for direction filtering\n - Add support for a bot front-end (slack, discord, IRC, etc).\n - Extend the useful bus stops.\n\nConfiguration\n=============\n\nnbb 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:\n\n 1. `nbb/nbb_conf.toml`\n 2. `~/.config/nbb_conf.toml`\n 3. `nbb_conf.toml` in current directory.\n 4. `nbb --config \u003cfile\u003e`\n\n\nAn example (and default) config file is available in `nbb/nbb_conf`, and a example config is:\n\n.. code-block:: toml\n\n    [cli]\n    # Default parameters for the CLI\n    pretty = true     # Emoji in the terminal\n    compact = false    # More condensed output\n    verbose = false    # More verbose output, only for debugging.\n\n    [stop.places]\n    # List of bus stops, with their name and their ID\n    # You can find the ID of a stop by looking at the URL of the stop on the IDFM website\n    # https://data.iledefrance-mobilites.fr/explore/dataset/zones-de-correspondance/custom/?disjunctive.zdctype\n\n    # The name of the step as a key does not matter,\n    # it should only be consistent between the stops, stops.aliases and stop.directions sections.\n    #\n    # The first stop defined is the default one.\n\n    [stop.aliases]\n    # Aliases for the stops defined in stop.places\n    \"Mare du Vivier\" = [\"CEA Porte Sud\", \"Neurospin\", \"nsp\", \"mdv\"]\n    \"Moulon\" = [\"ens\"]\n    \"Raoul Dautry\" = [\"CEA Porte Est\"]\n    \"Place Marguerite Perey\" = [\"Inria\"]\n\n\n    [stop.direction_filter]\n    # Direction filter for the stops defined in stop.places.\n\n    # For each stop you can filter the direction\n    \"Mare du Vivier\" = [\"Gare du Guichet\", \"Centre Commercial Ulis 2\"]      # Only keep the buses that have either 'gare du guichet'  or  'Centre commercial ulis2' as destination.\n    \"Moulon\" = [\"Gare du Guichet\", \"Centre Commercial Ulis 2\"]      # Only keep the gare du guichet  and Centre commercial ulis2\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaquiteau%2Fnbb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaquiteau%2Fnbb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaquiteau%2Fnbb/lists"}