feat: make command
This commit is contained in:
@@ -10,3 +10,5 @@ dependencies = [
|
|||||||
"playwright>=1.51.0",
|
"playwright>=1.51.0",
|
||||||
"questionary>=2.1.0",
|
"questionary>=2.1.0",
|
||||||
]
|
]
|
||||||
|
[project.scripts]
|
||||||
|
uulm = "uulm_utils.main:cli"
|
||||||
@@ -38,7 +38,7 @@ async def cli(ctx, username, password, headful):
|
|||||||
ctx.obj['PASSWORD'] = password or await questionary.password('Enter your kiz password:').ask_async()
|
ctx.obj['PASSWORD'] = password or await questionary.password('Enter your kiz password:').ask_async()
|
||||||
ctx.obj['HEADLESS'] = not headful
|
ctx.obj['HEADLESS'] = not headful
|
||||||
|
|
||||||
@cli.command(help='Interact with the Module Tree in Campusonline')
|
@cli.command(help='Interact with the module tree in Campusonline')
|
||||||
@click.pass_context
|
@click.pass_context
|
||||||
async def campusonline(ctx):
|
async def campusonline(ctx):
|
||||||
async for page, browser, context in run_playwright(ctx.obj['HEADLESS']):
|
async for page, browser, context in run_playwright(ctx.obj['HEADLESS']):
|
||||||
38
uv.lock
generated
38
uv.lock
generated
@@ -30,25 +30,6 @@ wheels = [
|
|||||||
{ url = "https://files.pythonhosted.org/packages/92/c4/ae9e9d25522c6dc96ff167903880a0fe94d7bd31ed999198ee5017d977ed/asyncclick-8.1.8.0-py3-none-any.whl", hash = "sha256:be146a2d8075d4fe372ff4e877f23c8b5af269d16705c1948123b9415f6fd678", size = 99115 },
|
{ url = "https://files.pythonhosted.org/packages/92/c4/ae9e9d25522c6dc96ff167903880a0fe94d7bd31ed999198ee5017d977ed/asyncclick-8.1.8.0-py3-none-any.whl", hash = "sha256:be146a2d8075d4fe372ff4e877f23c8b5af269d16705c1948123b9415f6fd678", size = 99115 },
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "campus-search"
|
|
||||||
version = "0.1.0"
|
|
||||||
source = { virtual = "." }
|
|
||||||
dependencies = [
|
|
||||||
{ name = "asyncclick" },
|
|
||||||
{ name = "click" },
|
|
||||||
{ name = "playwright" },
|
|
||||||
{ name = "questionary" },
|
|
||||||
]
|
|
||||||
|
|
||||||
[package.metadata]
|
|
||||||
requires-dist = [
|
|
||||||
{ name = "asyncclick", specifier = ">=8.1.8" },
|
|
||||||
{ name = "click", specifier = ">=8.1.8" },
|
|
||||||
{ name = "playwright", specifier = ">=1.51.0" },
|
|
||||||
{ name = "questionary", specifier = ">=2.1.0" },
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "click"
|
name = "click"
|
||||||
version = "8.1.8"
|
version = "8.1.8"
|
||||||
@@ -184,6 +165,25 @@ wheels = [
|
|||||||
{ url = "https://files.pythonhosted.org/packages/8b/54/b1ae86c0973cc6f0210b53d508ca3641fb6d0c56823f288d108bc7ab3cc8/typing_extensions-4.13.2-py3-none-any.whl", hash = "sha256:a439e7c04b49fec3e5d3e2beaa21755cadbbdc391694e28ccdd36ca4a1408f8c", size = 45806 },
|
{ url = "https://files.pythonhosted.org/packages/8b/54/b1ae86c0973cc6f0210b53d508ca3641fb6d0c56823f288d108bc7ab3cc8/typing_extensions-4.13.2-py3-none-any.whl", hash = "sha256:a439e7c04b49fec3e5d3e2beaa21755cadbbdc391694e28ccdd36ca4a1408f8c", size = 45806 },
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "uulm-utils"
|
||||||
|
version = "0.1.0"
|
||||||
|
source = { virtual = "." }
|
||||||
|
dependencies = [
|
||||||
|
{ name = "asyncclick" },
|
||||||
|
{ name = "click" },
|
||||||
|
{ name = "playwright" },
|
||||||
|
{ name = "questionary" },
|
||||||
|
]
|
||||||
|
|
||||||
|
[package.metadata]
|
||||||
|
requires-dist = [
|
||||||
|
{ name = "asyncclick", specifier = ">=8.1.8" },
|
||||||
|
{ name = "click", specifier = ">=8.1.8" },
|
||||||
|
{ name = "playwright", specifier = ">=1.51.0" },
|
||||||
|
{ name = "questionary", specifier = ">=2.1.0" },
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "wcwidth"
|
name = "wcwidth"
|
||||||
version = "0.2.13"
|
version = "0.2.13"
|
||||||
|
|||||||
Reference in New Issue
Block a user