Skip to content

Commit 1d341bc

Browse files
Merge 76b6e93 into 35b13ad
2 parents 35b13ad + 76b6e93 commit 1d341bc

30 files changed

Lines changed: 2017 additions & 253 deletions

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ To use this repository:
2323
```
2424
poetry install
2525
```
26-
3. Example: run the COVID-19 vaccination trends ETL pipeline:
26+
3. Example: run the COVID-19 vaccination trends ETL pipeline, with extraction, raw data schema validation (-v) and transformed data validation (-t).
2727
```
28-
python -m cfa.scenarios.dataops.etl.covid19vax_trends --extract
28+
python -m cfa.scenarios.dataops.etl.covid19vax_trends --extract -v -t
2929
```
3030
4. [Optional] installing developer dependencies:
3131
```

cfa/scenarios/dataops/datasets/covid19_hospitalizations.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
name = "covid19hospitalizations"
99
automate = false
1010
transform_template = "covid19hospitalizations.sql"
11+
schema = "datasets/schemas/covid19hospitalizations.py"
1112

1213
[source]
1314
url = "https://healthdata.gov/resource/sgxm-t72h.csv"

cfa/scenarios/dataops/datasets/covid19_vaccination_trends.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
name = "covid19vax_trends"
1010
automate = false
1111
transform_template = "covid19vax_trends.sql"
12+
schema = "datasets/schemas/covid19vax_trends.py"
1213

1314
[source]
1415

cfa/scenarios/dataops/datasets/donor_seroprevalence_2020.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
name = "donor_seroprevalence_2020"
99
automate = false
1010
transform_template = "donor_seroprevalence_2020.sql"
11+
schema = "datasets/schemas/donor_seroprevalence_2020.py"
1112

1213
[source]
1314
url = "https://data.cdc.gov/resource/mtc3-kq6r.csv"

cfa/scenarios/dataops/datasets/donor_seroprevalence_2022.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
name = "donor_seroprevalence_2022"
99
automate = false
1010
transform_template = "donor_seroprevalence_2022.sql"
11+
schema = "datasets/schemas/donor_seroprevalence_2022.py"
1112

1213
[source]
1314
url = "https://data.cdc.gov/resource/ar8q-3jhn.csv"

cfa/scenarios/dataops/datasets/fips_to_name.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
name = "fips_to_name"
99
automate = false
1010
transform_template = "fips_to_name.sql"
11+
schema = "datasets/schemas/fips_to_name.py"
1112

1213
[source]
1314
url = "https://data.transportation.gov/resource/eek5-pv8d.csv"
Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
1-
# This dataset is static, and thus only needs to be extracted in it's raw form
2-
# once and saved to blob storage. For a human viewable we format, see:
3-
# "https://www.fema.gov/api/open/v2/FemaRegions"
4-
# Raw (extracted) and transformed (loaded) data will be stored in azure blob storage
5-
# which requires the account, container and path for access
6-
7-
[properties]
8-
name = "fips_to_name_improved"
9-
automate = false
10-
transform_template = "fips_to_name_improved.sql"
11-
12-
[source]
13-
url = "https://www.fema.gov/api/open/v2/FemaRegions"
14-
pagination = {limit = 1000}
15-
16-
[extract]
17-
account = "cfadatalakeprd"
18-
container = "cfapredict"
19-
prefix = "dataops/scenarios/raw/fips_to_name_improved"
20-
21-
[load]
22-
account = "cfadatalakeprd"
23-
container = "cfapredict"
24-
prefix = "dataops/scenarios/transformed/fips_to_name_improved"
1+
# This dataset is static, and thus only needs to be extracted in it's raw form
2+
# once and saved to blob storage. For a human viewable we format, see:
3+
# "https://www.fema.gov/api/open/v2/FemaRegions"
4+
# Raw (extracted) and transformed (loaded) data will be stored in azure blob storage
5+
# which requires the account, container and path for access
6+
7+
[properties]
8+
name = "fips_to_name_improved"
9+
automate = false
10+
transform_template = "fips_to_name_improved.sql"
11+
schema = "datasets/schemas/fips_to_name_improved.py"
12+
13+
[source]
14+
url = "https://www.fema.gov/api/open/v2/FemaRegions"
15+
pagination = {limit = 1000}
16+
17+
[extract]
18+
account = "cfadatalakeprd"
19+
container = "cfapredict"
20+
prefix = "dataops/scenarios/raw/fips_to_name_improved"
21+
22+
[load]
23+
account = "cfadatalakeprd"
24+
container = "cfapredict"
25+
prefix = "dataops/scenarios/transformed/fips_to_name_improved"
Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
1-
# This dataset is static, and thus only needs to be extracted in it's raw form
2-
# once and saved to blob storage. For a human viewable we format, see:
3-
# https://data.transportation.gov/resource/eek5-pv8d.csv
4-
# Raw (extracted) and transformed (loaded) data will be stored in azure blob storage
5-
# which requires the account, container and path for access
6-
7-
[properties]
8-
name = "omicron_variant_regions"
9-
automate = false
10-
transform_template = ""
11-
12-
[source]
13-
url = ""
14-
pagination = {limit = 1000}
15-
16-
[extract]
17-
account = "cfadatalakeprd"
18-
container = "cfapredict"
19-
prefix = "dataops/scenarios/raw/omicron_variant_regions"
20-
21-
[load]
22-
account = "cfadatalakeprd"
23-
container = "cfapredict"
24-
prefix = "dataops/scenarios/transformed/omicron_variant_regions"
1+
# This dataset is static, and thus only needs to be extracted in it's raw form
2+
# once and saved to blob storage. For a human viewable we format, see:
3+
# https://data.transportation.gov/resource/eek5-pv8d.csv
4+
# Raw (extracted) and transformed (loaded) data will be stored in azure blob storage
5+
# which requires the account, container and path for access
6+
7+
[properties]
8+
name = "omicron_variant_regions"
9+
automate = false
10+
transform_template = ""
11+
schema = ""
12+
13+
[source]
14+
url = ""
15+
pagination = {limit = 1000}
16+
17+
[extract]
18+
account = "cfadatalakeprd"
19+
container = "cfapredict"
20+
prefix = "dataops/scenarios/raw/omicron_variant_regions"
21+
22+
[load]
23+
account = "cfadatalakeprd"
24+
container = "cfapredict"
25+
prefix = "dataops/scenarios/transformed/omicron_variant_regions"

cfa/scenarios/dataops/datasets/sars_cov2_proportions.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
name = "sars_cov2_proportions"
99
automate = false
1010
transform_template = "sars_cov2_proportions.sql"
11+
schema = "datasets/schemas/sars_cov2_proportions.py"
1112

1213
[source]
1314
url = "https://data.cdc.gov/resource/jr58-6ysp.csv"

0 commit comments

Comments
 (0)