Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.env.local
**/__pycache__
.python-version
.temp
**/data
.envrc
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.12
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,26 @@ Scripts for processing MBTA performance data both from LAMP and from monthly his
1. Add your AWS credentials (AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY) to your shell environment, OR add them to a .boto config file with awscli command `aws configure`.

## Testing

1. From the `mbta-performance` directory, set up the poetry with `poetry shell; poetry install`
2. From the `mbta-performance` directory, run `poetry run pytest`

## Run Locally

### Run today's LAMP ingest

```shell
poetry run python -m mbta-performance.chalicelib.lamp.ingest
```

### Backfill LAMP

```shell
poetry run python -m mbta-performance.chalicelib.lamp.backfill.main
```

### Backfill Historic

```shell
poetry run python -m mbta-performance.chalicelib.historic.backfill.main
```
Loading