utility scripts for migrants & the state, particularly for data parity tracking
- To access the M&TS Research Workspace (RW) mounted volume, follow these instructions using project name
migrants_state
You'll need Python, Git, and poetry installed to use the data and run the scripts available in /lib
. On mac, we recommend using Homebrew and asdf.
If you already have Homebrew installed:
brew install coreutils curl git gh
brew install asdf
Then follow the instructions for your system to add asdf
to your shell's PATH
. If you're using ZSH, for example, you'll run:
echo -e "\n. $(brew --prefix asdf)/libexec/asdf.sh" >> ${ZDOTDIR:-~}/.zshrc
source ~/.zshrc
asdf plugin-add python
asdf plugin-add direnv
asdf direnv setup --shell zsh --version latest # if using ZSH! can replace with bash
brew install pipx
pipx ensurepath
source ~/.zshrc # if using ZSH! can replace with ~/.bashrc
gh repo clone migrants-and-the-state/mats-utils && cd mats-utils
adsf install python
poetry install
poetry run python lib/subset_relevant_catalog.py