Skip to content

Commit

Permalink
Added an Excel snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
tducret committed Sep 2, 2018
1 parent b286a77 commit 2ccea8c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ pip3 install -U trainline

## CLI tool usage

```bash
trainline_cli.py --help
```

Examples :

```bash
trainline_cli.py --departure="Toulouse" --arrival="Bordeaux" --next=12hours
trainline_cli.py --departure="Paris" --arrival="Marseille" --next=1day
Expand All @@ -44,6 +50,10 @@ departure_date;arrival_date;duration;number_of_segments;price;currency;transport
[...]
```

You can then open it with your favorite spreadsheet editor (and play with the filters) :

![snapshot trainline_cli.py output in Excel](cli_tool_csv_in_Excel.png)

## Package usage

```python
Expand Down Expand Up @@ -100,10 +110,10 @@ departure_date;arrival_date;duration;number_of_segments;price;currency;transport

# TODO

- [X] Implement `get_station_id`
- [X] Implement the use of passengers during search
- [ ] Create a sort function in Trips class (to get the cheapest trips first for example)
- [ ] Add filter for class (first, second), for max_duration
- [X] Implement `get_station_id`
- [X] Implement the use of passengers during search
- [X] Calculate total price with bicycle reservation if search 'with_bicyle' (and export it in csv)
- [X] Calculate total price for all the passengers (and export it in csv) => may need to create a class for Folder
- [ ] Create the CLI tool and update README
- [X] Create the CLI tool and update README
Binary file added cli_tool_csv_in_Excel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2ccea8c

Please sign in to comment.