Skip to main content

Alacorder retrieves case detail PDFs from Alacourt.com and processes them into data tables suitable for research purposes.

Project description

    ___    __                          __         
   /   |  / /___  _________  _________/ /__  _____
  / /| | / / __ `/ ___/ __ \/ ___/ __  / _ \/ ___/
 / ___ |/ / /_/ / /__/ /_/ / /  / /_/ /  __/ /    
/_/  |_/_/\__,_/\___/\____/_/   \__,_/\___/_/     
                                                  

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.9+, it can run Alacorder. Use pip to install the command line interface and Python module alac.

  • Install Anaconda Distribution to install the latest Python.
  • Once your Anaconda environment is configured, open a terminal from Anaconda Navigator and enter pip install alacorder to install.
  • Enter python -m alacorder to use the command line interface.
 Usage: python -m 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 `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.1.10.tar.gz (40.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

alacorder-81.1.10-py3-none-any.whl (41.0 kB view details)

Uploaded Python 3

File details

Details for the file alacorder-81.1.10.tar.gz.

File metadata

  • Download URL: alacorder-81.1.10.tar.gz
  • Upload date:
  • Size: 40.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.1 CPython/3.10.9 Darwin/22.5.0

File hashes

Hashes for alacorder-81.1.10.tar.gz
Algorithm Hash digest
SHA256 8be12cbfab632f9cc2a8d97a1fcc12cc8f08e19a93db58d9380f4cf053dbeb79
MD5 dd777d75ed409b09b30ed2fcddd08d05
BLAKE2b-256 830b9be88d2fce9f022a64c3b6b7a5486107fdfda76f55cdd2b445783d09709d

See more details on using hashes here.

File details

Details for the file alacorder-81.1.10-py3-none-any.whl.

File metadata

  • Download URL: alacorder-81.1.10-py3-none-any.whl
  • Upload date:
  • Size: 41.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.1 CPython/3.10.9 Darwin/22.5.0

File hashes

Hashes for alacorder-81.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 c92009adb3d409ce90d689c22b65ddf0274f9d50e07e0b3ac7595975b828556b
MD5 4c3c7a50f8f6cf75205ead3f86df8495
BLAKE2b-256 9341af437ff70d135445e7872a873e1aa16fea38820afd8dcb5a7961fd0c728c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page