FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

stub file for objects · robquant/python-webuntis@2cc2646 · GitHub

Repository navigation

Commit 2cc2646

Browse files
committed
stub file for objects
1 parent 700389e commit 2cc2646

1 file changed

Lines changed: 373 additions & 0 deletions

File tree

‎webuntis/objects.pyi‎

Lines changed: 373 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,373 @@
1+
import datetime
2+
from typing import List, Tuple
3+
4+
from webuntis import Session
5+
6+
7+
class Result(object):
8+
9+
def __init__(self, data, parent: Result = None, session: Session = None):
10+
...
11+
12+
@property
13+
def id(self) -> int:
14+
...
15+
16+
def __int__(self) -> int:
17+
...
18+
19+
def __hash__(self) -> int:
20+
...
21+
22+
def __eq__(self, other) -> bool:
23+
...
24+
25+
def __str__(self) -> str:
26+
...
27+
28+
def __repr__(self) -> str:
29+
...
30+
31+
32+
class ListItem(Result):
33+
...
34+
35+
36+
class ListResult(Result):
37+
def filter(self, **criterions):
38+
...
39+
40+
def __contains__(self, criterion) -> bool:
41+
...
42+
43+
def __getitem__(self, i: int) -> ListItem:
44+
...
45+
46+
def __len__(self) -> int:
47+
...
48+
49+
50+
class ColorInfo(Result):
51+
52+
@property
53+
def backcolor(self) -> str:
54+
...
55+
56+
@property
57+
def forecolor(self) -> str:
58+
...
59+
60+
@property
61+
def name(self) -> str:
62+
...
63+
64+
65+
class DepartmentList(ListResult):
66+
67+
def filter(self, **criterions) -> DepartmentList:
68+
...
69+
70+
def __getitem__(self, i: int) -> DepartmentObject:
71+
...
72+
73+
74+
class DepartmentObject(ListItem):
75+
76+
@property
77+
def long_name(self) -> str:
78+
...
79+
80+
@property
81+
def name(self) -> str:
82+
...
83+
84+
85+
class HolidayList(ListResult):
86+
87+
def filter(self, **criterions) -> HolidayList:
88+
...
89+
90+
def __getitem__(self, i: int) -> HolidayObject:
91+
...
92+
93+
94+
class HolidayObject(ListItem):
95+
96+
@property
97+
def end(self) -> datetime.datetime:
98+
...
99+
100+
@property
101+
def name(self) -> str:
102+
...
103+
104+
@property
105+
def short_name(self) -> str:
106+
...
107+
108+
@property
109+
def start(self) -> datetime.datetime:
110+
...
111+
112+
113+
class KlassenList(ListResult):
114+
115+
def filter(self, **criterions) -> KlassenList:
116+
...
117+
118+
def __getitem__(self, i: int) -> KlassenObject:
119+
...
120+
121+
122+
class KlassenObject(ListItem):
123+
@property
124+
def long_name(self) -> str:
125+
...
126+
127+
@property
128+
def name(self) -> str:
129+
...
130+
131+
132+
class PeriodList(ListResult):
133+
134+
def filter(self, **criterions) -> PeriodList:
135+
...
136+
137+
def __getitem__(self, i: int) -> PeriodObject:
138+
...
139+
140+
def to_table(self) -> List[Tuple[datetime.time, List[Tuple[datetime.date, PeriodList]]]]:
141+
...
142+
143+
144+
class PeriodObject(ListItem):
145+
146+
@property
147+
def code(self) -> str:
148+
...
149+
150+
@property
151+
def end(self) -> datetime.datetime:
152+
...
153+
154+
@property
155+
def klassen(self) -> KlassenList:
156+
...
157+
158+
@property
159+
def original_rooms(self) -> RoomList:
160+
...
161+
162+
@property
163+
def original_teachers(self) -> TeacherList:
164+
...
165+
166+
@property
167+
def rooms(self) -> RoomList:
168+
...
169+
170+
@property
171+
def start(self) -> datetime.datetime:
172+
...
173+
174+
@property
175+
def subjects(self) -> SubjectList:
176+
...
177+
178+
@property
179+
def teachers(self) -> TeacherList:
180+
...
181+
182+
@property
183+
def type(self) -> str:
184+
...
185+
186+
187+
class RoomList(ListResult):
188+
189+
def filter(self, **criterions) -> RoomList:
190+
...
191+
192+
def __getitem__(self, i: int) -> RoomObject:
193+
...
194+
195+
196+
class RoomObject(ListItem):
197+
198+
@property
199+
def long_name(self) -> str:
200+
...
201+
202+
@property
203+
def name(self) -> str:
204+
...
205+
206+
207+
class SchoolyearList(ListResult):
208+
209+
def filter(self, **criterions) -> SchoolyearList:
210+
...
211+
212+
def __getitem__(self, i: int) -> SchoolyearObject:
213+
...
214+
215+
@property
216+
def current(self) -> str:
217+
...
218+
219+
220+
class SchoolyearObject(ListItem):
221+
222+
@property
223+
def end(self) -> datetime.datetime:
224+
...
225+
226+
@property
227+
def is_current(self) -> bool:
228+
...
229+
230+
@property
231+
def name(self) -> str:
232+
...
233+
234+
@property
235+
def start(self) -> datetime.datetime:
236+
...
237+
238+
239+
class StatusData(Result):
240+
241+
@property
242+
def lesson_types(self) -> List[ColorInfo]:
243+
...
244+
245+
@property
246+
def period_codes(self) -> List[ColorInfo]:
247+
...
248+
249+
250+
class SubjectList(ListResult):
251+
252+
def filter(self, **criterions) -> SubjectList:
253+
...
254+
255+
def __getitem__(self, i: int) -> SubjectObject:
256+
...
257+
258+
259+
class SubjectObject(ListItem):
260+
261+
@property
262+
def long_name(self) -> str:
263+
...
264+
265+
@property
266+
def name(self) -> str:
267+
...
268+
269+
270+
class SubstitutionList(ListResult):
271+
272+
def filter(self, **criterions) -> SubstitutionList:
273+
...
274+
275+
def __getitem__(self, i: int) -> SubstitutionObject:
276+
...
277+
278+
279+
class SubstitutionObject(PeriodObject):
280+
281+
@property
282+
def reschedule_end(self) -> datetime.datetime:
283+
...
284+
285+
@property
286+
def reschedule_start(self) -> datetime.datetime:
287+
...
288+
289+
@property
290+
def type(self) -> str:
291+
...
292+
293+
294+
class TeacherList(ListResult):
295+
296+
def filter(self, **criterions) -> TeacherList:
297+
...
298+
299+
def __getitem__(self, i: int) -> TeacherObject:
300+
...
301+
302+
303+
class TeacherObject(ListItem):
304+
305+
@property
306+
def fore_name(self) -> str:
307+
...
308+
309+
@property
310+
def full_name(self) -> str:
311+
...
312+
313+
@property
314+
def long_name(self) -> str:
315+
...
316+
317+
@property
318+
def name(self) -> str:
319+
...
320+
321+
@property
322+
def surname(self) -> str:
323+
...
324+
325+
@property
326+
def title(self) -> str:
327+
...
328+
329+
330+
class TimeStampObject(Result):
331+
332+
@property
333+
def date(self) -> datetime.datetime:
334+
...
335+
336+
337+
class TimeUnitObject(Result):
338+
339+
@property
340+
def end(self) -> datetime.datetime:
341+
...
342+
343+
@property
344+
def name(self) -> str:
345+
...
346+
347+
@property
348+
def start(self) -> datetime.datetime:
349+
...
350+
351+
352+
class TimegridDayObject(Result):
353+
354+
@property
355+
def day(self) -> str:
356+
...
357+
358+
@property
359+
def dayname(self) -> str:
360+
...
361+
362+
@property
363+
def timeUnits(self) -> List[TimeUnitObject]:
364+
...
365+
366+
367+
class TimegridObject(ListResult):
368+
369+
def filter(self, **criterions) -> TimegridObject:
370+
...
371+
372+
def __getitem__(self, i: int) -> TimegridDayObject:
373+
...

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL