2 Commits

12 changed files with 17 additions and 15 deletions

2
.gitignore vendored
View File

@ -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

View File

@ -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.

View File

@ -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
View File

@ -0,0 +1 @@
from .themis import Themis

View File

@ -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:

View File

View 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:
"""

View File

@ -4,7 +4,6 @@ File to define the submission class
from bs4 import BeautifulSoup
class Submission:
"""
Submission class

View File

@ -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

View File

@ -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