Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sp21-cs242-assignment2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
zshan2
sp21-cs242-assignment2
Commits
77982c85
Commit
77982c85
authored
4 years ago
by
zshan2
Browse files
Options
Downloads
Patches
Plain Diff
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>
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
API/Functions.py
+0
-0
0 additions, 0 deletions
API/Functions.py
Client/CLI.py
+21
-0
21 additions, 0 deletions
Client/CLI.py
Server/SimpleServer.py
+0
-0
0 additions, 0 deletions
Server/SimpleServer.py
with
21 additions
and
0 deletions
CommandLineInterface/CLI
.py
→
API/Functions
.py
+
0
−
0
View file @
77982c85
File moved
This diff is collapsed.
Click to expand it.
Client/CLI.py
0 → 100644
+
21
−
0
View file @
77982c85
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
This diff is collapsed.
Click to expand it.
Server/SimpleServer.py
0 → 100644
+
0
−
0
View file @
77982c85
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment