Skip to content
Snippets Groups Projects
Commit 77982c85 authored by zshan2's avatar zshan2
Browse files

assignment-2.1 version2: query parser finished, GET API finished

parent b2347adc
Branches master
No related tags found
1 merge request!1<assignment-2.1>
File moved
import typer
app = typer.Typer()
@app.command()
def scrape_book(url: str):
""" Function used to create scrape request to Server """
@app.command()
def goodbye(name: str, formal: bool = False):
""" function2 """
if formal:
typer.echo(f"Goodbye Ms. {name}. Have a good day.")
else:
typer.echo(f"Bye {name}!")
if __name__ == "__main__":
app()
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment