Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seed script #83

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ yarn-error.log*
#editor-config
.idea

# ignore venv files
# ignore venv files
/scripts/__pycache__/
/scripts/bar.egg-info/
/scripts/venv/

.python-version
17 changes: 10 additions & 7 deletions scripts/cli.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
import click
import dataparsing
from seed import seed


@click.group()
def main():
pass


@main.command()
@click.argument('path')
def parse(path):
"""run dataparsing script"""
dataparsing.parse(path)


@main.command()
@click.argument('path')
def ingestion(path):
"""run ingestion script (WIP)"""
print('filler')
@click.argument('csv')
@click.argument('json')
def ingest(csv, json):
"""run ingestion script"""
seed.csvToJson(csv, json)


if __name__ == '__main__':
main()



Binary file added scripts/seed/__pycache__/seed.cpython-310.pyc
Binary file not shown.
Loading