skipera 1.0.0__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.
- skipera-1.0.0/LICENSE +21 -0
- skipera-1.0.0/PKG-INFO +95 -0
- skipera-1.0.0/README.md +77 -0
- skipera-1.0.0/pyproject.toml +29 -0
- skipera-1.0.0/setup.cfg +4 -0
- skipera-1.0.0/skipera/__init__.py +0 -0
- skipera-1.0.0/skipera/assessment/__init__.py +0 -0
- skipera-1.0.0/skipera/assessment/queries.py +909 -0
- skipera-1.0.0/skipera/assessment/solver.py +231 -0
- skipera-1.0.0/skipera/assessment/types.py +140 -0
- skipera-1.0.0/skipera/config.py +96 -0
- skipera-1.0.0/skipera/llm/__init__.py +0 -0
- skipera-1.0.0/skipera/llm/connector.py +70 -0
- skipera-1.0.0/skipera/main.py +125 -0
- skipera-1.0.0/skipera/watcher/__init__.py +0 -0
- skipera-1.0.0/skipera/watcher/watch.py +67 -0
- skipera-1.0.0/skipera.egg-info/PKG-INFO +95 -0
- skipera-1.0.0/skipera.egg-info/SOURCES.txt +20 -0
- skipera-1.0.0/skipera.egg-info/dependency_links.txt +1 -0
- skipera-1.0.0/skipera.egg-info/entry_points.txt +2 -0
- skipera-1.0.0/skipera.egg-info/requires.txt +6 -0
- skipera-1.0.0/skipera.egg-info/top_level.txt +1 -0
skipera-1.0.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 serv0id
|
|
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.
|
skipera-1.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: skipera
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Skip mandatory Coursera courses in seconds
|
|
5
|
+
License-Expression: MIT
|
|
6
|
+
Project-URL: Homepage, https://github.com/serv0id/skipera
|
|
7
|
+
Project-URL: Issues, https://github.com/serv0id/skipera/issues
|
|
8
|
+
Requires-Python: >=3.10
|
|
9
|
+
Description-Content-Type: text/markdown
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Requires-Dist: click>=8.0
|
|
12
|
+
Requires-Dist: loguru>=0.7
|
|
13
|
+
Requires-Dist: pydantic>=2.0
|
|
14
|
+
Requires-Dist: requests>=2.28
|
|
15
|
+
Requires-Dist: browser-cookie3>=0.19
|
|
16
|
+
Requires-Dist: google-genai
|
|
17
|
+
Dynamic: license-file
|
|
18
|
+
|
|
19
|
+
# skipera
|
|
20
|
+
<img width="96" height="96" alt="image" src="https://github.com/user-attachments/assets/8cf9428c-ef58-45b2-8fff-184ae353a890" />
|
|
21
|
+
|
|
22
|
+
Module to facilitate skipping Coursera (https://www.coursera.org/) videos and assessments.
|
|
23
|
+
|
|
24
|
+
## Why?
|
|
25
|
+
Skipera assists in automatically skip irrelevant MOOC courses which are made mandatory by universities.
|
|
26
|
+
Many of such courses are allotted directly by the university as credit fillers and are not in the interest of the student. The progress of the completion of these courses is tracked by the university and credits are allotted.
|
|
27
|
+
|
|
28
|
+
## How?
|
|
29
|
+
Skipera makes use of the Coursera web API and completes the videos + reading materials.
|
|
30
|
+
Graded assessments are completed with the assistance of an LLM API.
|
|
31
|
+
|
|
32
|
+
## Installation
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
pip install skipera
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Or install from source:
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
git clone https://github.com/serv0id/skipera
|
|
42
|
+
cd skipera
|
|
43
|
+
pip install .
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Configuration
|
|
47
|
+
|
|
48
|
+
On first run, skipera creates a config file at `~/.skipera/config.json`.
|
|
49
|
+
|
|
50
|
+
### Cookies (automatic)
|
|
51
|
+
|
|
52
|
+
If you're logged into Coursera in your browser (Chrome, Firefox, or Edge), skipera will automatically fetch the required cookies. Just run the command and it handles the rest. Expired cookies are also re-fetched automatically.
|
|
53
|
+
|
|
54
|
+
> **Note:** On Windows, Chrome must be closed for cookie fetching to work. On macOS, you may see a Keychain access prompt.
|
|
55
|
+
|
|
56
|
+
### Cookies (manual)
|
|
57
|
+
|
|
58
|
+
If automatic fetching doesn't work, you can manually add your cookies to the config file:
|
|
59
|
+
|
|
60
|
+
```json
|
|
61
|
+
{
|
|
62
|
+
"cookies": {
|
|
63
|
+
"CAUTH": "...",
|
|
64
|
+
"CSRF3-Token": "...",
|
|
65
|
+
"__204u": "..."
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
To find your cookies, follow the instructions given at https://github.com/serv0id/skipera/issues/1.
|
|
71
|
+
|
|
72
|
+
## Usage
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
skipera course-slug
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Where `course-slug` is from the Coursera URL. For example, if the URL is `https://www.coursera.org/learn/introduction-psychology/home/module/2`, run:
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
skipera introduction-psychology
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## LLM Support
|
|
85
|
+
|
|
86
|
+
If you wish to solve graded assignments automatically, add your Perplexity or Gemini API key to the config file and use the `--llm` flag:
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
skipera introduction-psychology --llm
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Note that an average 10 question assignment consumes ~5000 input tokens. If you wish to use another LLM through an API, please feel free to make a pull request or contact me.
|
|
93
|
+
|
|
94
|
+
Currently, only the single-choice and multiple-choice objective questions are supported in this mode. Note that you might
|
|
95
|
+
not always achieve passing marks due to the LLM hallucinating sometimes.
|
skipera-1.0.0/README.md
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# skipera
|
|
2
|
+
<img width="96" height="96" alt="image" src="https://github.com/user-attachments/assets/8cf9428c-ef58-45b2-8fff-184ae353a890" />
|
|
3
|
+
|
|
4
|
+
Module to facilitate skipping Coursera (https://www.coursera.org/) videos and assessments.
|
|
5
|
+
|
|
6
|
+
## Why?
|
|
7
|
+
Skipera assists in automatically skip irrelevant MOOC courses which are made mandatory by universities.
|
|
8
|
+
Many of such courses are allotted directly by the university as credit fillers and are not in the interest of the student. The progress of the completion of these courses is tracked by the university and credits are allotted.
|
|
9
|
+
|
|
10
|
+
## How?
|
|
11
|
+
Skipera makes use of the Coursera web API and completes the videos + reading materials.
|
|
12
|
+
Graded assessments are completed with the assistance of an LLM API.
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
pip install skipera
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Or install from source:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
git clone https://github.com/serv0id/skipera
|
|
24
|
+
cd skipera
|
|
25
|
+
pip install .
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Configuration
|
|
29
|
+
|
|
30
|
+
On first run, skipera creates a config file at `~/.skipera/config.json`.
|
|
31
|
+
|
|
32
|
+
### Cookies (automatic)
|
|
33
|
+
|
|
34
|
+
If you're logged into Coursera in your browser (Chrome, Firefox, or Edge), skipera will automatically fetch the required cookies. Just run the command and it handles the rest. Expired cookies are also re-fetched automatically.
|
|
35
|
+
|
|
36
|
+
> **Note:** On Windows, Chrome must be closed for cookie fetching to work. On macOS, you may see a Keychain access prompt.
|
|
37
|
+
|
|
38
|
+
### Cookies (manual)
|
|
39
|
+
|
|
40
|
+
If automatic fetching doesn't work, you can manually add your cookies to the config file:
|
|
41
|
+
|
|
42
|
+
```json
|
|
43
|
+
{
|
|
44
|
+
"cookies": {
|
|
45
|
+
"CAUTH": "...",
|
|
46
|
+
"CSRF3-Token": "...",
|
|
47
|
+
"__204u": "..."
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
To find your cookies, follow the instructions given at https://github.com/serv0id/skipera/issues/1.
|
|
53
|
+
|
|
54
|
+
## Usage
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
skipera course-slug
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Where `course-slug` is from the Coursera URL. For example, if the URL is `https://www.coursera.org/learn/introduction-psychology/home/module/2`, run:
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
skipera introduction-psychology
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## LLM Support
|
|
67
|
+
|
|
68
|
+
If you wish to solve graded assignments automatically, add your Perplexity or Gemini API key to the config file and use the `--llm` flag:
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
skipera introduction-psychology --llm
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Note that an average 10 question assignment consumes ~5000 input tokens. If you wish to use another LLM through an API, please feel free to make a pull request or contact me.
|
|
75
|
+
|
|
76
|
+
Currently, only the single-choice and multiple-choice objective questions are supported in this mode. Note that you might
|
|
77
|
+
not always achieve passing marks due to the LLM hallucinating sometimes.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=68.0"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "skipera"
|
|
7
|
+
version = "1.0.0"
|
|
8
|
+
description = "Skip mandatory Coursera courses in seconds"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = "MIT"
|
|
11
|
+
requires-python = ">=3.10"
|
|
12
|
+
dependencies = [
|
|
13
|
+
"click>=8.0",
|
|
14
|
+
"loguru>=0.7",
|
|
15
|
+
"pydantic>=2.0",
|
|
16
|
+
"requests>=2.28",
|
|
17
|
+
"browser-cookie3>=0.19",
|
|
18
|
+
"google-genai",
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
[project.scripts]
|
|
22
|
+
skipera = "skipera.main:main"
|
|
23
|
+
|
|
24
|
+
[project.urls]
|
|
25
|
+
Homepage = "https://github.com/serv0id/skipera"
|
|
26
|
+
Issues = "https://github.com/serv0id/skipera/issues"
|
|
27
|
+
|
|
28
|
+
[tool.setuptools.packages.find]
|
|
29
|
+
include = ["skipera*"]
|
skipera-1.0.0/setup.cfg
ADDED
|
File without changes
|
|
File without changes
|