Skip to content
Open
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
16 changes: 16 additions & 0 deletions data-scripts/Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
contentful-management = "~=2.14"
click = "~=8.2"
petl = "~=1.7"
ratelimit = "~=2.2"
tqdm = "~=4.67"

[dev-packages]

[requires]
python_version = "3.10"
20 changes: 20 additions & 0 deletions data-scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,26 @@
Handy little python scripts to clean and merge voter turnout
and registration data. Also a script to migrate content.

You should use the `pipenv` command to install the dependencies.
Install that with a package manager or `pip install pipenv`.

After you have pipenv, change in to this data-scripts directory and
run `pipenv install`

To run the commands, use a pipenv shell like:

```
pipenv shell
python cli.py
```

or the run command:
```
pipenv run python cli.py
```

## Available commands

```
Usage: cli.py [OPTIONS] COMMAND [ARGS]...

Expand Down