Skip to content

Latest commit

 

History

History
68 lines (50 loc) · 2.26 KB

README.md

File metadata and controls

68 lines (50 loc) · 2.26 KB

Migrants and the State:
Extracted Data

Here you'll find (meta)data extracted from the M&TS A Files corpus along with useful files and scripts for managing that (meta)data.

E.g.,

Getting started

Prerequisites

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:

1. Install asdf:

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

2. Install python via asdf

asdf plugin-add python
asdf plugin-add direnv
asdf direnv setup --shell zsh --version latest # if using ZSH! can replace with bash

3. Install pipx and poetry

brew install pipx
pipx ensurepath 
source ~/.zshrc # if using ZSH! can replace with ~/.bashrc

Using this repo

1. Clone the project repo and set up local python

gh repo clone Migrants-and-The-State/extracted-data && cd extracted-data
adsf install python
poetry install

2. Run the scipts (so far just schema validation!)

poetry run python lib/validate_json_to_schema.py