2 Commits

12 changed files with 17 additions and 15 deletions

2
.gitignore vendored
View File

@ -3,6 +3,7 @@ config.py
tests/ tests/
pathfinding/ pathfinding/
test.py test.py
setup.py
#Doc env #Doc env
.docs_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 # 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. # option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/ #.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] Log in
* [x] Submit * [x] Submit
* [x] Bulk download of test cases and files * [x] Bulk download of test cases and files
* [ ] Submission status * [x] Submission status
## Docs ## Docs
[here](http://temmies.rtfd.io/). [here](http://temmies.rtfd.io/).
## Possible continuations ## Possible continuations
* [ ] Discord bot * Discord bot
* [ ] CLI program * CLI program
## Thanks to ## Thanks to
* [Glitchcat](https://glitchcat.github.io/themis-api/), cool docs bro. * [Glitchcat](https://glitchcat.github.io/themis-api/), cool docs bro.

View File

@ -5,7 +5,7 @@ Creates the initial connection to Themis.
### Usage ### Usage
```python ```python
from temmies.Themis import Themis from temmies.themis import Themis
themis = Themis("s-number", "password") themis = Themis("s-number", "password")
``` ```
@ -58,7 +58,6 @@ courses = year.all_courses()
## `Course` ## `Course`
### Usage ### Usage
```python ```python
pf = year.get_course("Programming Fundamentals (for CS)") pf = year.get_course("Programming Fundamentals (for CS)")
print(pf.info) # <- course info attribute print(pf.info) # <- course info attribute
assignments = pf.get_groups() 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 bs4 import BeautifulSoup
from requests import Session from requests import Session
from exercise_group import ExerciseGroup
from exceptions.course_unavailable import CourseUnavailable from .exercise_group import ExerciseGroup
from exceptions.illegal_action import IllegalAction from .exceptions.course_unavailable import CourseUnavailable
from .exceptions.illegal_action import IllegalAction
class Course: class Course:

View File

View File

@ -7,8 +7,8 @@ Represents a group of exercises or a single exercise.
from json import loads from json import loads
from time import sleep from time import sleep
from bs4 import BeautifulSoup from bs4 import BeautifulSoup
from exceptions.illegal_action import IllegalAction from .exceptions.illegal_action import IllegalAction
from submission import Submission from .submission import Submission
class ExerciseGroup: class ExerciseGroup:
""" """

View File

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

View File

@ -6,8 +6,8 @@ Main class for the Themis API
import urllib3 import urllib3
from requests import Session from requests import Session
from bs4 import BeautifulSoup from bs4 import BeautifulSoup
from year import Year from .year import Year
from exceptions.illegal_action import IllegalAction from .exceptions.illegal_action import IllegalAction
# Disable warnings # Disable warnings

View File

@ -5,8 +5,8 @@ Class which represents an academic year.
from bs4 import BeautifulSoup from bs4 import BeautifulSoup
from requests import Session from requests import Session
from course import Course from .course import Course
from exceptions.course_unavailable import CourseUnavailable from .exceptions.course_unavailable import CourseUnavailable
# Works # Works