| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,5 @@ | |||
| 1 | 1 | Copyright (c) 2013-2016, Markus Unterwaditzer | |
| 2 | + Copyright (c) 2018, August Hörandl | ||
| 2 | 3 | ||
| 3 | 4 | Some rights reserved. | |
| 4 | 5 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,6 +2,27 @@ | |||
| 2 | 2 | Changelog | |
| 3 | 3 | ========= | |
| 4 | 4 | ||
| 5 | + * work in progress: | ||
| 6 | + | ||
| 7 | + * Dropped Python 2.6 support, added Python up to 3.7 | ||
| 8 | + | ||
| 9 | + * Code completion support for all objects | ||
| 10 | + | ||
| 11 | + * Added str() and reps() for all objects for easier debugging | ||
| 12 | + | ||
| 13 | + * Added new/missing API calls: | ||
| 14 | + | ||
| 15 | + * last_import_time | ||
| 16 | + * substitutions | ||
| 17 | + * timegrid_units | ||
| 18 | + * students | ||
| 19 | + * exam_types | ||
| 20 | + * exams | ||
| 21 | + * timetable_with_absences | ||
| 22 | + * class_reg_events | ||
| 23 | + | ||
| 24 | + * Code cleanup | ||
| 25 | + | ||
| 5 | 26 | * 0.1.9: | |
| 6 | 27 | ||
| 7 | 28 | * Add requests as a dependency and use it instead of urllib. Big security | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -30,8 +30,12 @@ Things you can do with the API | |||
| 30 | 30 | .. automethod:: subjects | |
| 31 | 31 | .. automethod:: teachers | |
| 32 | 32 | .. automethod:: statusdata | |
| 33 | - .. automethod:: lastImportTime | ||
| 33 | + .. automethod:: last_import_time | ||
| 34 | 34 | .. automethod:: substitutions | |
| 35 | - .. automethod:: timegridUnits | ||
| 35 | + .. automethod:: timegrid_units | ||
| 36 | 36 | .. automethod:: students | |
| 37 | + .. automethod:: exam_types | ||
| 38 | + .. automethod:: exams | ||
| 39 | + .. automethod:: timetable_with_absences | ||
| 40 | + .. automethod:: class_reg_events | ||
| 37 | 41 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -11,12 +11,6 @@ | |||
| 11 | 11 | ||
| 12 | 12 | dependencies = ['requests'] | |
| 13 | 13 | ||
| 14 | - if version_info < (2, 6): | ||
| 15 | - dependencies.append('simplejson') | ||
| 16 | - | ||
| 17 | - if version_info < (2, 7): | ||
| 18 | - dependencies.append('ordereddict') | ||
| 19 | - | ||
| 20 | 14 | setup( | |
| 21 | 15 | name='webuntis', | |
| 22 | 16 | version='0.1.9', | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -594,7 +594,7 @@ def lesson_types(self): | |||
| 594 | 594 | """A list of :py:class:`ColorInfo` objects, containing | |
| 595 | 595 | information about all lesson types defined | |
| 596 | 596 | ||
| 597 | - :rtype: List[ColorInfo] | ||
| 597 | + :rtype: `list` [ColorInfo] | ||
| 598 | 598 | """ | |
| 599 | 599 | return [ | |
| 600 | 600 | ColorInfo(parent=self, data=data) | |
@@ -606,7 +606,7 @@ def period_codes(self): | |||
| 606 | 606 | """A list of :py:class:`ColorInfo` objects, containing | |
| 607 | 607 | information about all period codes defined | |
| 608 | 608 | ||
| 609 | - :rtype: List[ColorInfo] | ||
| 609 | + :rtype: `list` [ColorInfo] | ||
| 610 | 610 | """ | |
| 611 | 611 | return [ | |
| 612 | 612 | ColorInfo(parent=self, data=data) | |
@@ -773,7 +773,7 @@ class ExamObject(Result): | |||
| 773 | 773 | ||
| 774 | 774 | # classes list of classes | |
| 775 | 775 | # teachers list of teachers | |
| 776 | - # students lsit of students | ||
| 776 | + # students list of students | ||
| 777 | 777 | # subject | |
| 778 | 778 | ||
| 779 | 779 | @lazyproperty | |
@@ -814,7 +814,7 @@ def teachers(self): | |||
| 814 | 814 | ||
| 815 | 815 | @lazyproperty | |
| 816 | 816 | def subject(self): | |
| 817 | - """A :py:class:`SubjectOject` with the subject which are topic of | ||
| 817 | + """A :py:class:`SubjectObject` with the subject which are topic of | ||
| 818 | 818 | this period.""" | |
| 819 | 819 | return self._session.subjects(from_cache=True).filter(id=self._data[u'subject'])[0] | |
| 820 | 820 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments