cassroom 0.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. cassroom-0.1.1/.env.example +6 -0
  2. cassroom-0.1.1/.gitignore +29 -0
  3. cassroom-0.1.1/CLAUDE.md +58 -0
  4. cassroom-0.1.1/LICENSE +21 -0
  5. cassroom-0.1.1/PKG-INFO +146 -0
  6. cassroom-0.1.1/README.md +115 -0
  7. cassroom-0.1.1/cass/__init__.py +93 -0
  8. cassroom-0.1.1/cass/actions/__init__.py +29 -0
  9. cassroom-0.1.1/cass/actions/config.py +403 -0
  10. cassroom-0.1.1/cass/actions/doctor.py +141 -0
  11. cassroom-0.1.1/cass/actions/matching.py +132 -0
  12. cassroom-0.1.1/cass/actions/pull.py +570 -0
  13. cassroom-0.1.1/cass/apis/__init__.py +1 -0
  14. cassroom-0.1.1/cass/apis/canvas/__init__.py +1 -0
  15. cassroom-0.1.1/cass/apis/canvas/client.py +1094 -0
  16. cassroom-0.1.1/cass/apis/canvas/egrades.py +175 -0
  17. cassroom-0.1.1/cass/apis/canvas/matching.py +153 -0
  18. cassroom-0.1.1/cass/apis/canvas/schema.py +273 -0
  19. cassroom-0.1.1/cass/apis/canvas/sync.py +228 -0
  20. cassroom-0.1.1/cass/apis/github/__init__.py +1 -0
  21. cassroom-0.1.1/cass/apis/github/classroom.py +374 -0
  22. cassroom-0.1.1/cass/apis/github/client.py +184 -0
  23. cassroom-0.1.1/cass/apis/github/fetch.py +225 -0
  24. cassroom-0.1.1/cass/apis/github/schema.py +85 -0
  25. cassroom-0.1.1/cass/apis/github/service.py +728 -0
  26. cassroom-0.1.1/cass/async_utils.py +83 -0
  27. cassroom-0.1.1/cass/cli/__init__.py +1021 -0
  28. cassroom-0.1.1/cass/cli/canvas.py +994 -0
  29. cassroom-0.1.1/cass/cli/report.py +110 -0
  30. cassroom-0.1.1/cass/cli/sqlite_utils.py +57 -0
  31. cassroom-0.1.1/cass/db/__init__.py +188 -0
  32. cassroom-0.1.1/cass/db/cache.py +101 -0
  33. cassroom-0.1.1/cass/db/catalog.py +86 -0
  34. cassroom-0.1.1/cass/db/core.py +902 -0
  35. cassroom-0.1.1/cass/db/introspection.py +129 -0
  36. cassroom-0.1.1/cass/db/queries.py +242 -0
  37. cassroom-0.1.1/cass/db/schema.py +240 -0
  38. cassroom-0.1.1/cass/db/sync.py +383 -0
  39. cassroom-0.1.1/cass/db/views.py +97 -0
  40. cassroom-0.1.1/cass/viewer/__init__.py +16 -0
  41. cassroom-0.1.1/cass/viewer/actions.py +378 -0
  42. cassroom-0.1.1/cass/viewer/components/__init__.py +11 -0
  43. cassroom-0.1.1/cass/viewer/components/grid_panel.py +119 -0
  44. cassroom-0.1.1/cass/viewer/components/sidebar.py +163 -0
  45. cassroom-0.1.1/cass/viewer/components/toolbar.py +72 -0
  46. cassroom-0.1.1/cass/viewer/config.py +224 -0
  47. cassroom-0.1.1/cass/viewer/grid/__init__.py +61 -0
  48. cassroom-0.1.1/cass/viewer/grid/columns.py +488 -0
  49. cassroom-0.1.1/cass/viewer/grid/handlers.py +179 -0
  50. cassroom-0.1.1/cass/viewer/grid/pending.py +82 -0
  51. cassroom-0.1.1/cass/viewer/grid/utils.py +181 -0
  52. cassroom-0.1.1/cass/viewer/modals/__init__.py +17 -0
  53. cassroom-0.1.1/cass/viewer/modals/create_assignment.py +164 -0
  54. cassroom-0.1.1/cass/viewer/modals/delete_assignment.py +118 -0
  55. cassroom-0.1.1/cass/viewer/modals/pull_gh.py +215 -0
  56. cassroom-0.1.1/cass/viewer/modals/push.py +189 -0
  57. cassroom-0.1.1/cass/viewer/nicegui_app.py +99 -0
  58. cassroom-0.1.1/cass/viewer/page.py +315 -0
  59. cassroom-0.1.1/cass/viewer/setup.py +268 -0
  60. cassroom-0.1.1/cass/viewer/styles.css +260 -0
  61. cassroom-0.1.1/cass/viewer/styles.py +29 -0
  62. cassroom-0.1.1/pyproject.toml +138 -0
  63. cassroom-0.1.1/scripts/release.py +361 -0
  64. cassroom-0.1.1/tests/actions/__init__.py +0 -0
  65. cassroom-0.1.1/tests/actions/test_config.py +321 -0
  66. cassroom-0.1.1/tests/actions/test_matching.py +172 -0
  67. cassroom-0.1.1/tests/actions/test_pull.py +550 -0
  68. cassroom-0.1.1/tests/apis/__init__.py +0 -0
  69. cassroom-0.1.1/tests/apis/canvas/__init__.py +0 -0
  70. cassroom-0.1.1/tests/apis/canvas/test_client.py +656 -0
  71. cassroom-0.1.1/tests/apis/canvas/test_egrades.py +96 -0
  72. cassroom-0.1.1/tests/apis/canvas/test_sync.py +684 -0
  73. cassroom-0.1.1/tests/apis/github/__init__.py +0 -0
  74. cassroom-0.1.1/tests/apis/github/test_classroom.py +149 -0
  75. cassroom-0.1.1/tests/apis/github/test_classroom_api.py +350 -0
  76. cassroom-0.1.1/tests/apis/github/test_fetch.py +157 -0
  77. cassroom-0.1.1/tests/apis/github/test_resolve.py +295 -0
  78. cassroom-0.1.1/tests/apis/github/test_service.py +176 -0
  79. cassroom-0.1.1/tests/conftest.py +46 -0
  80. cassroom-0.1.1/tests/db/__init__.py +0 -0
  81. cassroom-0.1.1/tests/db/test_core.py +547 -0
  82. cassroom-0.1.1/tests/db/test_models.py +46 -0
  83. cassroom-0.1.1/tests/seed_testdb.py +43 -0
  84. cassroom-0.1.1/tests/test_async_utils.py +111 -0
  85. cassroom-0.1.1/tests/test_audit.py +638 -0
  86. cassroom-0.1.1/tests/test_cli.py +585 -0
  87. cassroom-0.1.1/tests/test_integration.py +690 -0
  88. cassroom-0.1.1/tests/viewer/__init__.py +0 -0
  89. cassroom-0.1.1/tests/viewer/test_columns.py +498 -0
  90. cassroom-0.1.1/tests/viewer/test_create_assignment.py +277 -0
  91. cassroom-0.1.1/tests/viewer/test_delete_assignment.py +292 -0
  92. cassroom-0.1.1/tests/viewer/test_grid.py +199 -0
  93. cassroom-0.1.1/tests/viewer/test_modals.py +343 -0
  94. cassroom-0.1.1/tests/viewer/test_page.py +755 -0
  95. cassroom-0.1.1/tests/viewer/test_preview.py +243 -0
  96. cassroom-0.1.1/tests/viewer/test_setup.py +139 -0
  97. cassroom-0.1.1/tests/viewer/test_sync.py +159 -0
  98. cassroom-0.1.1/tests/viewer/test_ui.py +797 -0
  99. cassroom-0.1.1/uv.lock +1902 -0
@@ -0,0 +1,6 @@
1
+ # Copy to .env.testpypi or .env.pypi and fill in your token
2
+ # Get tokens at:
3
+ # TestPyPI: https://test.pypi.org/manage/account/token/
4
+ # PyPI: https://pypi.org/manage/account/token/
5
+
6
+ UV_PUBLISH_TOKEN=pypi-your-token-here
@@ -0,0 +1,29 @@
1
+ *.DS*
2
+ .venv/
3
+ proposals/
4
+ __pycache__/
5
+ *.py[oc]
6
+ canvas-token.txt
7
+ canvas_mapping.json
8
+ classroom_roster.csv
9
+ cass.duckdb
10
+ cass.db
11
+ cass.db-journal
12
+ .cass_cache.duckdb
13
+ .cass_cache.duckdb.wal
14
+ grade-data/
15
+ .ruff_cache/
16
+ .pytest_cache/
17
+ cass.duckdb.wal
18
+ cass.toml
19
+ docs/api/
20
+ backups/
21
+ gh-classroom/
22
+ memory/
23
+ dev.py
24
+ .canvastoken
25
+ *.db
26
+ tests/testdb/
27
+ dist/
28
+ .env.*
29
+ !.env.example
@@ -0,0 +1,58 @@
1
+ # CLAUDE.md — cass
2
+
3
+ CLI grading toolkit for GitHub Classroom and Canvas LMS. SQLite storage, Typer CLI, NiceGUI browser viewer.
4
+
5
+ ## Architecture
6
+
7
+ CLI (`cass/cli/`) and viewer (`cass/viewer/`) are thin interfaces over a shared functional core.
8
+ **Never** put business logic, data transforms, queries, or API calls in CLI or viewer code.
9
+ Always use existing models (`db/schema.py`, `apis/*/schema.py`), operations (`db/`, `apis/`, `actions/`), and catalog metadata (`db/catalog.py`). No ad-hoc dicts, raw SQL in interfaces, or one-off data wrangling — if it doesn't exist in core, add it there first.
10
+
11
+ ```
12
+ CLI / Viewer → actions/ → db/ → SQLite
13
+ apis/ catalog
14
+ ```
15
+
16
+ ## Commands
17
+
18
+ ```bash
19
+ uv sync # install deps
20
+ uv run poe lint # ruff format → ruff check → ty → basedpyright
21
+ uv run poe test # pytest
22
+ uv run poe install # uv tool install . --force
23
+ ```
24
+
25
+ **Always run `uv run poe lint && uv run poe test` before finishing work.**
26
+
27
+ Use `symbex` for token-efficient code exploration:
28
+
29
+ ```bash
30
+ symbex -s -d cass/ # all signatures
31
+ symbex '*Client*' -s -d cass/ # find classes/functions matching pattern
32
+ ```
33
+
34
+ ## Style
35
+
36
+ - File header: `from __future__ import annotations` → `__docformat__ = "google"` → imports
37
+ - `msgspec.Struct` for API response types; `dataclass` for internal service types
38
+ - API types: `GH`/`Canvas`-prefixed. Domain types: unprefixed
39
+ - Error handling: `SystemExit` (config), `RuntimeError` (API/logic), `typer.Exit(code=1)` (CLI), `typer.Abort()` (user cancel)
40
+ - basedpyright strict — suppress with `# pyright: ignore[ruleCode]` (NOT `# type: ignore`)
41
+ - Lazy imports inside CLI command functions (keeps `cass --help` fast)
42
+ - `TYPE_CHECKING` guard for type-only imports in CLI modules
43
+
44
+ ## Gotchas
45
+
46
+ - `CanvasFile.content_type` uses `msgspec.field(name="content-type")` (hyphenated API field)
47
+ - Canvas assignment/tab IDs are strings, not ints
48
+ - GitHub Classroom URL `url_id` is the org ID, NOT the classroom API `gh_id` — cannot lookup by `url_id` directly
49
+
50
+ ## Linear
51
+
52
+ Project: **cass** — Team: **Ejolly** (EJO)
53
+
54
+ ```bash
55
+ linear list-issues --project "cass"
56
+ linear save-issue --title "Title" --team "Ejolly" --project "cass" --priority 2
57
+ linear save-issue --id EJO-321 --state "In Progress"
58
+ ```
cassroom-0.1.1/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Eshin Jolly
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,146 @@
1
+ Metadata-Version: 2.4
2
+ Name: cassroom
3
+ Version: 0.1.1
4
+ Summary: CLI grading toolkit for GitHub Classroom and Canvas LMS — track submissions, deadlines, and sync grades
5
+ Project-URL: Homepage, https://github.com/ejolly/cass
6
+ Project-URL: Repository, https://github.com/ejolly/cass
7
+ Project-URL: Documentation, https://ejolly.github.io/cass
8
+ Author-email: Eshin Jolly <eshin.jolly@gmail.com>
9
+ License-Expression: MIT
10
+ License-File: LICENSE
11
+ Keywords: canvas,cli,education,github-classroom,grading
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Environment :: Console
14
+ Classifier: Intended Audience :: Education
15
+ Classifier: License :: OSI Approved :: MIT License
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Programming Language :: Python :: 3.12
19
+ Classifier: Programming Language :: Python :: 3.13
20
+ Classifier: Topic :: Education
21
+ Requires-Python: >=3.11
22
+ Requires-Dist: httpx>=0.28.1
23
+ Requires-Dist: msgspec>=0.20.0
24
+ Requires-Dist: nicegui>=3.8.0
25
+ Requires-Dist: polars>=1.38.1
26
+ Requires-Dist: pytz>=2024.1
27
+ Requires-Dist: rich>=14.3.3
28
+ Requires-Dist: sqlite-utils>=3.39
29
+ Requires-Dist: typer>=0.24.1
30
+ Description-Content-Type: text/markdown
31
+
32
+ # cass
33
+
34
+ Grading toolkit for [Canvas LMS](https://www.instructure.com/canvas) and [GitHub Classroom](https://classroom.github.com/) — pull rosters, track submissions, edit grades, and push them back to Canvas.
35
+
36
+ All data lives in a local SQLite database (`cass.db`) alongside a version-trackable `cass.toml` config.
37
+
38
+ ## Prerequisites
39
+
40
+ - [uv](https://docs.astral.sh/uv/) (Python package manager)
41
+ - [GitHub CLI](https://cli.github.com/) (`gh`) — required for install and for GitHub Classroom features
42
+
43
+ ## Install
44
+
45
+ ```bash
46
+ # Check authentication with GitHub (one-time)
47
+ gh auth status
48
+
49
+ # Login if needed
50
+ gh auth login
51
+
52
+ # Install cass as a CLI tool
53
+ uv tool git+https://github.com/ejolly/cass.git
54
+ ```
55
+
56
+ To update to the latest version:
57
+
58
+ ```bash
59
+ uv tool git+https://github.com/ejolly/cass.git --reinstall
60
+ ```
61
+
62
+ After install, `cass` is available globally.
63
+
64
+ ## Get started
65
+
66
+ ### Setup (one-time)
67
+
68
+ ```bash
69
+ # Will ask you for canvas token and save to .canvastoken
70
+ cass init
71
+ ```
72
+
73
+ ### Pull latest data
74
+
75
+ ```bash
76
+ cass pull
77
+ ```
78
+
79
+ ### Open Viewer
80
+
81
+ ```bash
82
+ cass view
83
+ ```
84
+
85
+ - The only tables/spreadsheets you can edit in the viewer are Canvas Gradebook & Assignments
86
+ - Just double-click a cell to edit the value like in google-sheets. Changed cells will appear in orange.
87
+ - When you're done editing press (e.g. multiple cells) press **push** button in the top left to send updates to Canvas
88
+
89
+ ### CLI
90
+
91
+ Everything you can do from the viewer you (or Claude) can do from the CLI:
92
+
93
+ ```bash
94
+ cass init # interactive config setup
95
+ cass pull # fetch students, assignments, submissions
96
+ cass status # overview of local state and sync status
97
+ cass revert # discard pending local changes
98
+ cass push # preview + confirm pending Canvas changes
99
+ cass push --yes # skip confirmation
100
+
101
+ # Canvas management
102
+ cass canvas # course overview
103
+ cass canvas people # enrolled students
104
+ cass canvas modules # list / create / publish modules
105
+ cass canvas assignments # list / create assignments
106
+ cass canvas upload file.pdf
107
+ cass canvas announce "Title" "Body"
108
+
109
+ # Data management
110
+ # query also accepts --where, --order, and --limit
111
+ cass query students # roster
112
+ cass query assignments # assignment metadata
113
+ cass query submissions # submissions dataset
114
+ cass query gradebook # student x assignment matrix
115
+ cass query --sql "select count(*) from students"
116
+ cass backup # timestamped snapshot → backups/
117
+ cass backup --tag "pre-regrade"
118
+ cass restore backups/cass_2026-03-05.db
119
+ ```
120
+
121
+ Running `cass` with no arguments shows help.
122
+
123
+ ## Configuration
124
+
125
+ `cass.toml` lives in your project root. Canvas is required; GitHub Classroom is optional.
126
+
127
+ ```toml
128
+ [canvas]
129
+ base_url = "https://canvas.ucsd.edu"
130
+ course_id = 72335
131
+
132
+ # Optional — enables submission tracking and roster matching
133
+ [classroom]
134
+ id = 299058
135
+ org = "psyc-201"
136
+ ```
137
+
138
+ ## Development
139
+
140
+ ```bash
141
+ uv sync # install deps
142
+ uv run poe lint # ruff format + check, ty
143
+ uv run poe test # pytest
144
+ uv run poe install # install as global CLI tool
145
+ ```
146
+
@@ -0,0 +1,115 @@
1
+ # cass
2
+
3
+ Grading toolkit for [Canvas LMS](https://www.instructure.com/canvas) and [GitHub Classroom](https://classroom.github.com/) — pull rosters, track submissions, edit grades, and push them back to Canvas.
4
+
5
+ All data lives in a local SQLite database (`cass.db`) alongside a version-trackable `cass.toml` config.
6
+
7
+ ## Prerequisites
8
+
9
+ - [uv](https://docs.astral.sh/uv/) (Python package manager)
10
+ - [GitHub CLI](https://cli.github.com/) (`gh`) — required for install and for GitHub Classroom features
11
+
12
+ ## Install
13
+
14
+ ```bash
15
+ # Check authentication with GitHub (one-time)
16
+ gh auth status
17
+
18
+ # Login if needed
19
+ gh auth login
20
+
21
+ # Install cass as a CLI tool
22
+ uv tool git+https://github.com/ejolly/cass.git
23
+ ```
24
+
25
+ To update to the latest version:
26
+
27
+ ```bash
28
+ uv tool git+https://github.com/ejolly/cass.git --reinstall
29
+ ```
30
+
31
+ After install, `cass` is available globally.
32
+
33
+ ## Get started
34
+
35
+ ### Setup (one-time)
36
+
37
+ ```bash
38
+ # Will ask you for canvas token and save to .canvastoken
39
+ cass init
40
+ ```
41
+
42
+ ### Pull latest data
43
+
44
+ ```bash
45
+ cass pull
46
+ ```
47
+
48
+ ### Open Viewer
49
+
50
+ ```bash
51
+ cass view
52
+ ```
53
+
54
+ - The only tables/spreadsheets you can edit in the viewer are Canvas Gradebook & Assignments
55
+ - Just double-click a cell to edit the value like in google-sheets. Changed cells will appear in orange.
56
+ - When you're done editing press (e.g. multiple cells) press **push** button in the top left to send updates to Canvas
57
+
58
+ ### CLI
59
+
60
+ Everything you can do from the viewer you (or Claude) can do from the CLI:
61
+
62
+ ```bash
63
+ cass init # interactive config setup
64
+ cass pull # fetch students, assignments, submissions
65
+ cass status # overview of local state and sync status
66
+ cass revert # discard pending local changes
67
+ cass push # preview + confirm pending Canvas changes
68
+ cass push --yes # skip confirmation
69
+
70
+ # Canvas management
71
+ cass canvas # course overview
72
+ cass canvas people # enrolled students
73
+ cass canvas modules # list / create / publish modules
74
+ cass canvas assignments # list / create assignments
75
+ cass canvas upload file.pdf
76
+ cass canvas announce "Title" "Body"
77
+
78
+ # Data management
79
+ # query also accepts --where, --order, and --limit
80
+ cass query students # roster
81
+ cass query assignments # assignment metadata
82
+ cass query submissions # submissions dataset
83
+ cass query gradebook # student x assignment matrix
84
+ cass query --sql "select count(*) from students"
85
+ cass backup # timestamped snapshot → backups/
86
+ cass backup --tag "pre-regrade"
87
+ cass restore backups/cass_2026-03-05.db
88
+ ```
89
+
90
+ Running `cass` with no arguments shows help.
91
+
92
+ ## Configuration
93
+
94
+ `cass.toml` lives in your project root. Canvas is required; GitHub Classroom is optional.
95
+
96
+ ```toml
97
+ [canvas]
98
+ base_url = "https://canvas.ucsd.edu"
99
+ course_id = 72335
100
+
101
+ # Optional — enables submission tracking and roster matching
102
+ [classroom]
103
+ id = 299058
104
+ org = "psyc-201"
105
+ ```
106
+
107
+ ## Development
108
+
109
+ ```bash
110
+ uv sync # install deps
111
+ uv run poe lint # ruff format + check, ty
112
+ uv run poe test # pytest
113
+ uv run poe install # install as global CLI tool
114
+ ```
115
+
@@ -0,0 +1,93 @@
1
+ """cass — Classroom Assignment Sync CLI.
2
+
3
+ A workflow-oriented CLI for synchronizing local grading state with
4
+ Canvas LMS and GitHub Classroom. Local data lives in a per-project
5
+ SQLite database (`cass.db`).
6
+
7
+ Install: `uv tool install cass` or `uvx cass`.
8
+
9
+ ---
10
+
11
+ ## Top-level Commands
12
+
13
+ | Command | Description |
14
+ |---------|-------------|
15
+ | `cass status` | Show local data and Canvas sync status |
16
+ | `cass init` | Initialize a new project or check setup |
17
+ | `cass pull` | Fetch from APIs and update the local database |
18
+ | `cass push` | Preview and push pending local changes to Canvas |
19
+ | `cass revert` | Revert local changes since the last Canvas sync |
20
+ | `cass query` | Query curated datasets, with raw SQL as an escape hatch |
21
+ | `cass pull-repos` | Download or update student submission repos |
22
+ | `cass delete` | Delete the local database |
23
+ | `cass backup` | Save a timestamped copy of the database |
24
+ | `cass restore` | Replace the current database with a backup |
25
+ | `cass view` | Open the database in a browser-based viewer |
26
+
27
+ ## Canvas Commands (`cass canvas`)
28
+
29
+ | Command | Description |
30
+ |---------|-------------|
31
+ | `cass canvas` | Course overview with resource counts |
32
+ | `cass canvas people` | Show course roster with roles and emails |
33
+ | `cass canvas sync` | Sync `cass.toml` declarations to Canvas |
34
+
35
+ ### Modules (`cass canvas modules`)
36
+
37
+ | Command | Description |
38
+ |---------|-------------|
39
+ | `cass canvas modules` | List modules (with items) |
40
+ | `cass canvas modules create` | Create a new module |
41
+ | `cass canvas modules publish` | Publish a module |
42
+ | `cass canvas modules unpublish` | Unpublish a module |
43
+ | `cass canvas modules delete` | Delete a module |
44
+ | `cass canvas modules add-item` | Add an item to a module |
45
+
46
+ ### Assignments (`cass canvas assignments`)
47
+
48
+ | Command | Description |
49
+ |---------|-------------|
50
+ | `cass canvas assignments` | List assignments |
51
+ | `cass canvas assignments groups` | Show assignment groups with weights |
52
+ | `cass canvas assignments create` | Create a new assignment |
53
+ | `cass canvas assignments publish` | Publish an assignment |
54
+ | `cass canvas assignments unpublish` | Unpublish an assignment |
55
+ | `cass canvas assignments delete` | Delete an assignment |
56
+
57
+ ### Quizzes (`cass canvas quizzes`)
58
+
59
+ | Command | Description |
60
+ |---------|-------------|
61
+ | `cass canvas quizzes` | List quizzes |
62
+ | `cass canvas quizzes create` | Create a new quiz |
63
+ | `cass canvas quizzes publish` | Publish a quiz |
64
+ | `cass canvas quizzes unpublish` | Unpublish a quiz |
65
+ | `cass canvas quizzes delete` | Delete a quiz |
66
+
67
+ ### Files
68
+
69
+ | Command | Description |
70
+ |---------|-------------|
71
+ | `cass canvas files` | Show course files as a tree |
72
+ | `cass canvas upload` | Upload a file to the course |
73
+ | `cass canvas delete-file` | Delete a file from the course |
74
+
75
+ ### Announcements
76
+
77
+ | Command | Description |
78
+ |---------|-------------|
79
+ | `cass canvas announcements` | List course announcements |
80
+ | `cass canvas announce` | Create an announcement |
81
+ | `cass canvas update-announcement` | Update an announcement |
82
+ | `cass canvas delete-announcement` | Delete an announcement |
83
+
84
+ ### Tabs
85
+
86
+ | Command | Description |
87
+ |---------|-------------|
88
+ | `cass canvas tabs` | List course navigation tabs |
89
+ | `cass canvas show-tab` | Make a navigation tab visible |
90
+ | `cass canvas hide-tab` | Hide a navigation tab |
91
+ """
92
+
93
+ __version__ = "0.2.0"
@@ -0,0 +1,29 @@
1
+ """Actions — business logic for cass.
2
+
3
+ Cross-service matching, pull orchestration, and configuration.
4
+ """
5
+
6
+ from __future__ import annotations
7
+
8
+ __docformat__ = "google"
9
+
10
+ from .config import Config, get_config
11
+ from .matching import (
12
+ MatchResult,
13
+ find_candidates,
14
+ match_students,
15
+ normalize,
16
+ slug_match,
17
+ slugify,
18
+ )
19
+
20
+ __all__ = [
21
+ "Config",
22
+ "MatchResult",
23
+ "find_candidates",
24
+ "get_config",
25
+ "match_students",
26
+ "normalize",
27
+ "slug_match",
28
+ "slugify",
29
+ ]