uw-ssec / post-disaster-comms

Repository for the Post Disaster Comms Project
https://pdc-ssec.readthedocs.io
BSD 3-Clause "New" or "Revised" License
0 stars 3 forks source link

refactor: Refactor python code to have loaders as python cli scripts #174

Closed lsetiawan closed 2 weeks ago

lsetiawan commented 3 weeks ago

Overview

Currently a bunch of loaders functions are in the tests, we need to update this so that the loaders are a part of the package cli entrypoint.

lsetiawan commented 3 weeks ago

Currently there's 2 important PRs related to this, that should be included in the refactor #175 and #151

lsetiawan commented 3 weeks ago

@anujsinha3 and I had a discussion yesterday that we will use Typer to create a full blown CLI App to make it easy to use the various commands: https://typer.tiangolo.com/tutorial/subcommands/

lsetiawan commented 3 weeks ago

Both #175 and #151 have now been merged to main and now should be able to be integrated to here

anujsinha3 commented 3 weeks ago

I have moved and tested the SQL hooks script to use Typer. https://github.com/uw-ssec/post-disaster-comms/pull/180 Please let me know if this looks good. Accordingly, I will move the other one as well.