Alacorder retrieves case detail PDFs from Alacourt.com and processes them into data tables suitable for research purposes.
Project description
┏┓┓ ┏┓┏┓┏┓┳┓┳┓┏┓┳┓
┣┫┃ ┣┫┃ ┃┃┣┫┃┃┣ ┣┫
┛┗┗┛┛┗┗┛┗┛┛┗┻┛┗┛┛┗
(c) 2023 Sam Robson
Alacorder
Alacorder collects and processes case detail PDFs into data tables suitable for research purposes.
GitHub | PyPI | Report an issue
Installation
If your device can run Python 3.10+, it can run Alacorder. Use pip
to install the command line interface.
- Install Anaconda Distribution to install the latest Python.
- Once your Anaconda environment is configured, open a terminal from Anaconda Navigator and enter
pip install -U alacorder
to install.
Usage: alacorder [OPTIONS] COMMAND [ARGS]...
Alacorder collects case detail PDFs from Alacourt.com and processes them into data
tables suitable for research purposes.
╭─ Options ────────────────────────────────────────────────────────────────────────╮
│ --version Show the version and exit. │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ───────────────────────────────────────────────────────────────────────╮
│ crawl-adoc Collect full inmates list from ADOC Inmate Search and write to │
│ table at `output_path` (.xls, .xlsx, .csv, .json, .parquet). │
│ fetch-cases From a queue table with 'Case Number' or 'CaseNumber' column, │
│ download case detail PDFs to directory at `output_path`. │
│ make-archive Create case text archive from directory of case detail PDFs. │
│ make-summary Create voting rights summary grouped by person using a completed │
│ name/AIS pairing template (use make-template to create empty │
│ template). │
│ make-table Create table at `output_path` from archive or directory at │
│ `input_path`. │
│ make-template Create empty pairing template to be used as input for │
│ make-summary to create a voting rights summary grouped by person │
│ instead of by case. │
│ party-search Collect results from Alacourt Party Search into a table at │
│ `output_path`. Input `queue_path` table from .xls(x), .csv, │
│ .json, or .parquet with columns corresponding to Alacourt Party │
│ Search fields: 'Name', 'Party Type', 'SSN', 'DOB', 'County', │
│ 'Division', 'Case Year', 'Filed Before', 'Filed After', 'No │
│ Records'. │
│ rename-cases Rename all cases in a directory to full case number. Duplicates │
│ will be removed. │
│ search-adoc Search ADOC using queue with 'First Name', 'Last Name', and 'AIS' │
│ columns to retrieve sentencing information from ADOC. Record │
│ table to `output_path`. │
╰──────────────────────────────────────────────────────────────────────────────────╯
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
alacorder-81.2.1.tar.gz
(57.8 kB
view hashes)
Built Distribution
alacorder-81.2.1-py3-none-any.whl
(59.0 kB
view hashes)
Close
Hashes for alacorder-81.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01fbc2233d1edec488451fd96b303b2f47b284464521095cb829c6b31d25e1de |
|
MD5 | 26d0c0cb2a7744aae6ac4b0bc074e73f |
|
BLAKE2b-256 | 78c2fa3e5bc12eede6be489f88cb77cd3792104a048644bbfa95d488a0a1528d |