mirror of
https://github.com/Code-For-Groningen/temmies.git
synced 2025-07-05 04:44:57 +02:00
Compare commits
2 Commits
2daee84d4f
...
v1.0.21
Author | SHA1 | Date | |
---|---|---|---|
54e086c93a
|
|||
667a388da4
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -3,6 +3,7 @@ config.py
|
||||
tests/
|
||||
pathfinding/
|
||||
test.py
|
||||
setup.py
|
||||
|
||||
#Doc env
|
||||
.docs_env
|
||||
@ -331,3 +332,4 @@ cython_debug/
|
||||
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
||||
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
||||
#.idea/
|
||||
project-hierarchy.txt
|
||||
|
@ -12,14 +12,14 @@ A python library which interacts with themis. Uses bs4. I'll try to end developm
|
||||
* [x] Log in
|
||||
* [x] Submit
|
||||
* [x] Bulk download of test cases and files
|
||||
* [ ] Submission status
|
||||
* [x] Submission status
|
||||
|
||||
## Docs
|
||||
[here](http://temmies.rtfd.io/).
|
||||
|
||||
## Possible continuations
|
||||
* [ ] Discord bot
|
||||
* [ ] CLI program
|
||||
* Discord bot
|
||||
* CLI program
|
||||
|
||||
## Thanks to
|
||||
* [Glitchcat](https://glitchcat.github.io/themis-api/), cool docs bro.
|
||||
|
@ -5,7 +5,7 @@ Creates the initial connection to Themis.
|
||||
|
||||
### Usage
|
||||
```python
|
||||
from temmies.Themis import Themis
|
||||
from temmies.themis import Themis
|
||||
|
||||
themis = Themis("s-number", "password")
|
||||
```
|
||||
@ -58,7 +58,6 @@ courses = year.all_courses()
|
||||
## `Course`
|
||||
### Usage
|
||||
```python
|
||||
|
||||
pf = year.get_course("Programming Fundamentals (for CS)")
|
||||
print(pf.info) # <- course info attribute
|
||||
assignments = pf.get_groups()
|
||||
|
1
temmies/__init__.py
Normal file
1
temmies/__init__.py
Normal file
@ -0,0 +1 @@
|
||||
from .themis import Themis
|
@ -4,9 +4,10 @@ Houses the Course class which is used to represent a course in a year.
|
||||
|
||||
from bs4 import BeautifulSoup
|
||||
from requests import Session
|
||||
from exercise_group import ExerciseGroup
|
||||
from exceptions.course_unavailable import CourseUnavailable
|
||||
from exceptions.illegal_action import IllegalAction
|
||||
|
||||
from .exercise_group import ExerciseGroup
|
||||
from .exceptions.course_unavailable import CourseUnavailable
|
||||
from .exceptions.illegal_action import IllegalAction
|
||||
|
||||
|
||||
class Course:
|
0
temmies/exceptions/__init__.py
Normal file
0
temmies/exceptions/__init__.py
Normal file
@ -7,8 +7,8 @@ Represents a group of exercises or a single exercise.
|
||||
from json import loads
|
||||
from time import sleep
|
||||
from bs4 import BeautifulSoup
|
||||
from exceptions.illegal_action import IllegalAction
|
||||
from submission import Submission
|
||||
from .exceptions.illegal_action import IllegalAction
|
||||
from .submission import Submission
|
||||
|
||||
class ExerciseGroup:
|
||||
"""
|
@ -4,7 +4,6 @@ File to define the submission class
|
||||
|
||||
from bs4 import BeautifulSoup
|
||||
|
||||
|
||||
class Submission:
|
||||
"""
|
||||
Submission class
|
@ -6,8 +6,8 @@ Main class for the Themis API
|
||||
import urllib3
|
||||
from requests import Session
|
||||
from bs4 import BeautifulSoup
|
||||
from year import Year
|
||||
from exceptions.illegal_action import IllegalAction
|
||||
from .year import Year
|
||||
from .exceptions.illegal_action import IllegalAction
|
||||
|
||||
|
||||
# Disable warnings
|
@ -5,8 +5,8 @@ Class which represents an academic year.
|
||||
from bs4 import BeautifulSoup
|
||||
from requests import Session
|
||||
|
||||
from course import Course
|
||||
from exceptions.course_unavailable import CourseUnavailable
|
||||
from .course import Course
|
||||
from .exceptions.course_unavailable import CourseUnavailable
|
||||
|
||||
|
||||
# Works
|
Reference in New Issue
Block a user