-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create CLI to manage, check, and patch data
- Loading branch information
Showing
25 changed files
with
591 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Source CSV and ZIP files | ||
data/source/csv/* | ||
!data/source/csv/.gitkeep | ||
data/source/zip/* | ||
!data/source/zip/.gitkeep | ||
|
||
# Corrected CSV and GZ files | ||
data/corrected/csv/* | ||
!data/corrected/csv/.gitkeep | ||
data/corrected/gz/* | ||
!data/corrected/gz/.gitkeep | ||
|
||
tests | ||
__pycache__ | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[[source]] | ||
url = "https://pypi.org/simple" | ||
verify_ssl = true | ||
name = "pypi" | ||
|
||
[packages] | ||
click = "~=7.1" | ||
more-itertools = "~=8.6" | ||
regex = "~=2020.11.13" | ||
|
||
[dev-packages] | ||
|
||
[requires] | ||
python_version = "3.9" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...cratch/01-2-apply-patches-to-corrected.py → ...cratch/01-2-apply-patches-to-corrected.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# TOO SLOW | ||
# REALLY TOO SLOW | ||
|
||
from pathlib import Path | ||
import subprocess | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import click | ||
|
||
from cli_check import cli_check | ||
from cli_manage import cli_manage | ||
from cli_patch import cli_patch | ||
|
||
|
||
@click.group() | ||
def cli(): | ||
pass | ||
|
||
|
||
if __name__ == '__main__': | ||
cli.add_command(cli_check) | ||
cli.add_command(cli_manage) | ||
cli.add_command(cli_patch) | ||
cli() |
Oops, something went wrong.