{"id":18906837,"url":"https://github.com/streetturtle/communauto-cli","last_synced_at":"2026-03-05T17:30:18.371Z","repository":{"id":86619288,"uuid":"285442306","full_name":"streetturtle/communauto-cli","owner":"streetturtle","description":"CLI for Communauto website","archived":false,"fork":false,"pushed_at":"2020-08-08T00:51:02.000Z","size":60,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-31T11:42:56.143Z","etag":null,"topics":["cli"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/streetturtle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2020-08-06T01:22:13.000Z","updated_at":"2022-10-10T00:34:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"6bfaede9-11f0-4a19-9e0b-4659782eec3c","html_url":"https://github.com/streetturtle/communauto-cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streetturtle%2Fcommunauto-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streetturtle%2Fcommunauto-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streetturtle%2Fcommunauto-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streetturtle%2Fcommunauto-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/streetturtle","download_url":"https://codeload.github.com/streetturtle/communauto-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239890587,"owners_count":19713985,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["cli"],"created_at":"2024-11-08T09:18:52.984Z","updated_at":"2026-03-05T17:30:18.304Z","avatar_url":"https://github.com/streetturtle.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Communauto CLI\n\nInspired by [/Alarty/communauto-search](https://github.com/Alarty/communauto-search). \n\nA CLI which simplifies interaction with Communauto website, currently supported commands are:\n\n#### List reservations:\n\n```bash\n./communauto-cli.py list-reservations --status=upcoming\n+----------+-----------------------+----------------------+----------------------+---------------------------+\n|       id | Car                   | From                 | To                   | Station                   |\n|----------+-----------------------+----------------------+----------------------+---------------------------|\n| 26823428 | # 5021 Toyota Corolla | Fri 21/08/2020 13:00 | Fri 28/08/2020 14:00 | 058 - Cartier et Rosemont |\n| 26835439 | # 4639 Toyota Corolla | Sun 09/08/2020 07:00 | Sun 09/08/2020 16:00 | 218 - Métro Jean-Talon    |\n+----------+-----------------------+----------------------+----------------------+---------------------------+\n```\n\n#### Search for a car\nThe link at the bottom will redirect you to the page with available cars, so you'll just need to click on the preferred one to book it:\n\n```bash\n./communauto-cli.py search --start_date=\"10/08/20 07:00\" --end_date=\"10/08/20 16:00\" --city=sherbrooke --lang=fr\nDate range: 10/8/2020 7:0 - 10/8/2020 16:0\n+-------------------------------+------------+----------------+-----------------------------------------------------------+\n| Station Name                  |   Distance | Car            | Features                                                  |\n|-------------------------------+------------+----------------+-----------------------------------------------------------|\n| 011 - Galt et du Saint-Esprit |        4.0 | Toyota Prius C | argent 5p/5pl PROMO  b.rabat. Hayon cd MP3 USB            |\n| 019 - Webster                 |        6.8 | Chevrolet Volt | argent 4p/4pl PROMO  b.rabat. Berline cd MP3 rég. vitesse |\n| 017 - Murray et Chalifoux     |        7.8 | Toyota Prius C | argent 5p/5pl b.rabat. Hayon cd MP3 USB s.bébé\u003c18kg       |\n+-------------------------------+------------+----------------+-----------------------------------------------------------+\nLink: https://www.reservauto.net/Scripts/client/ReservationDisponibility.asp?IgnoreError=False\u0026CityID=...\n``` \n\n## How to use\n\nYou should have python3 installed, then clone/download the repo and run:\n\n```bash\n$ pip3 install -r requirements.txt\n$ python3.8 ./communauto-cli.py --help\n```\n\n## Features\n\n### Authentication\n\nThere are 3 ways to provide your credentials to the script:\n\n - safest - password prompt  \n Provide your username as an option, and for the password there will be a prompt:\n  \n    ```bash\n     $ communauto-cli.py list-reservations --username=your@email.com\n     Password:   \n     ```\n\n - most convenient - set environment variables  \n  Set environment variable in the current terminal session. You can add space before the `export`, to prevent command from saving in the history:\n \n    ```bash\n    $  export ca_user=your@email.com\n    $  export ca_password=yourpass\n    $ communauto-cli.py list-reservations\n    ```\n  \n - easiest - provide a password as an option  \n  Don't do this, as it will be saved in the terminal history:\n  \n    ```bash\n    $ communauto-cli.py list-reservations --username=your@email.com --password=yourpass\n    ```\n \n### Output format\n\nFor all supported commands there are two output formats available:\n - table (default)\n ```bash\n $ communauto-cli.py list-reservations       \n +----------+-----------------------+----------------------+----------------------+---------------------------+\n |       id | Car                   | From                 | To                   | Station                   |\n |----------+-----------------------+----------------------+----------------------+---------------------------|\n | 56834422 | # 1235 Toyota Corolla | Fri 21/08/2020 13:00 | Fri 28/08/2020 14:00 | 058 - Cartier et Rosemont |\n | 56834539 | # 1234 Toyota Corolla | Sun 09/08/2020 07:00 | Sun 09/08/2020 16:00 | 218 - Métro Jean-Talon    |\n +----------+-----------------------+----------------------+----------------------+---------------------------+\n```\n - json\n ```bash\n $ communauto-cli.py list-reservations --output=json | jq\n {\n   \"reservations\": [\n     {\n       \"id\": \"56834422\",\n       \"car\": \"# 1235 Toyota Corolla\",\n       \"from\": \"Fri 21/08/2020 13:00\",\n       \"to\": \"Fri 28/08/2020 14:00\",\n       \"station\": \"058 - Cartier et Rosemont\"\n     },\n     {\n       \"id\": \"56834539\",\n       \"car\": \"# 1234 Toyota Corolla\",\n       \"from\": \"Sun 09/08/2020 07:00\",\n       \"to\": \"Sun 09/08/2020 16:00\",\n       \"station\": \"218 - Métro Jean-Talon\"\n     }\n   ]\n }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstreetturtle%2Fcommunauto-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstreetturtle%2Fcommunauto-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstreetturtle%2Fcommunauto-cli/lists"}