Transform CLI
This module provides CLI commands to transform downloaded data.
abgeordnetenwatch_data(legislature_id=ARGUMENT_LEGISLATURE_ID, dry=OPTION_DRY, data_path=OPTION_DATA_PATH)
Transform abgeordnetenwatch data.
Parameters: |
|
---|
Examples:
To transform data for legislature 161:
bundestag transform abgeordnetenwatch-data 161
Source code in src/bundestag/cli/transform.py
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
|
bundestag_sheets(dry=OPTION_DRY, data_path=OPTION_DATA_PATH, sheet_source=typer.Option(SheetsSource.json_file.value, help=f'bundestag_sheet specific parameter. Switch between xlsx uri sources. Options: {[(k.value) for k in SheetsSource]}'))
Transform bundestag sheet data.
Parameters: |
|
---|
Examples:
To transform the data using the default JSON file source:
bundestag transform bundestag-sheets
Source code in src/bundestag/cli/transform.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
|