librus-python-api 1.8.4__py3-none-any.whl → 1.9.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- librus_python_api/__init__.py +3 -1
- librus_python_api/config.py +14 -2
- librus_python_api/diagnostics.py +2 -1
- librus_python_api/grade_records.py +100 -6
- librus_python_api/inspect_page.py +1 -0
- librus_python_api/models.py +44 -0
- librus_python_api/service.py +19 -13
- {librus_python_api-1.8.4.dist-info → librus_python_api-1.9.0.dist-info}/METADATA +8 -5
- {librus_python_api-1.8.4.dist-info → librus_python_api-1.9.0.dist-info}/RECORD +11 -11
- {librus_python_api-1.8.4.dist-info → librus_python_api-1.9.0.dist-info}/WHEEL +0 -0
- {librus_python_api-1.8.4.dist-info → librus_python_api-1.9.0.dist-info}/licenses/LICENSE +0 -0
librus_python_api/__init__.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"""Independent bounded async client. General live compatibility is unqualified."""
|
|
2
2
|
|
|
3
3
|
# Before the imports: config reads it for the User-Agent.
|
|
4
|
-
__version__ = "1.
|
|
4
|
+
__version__ = "1.9.0"
|
|
5
5
|
|
|
6
6
|
from librus_python_api.attachments import AttachmentStream, ModernAttachmentStream
|
|
7
7
|
from librus_python_api.budget import RequestBudget
|
|
@@ -53,6 +53,7 @@ from librus_python_api.models import (
|
|
|
53
53
|
FrequencyMeasure,
|
|
54
54
|
GatewayAttendance,
|
|
55
55
|
GatewayAttendanceRecord,
|
|
56
|
+
GradeCorrection,
|
|
56
57
|
GradeKind,
|
|
57
58
|
GradeRecords,
|
|
58
59
|
Grades,
|
|
@@ -258,6 +259,7 @@ __all__ = [
|
|
|
258
259
|
"DescriptiveGradeSummary",
|
|
259
260
|
"FinalGrades",
|
|
260
261
|
"FormativeGrade",
|
|
262
|
+
"GradeCorrection",
|
|
261
263
|
"GradeKind",
|
|
262
264
|
"GradeRecords",
|
|
263
265
|
"Grades",
|
librus_python_api/config.py
CHANGED
|
@@ -724,8 +724,10 @@ GRADE_INLINE_DETAIL_LABEL = "Ocena"
|
|
|
724
724
|
# multi-line grade comment was observed on 2026-10-27. A formative mirror's
|
|
725
725
|
# assessment text after `Ocena` also spans lines (2026-11-08, markup.py).
|
|
726
726
|
TOOLTIP_MULTILINE_LABELS = frozenset({"Komentarz"})
|
|
727
|
-
# Labels a tooltip may repeat.
|
|
728
|
-
# `Poprawa oceny`
|
|
727
|
+
# Labels a tooltip may repeat. In the week view a correction listed
|
|
728
|
+
# `Poprawa oceny` twice, both naming the same original grade, the first ending
|
|
729
|
+
# in a comma; the all view showed it once (2026-11-08). The tooltip is no
|
|
730
|
+
# record of which grades were corrected: correction brackets are.
|
|
729
731
|
TOOLTIP_REPEATABLE_LABELS = frozenset({"Poprawa oceny"})
|
|
730
732
|
# Tooltip labels observed on grade, attendance and point pages. Diagnostics
|
|
731
733
|
# show only these by name; any other label is masked as teacher-entered text.
|
|
@@ -769,6 +771,12 @@ GRADE_VIEW_FIELDS = MappingProxyType(
|
|
|
769
771
|
)
|
|
770
772
|
GRADE_CURRENT_HEADER = "Oceny bieżące"
|
|
771
773
|
GRADE_EMPTY_MARKERS = frozenset({"", "-", "Brak ocen"})
|
|
774
|
+
# The all view wraps a corrected grade and its correction in a bare <span>
|
|
775
|
+
# directly in the grade cell: its text is "[", its children are the grade
|
|
776
|
+
# boxes in page order (original first) and the last box's tail is "]" (owner
|
|
777
|
+
# logins, structure-only, 2026-11-08). The week view showed no brackets, even
|
|
778
|
+
# with the original in the same cell. Groups of more than two are accepted.
|
|
779
|
+
GRADE_CORRECTION_BRACKETS = ("[", "]")
|
|
772
780
|
GRADE_AVERAGE_HEADERS = MappingProxyType(
|
|
773
781
|
{"Średnia ocen": 1, "Średnia ocen z drugiego okresu": 2, "Średnia roczna": 0}
|
|
774
782
|
)
|
|
@@ -871,6 +879,10 @@ BEHAVIOUR_POINTS_DETAIL_PATH_PREFIX = "/przegladaj_oceny/zachowanie_szczegoly/"
|
|
|
871
879
|
BEHAVIOUR_GRADE_LABELS = frozenset({"Data wystawienia", "Dodał", "Komentarz"})
|
|
872
880
|
# Recognition only: point-grade detail links are classified, never requested.
|
|
873
881
|
POINT_GRADE_DETAIL_PATH_PREFIX = "/przegladaj_oceny_punktowe/szczegoly/"
|
|
882
|
+
# Recognition only: an ordinary grade's own detail link gives its stable grade
|
|
883
|
+
# ID (librus-mcp#88); the page is never requested. Formative links share this
|
|
884
|
+
# prefix but have no digits-only rest, so they never yield a grade ID.
|
|
885
|
+
GRADE_DETAIL_PATH_PREFIX = "/przegladaj_oceny/szczegoly/"
|
|
874
886
|
FORMATIVE_HEADERS = (
|
|
875
887
|
"przedmiot",
|
|
876
888
|
"ocena kształtująca",
|
librus_python_api/diagnostics.py
CHANGED
|
@@ -245,7 +245,8 @@ def _redaction_vocabulary() -> tuple[
|
|
|
245
245
|
# Lazy: config imports models, which this module also imports.
|
|
246
246
|
from librus_python_api import config
|
|
247
247
|
|
|
248
|
-
texts = set(config.GRADE_EMPTY_MARKERS) |
|
|
248
|
+
texts = set(config.GRADE_EMPTY_MARKERS) | set(config.GRADE_CORRECTION_BRACKETS)
|
|
249
|
+
texts |= {
|
|
249
250
|
config.GRADE_CURRENT_HEADER,
|
|
250
251
|
config.GRADE_INLINE_DETAIL_LABEL,
|
|
251
252
|
config.GRADE_PREDICTED_ANNUAL_HEADER,
|
|
@@ -13,6 +13,7 @@ from librus_python_api.config import (
|
|
|
13
13
|
FORMATIVE_DETAIL_PATH_PREFIX,
|
|
14
14
|
GRADE_AVERAGE_HEADERS,
|
|
15
15
|
GRADE_BODY_PREFIX_COLUMNS,
|
|
16
|
+
GRADE_CORRECTION_BRACKETS,
|
|
16
17
|
GRADE_CURRENT_HEADER,
|
|
17
18
|
GRADE_EMPTY_MARKERS,
|
|
18
19
|
GRADE_INLINE_DETAIL_LABEL,
|
|
@@ -47,6 +48,7 @@ from librus_python_api.models import (
|
|
|
47
48
|
DescriptiveGrade,
|
|
48
49
|
DescriptiveGradeSummary,
|
|
49
50
|
FormativeGrade,
|
|
51
|
+
GradeCorrection,
|
|
50
52
|
GradeKind,
|
|
51
53
|
GradeRecords,
|
|
52
54
|
GradeSummaryValue,
|
|
@@ -216,6 +218,8 @@ class _Collection:
|
|
|
216
218
|
)
|
|
217
219
|
averages: list[SchoolAverage] = field(default_factory=list, repr=False)
|
|
218
220
|
point_results: list[SchoolAverage] = field(default_factory=list, repr=False)
|
|
221
|
+
corrections: list[GradeCorrection] = field(default_factory=list, repr=False)
|
|
222
|
+
corrected: set[str] = field(default_factory=set, repr=False)
|
|
219
223
|
subjects: set[tuple[bool, str]] = field(default_factory=set, repr=False)
|
|
220
224
|
point_subjects: set[str] = field(default_factory=set, repr=False)
|
|
221
225
|
consumed: set[html.HtmlElement] = field(default_factory=set, repr=False)
|
|
@@ -254,11 +258,89 @@ class _Collection:
|
|
|
254
258
|
|
|
255
259
|
|
|
256
260
|
def _boxes(cell: html.HtmlElement) -> list[html.HtmlElement]:
|
|
257
|
-
return [
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
261
|
+
return [node for node in cell.iter("span") if _is_box(node)]
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
def _is_box(node: html.HtmlElement) -> bool:
|
|
265
|
+
return isinstance(node.tag, str) and "grade-box" in node.get("class", "").split()
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
def _brackets(
|
|
269
|
+
cell: html.HtmlElement, boxes: list[html.HtmlElement]
|
|
270
|
+
) -> list[list[html.HtmlElement]]:
|
|
271
|
+
"""The correction brackets of a grade cell, each its grade boxes in order.
|
|
272
|
+
|
|
273
|
+
A bracket is a bare <span> directly in the cell whose text is "[", whose
|
|
274
|
+
element children are two or more grade boxes, and whose last child's tail
|
|
275
|
+
is "]" (config.GRADE_CORRECTION_BRACKETS); comments are ignored. Any other
|
|
276
|
+
bracket text outside grade boxes, such as an unbalanced or nested bracket,
|
|
277
|
+
fails the read instead of dropping a correction link.
|
|
278
|
+
"""
|
|
279
|
+
opening, closing = GRADE_CORRECTION_BRACKETS
|
|
280
|
+
inside = set(boxes)
|
|
281
|
+
outside = [cell.text or ""]
|
|
282
|
+
pending = list(cell)
|
|
283
|
+
while pending:
|
|
284
|
+
node = pending.pop()
|
|
285
|
+
outside.append(node.tail or "")
|
|
286
|
+
if node not in inside and isinstance(node.tag, str):
|
|
287
|
+
outside.append(node.text or "")
|
|
288
|
+
pending.extend(node)
|
|
289
|
+
marks = sum(text.count(opening) + text.count(closing) for text in outside)
|
|
290
|
+
if not marks:
|
|
291
|
+
return []
|
|
292
|
+
groups = []
|
|
293
|
+
for wrapper in cell:
|
|
294
|
+
if wrapper.tag != "span" or wrapper.attrib:
|
|
295
|
+
continue
|
|
296
|
+
if (wrapper.text or "").strip() != opening:
|
|
297
|
+
continue
|
|
298
|
+
children = list(wrapper)
|
|
299
|
+
members = [child for child in children if isinstance(child.tag, str)]
|
|
300
|
+
if (
|
|
301
|
+
len(members) < 2
|
|
302
|
+
or not all(member in inside for member in members)
|
|
303
|
+
or any((child.tail or "").strip() for child in children[:-1])
|
|
304
|
+
or (children[-1].tail or "").strip() != closing
|
|
305
|
+
):
|
|
306
|
+
raise LibrusError(ErrorKind.PARSE)
|
|
307
|
+
groups.append(members)
|
|
308
|
+
if marks != 2 * len(groups):
|
|
309
|
+
raise LibrusError(ErrorKind.PARSE)
|
|
310
|
+
return groups
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
def _read_corrections(
|
|
314
|
+
groups: list[list[html.HtmlElement]],
|
|
315
|
+
ids: dict[html.HtmlElement, str | None],
|
|
316
|
+
subject: str,
|
|
317
|
+
period: Literal[0, 1, 2],
|
|
318
|
+
collection: _Collection,
|
|
319
|
+
*,
|
|
320
|
+
points: bool,
|
|
321
|
+
) -> None:
|
|
322
|
+
for boxes in groups:
|
|
323
|
+
members = [ids.get(box) for box in boxes]
|
|
324
|
+
if any(member is None for member in members):
|
|
325
|
+
# Only ordinary grades with their own detail link were observed.
|
|
326
|
+
raise LibrusError(ErrorKind.PARSE)
|
|
327
|
+
correction = GradeCorrection(
|
|
328
|
+
subject, period, tuple(cast(str, member) for member in members)
|
|
329
|
+
)
|
|
330
|
+
if points:
|
|
331
|
+
# Brackets were not observed in the point table. Only a period
|
|
332
|
+
# grade it shows again, already read from the ordinary table, is
|
|
333
|
+
# accepted, as one link like its record.
|
|
334
|
+
if correction not in collection.corrections:
|
|
335
|
+
raise LibrusError(ErrorKind.PARSE)
|
|
336
|
+
continue
|
|
337
|
+
grade_ids = correction.grade_ids
|
|
338
|
+
if len(set(grade_ids)) != len(grade_ids) or not collection.corrected.isdisjoint(
|
|
339
|
+
grade_ids
|
|
340
|
+
):
|
|
341
|
+
raise LibrusError(ErrorKind.PARSE)
|
|
342
|
+
collection.corrected.update(grade_ids)
|
|
343
|
+
collection.corrections.append(correction)
|
|
262
344
|
|
|
263
345
|
|
|
264
346
|
def _behaviour_points(cell: html.HtmlElement, collection: _Collection) -> bool:
|
|
@@ -314,8 +396,11 @@ def _entries(
|
|
|
314
396
|
kind: GradeKind = GradeKind.CURRENT,
|
|
315
397
|
descriptive: bool = False,
|
|
316
398
|
require_empty_marker: bool = True,
|
|
399
|
+
points: bool = False,
|
|
317
400
|
) -> None:
|
|
318
401
|
boxes = _boxes(cell)
|
|
402
|
+
groups = _brackets(cell, boxes) if boxes else []
|
|
403
|
+
ids: dict[html.HtmlElement, str | None] = {}
|
|
319
404
|
if (
|
|
320
405
|
not boxes
|
|
321
406
|
and require_empty_marker
|
|
@@ -376,14 +461,17 @@ def _entries(
|
|
|
376
461
|
href,
|
|
377
462
|
)
|
|
378
463
|
)
|
|
464
|
+
ids[box] = collection.descriptive[-1].grade_id
|
|
379
465
|
else:
|
|
380
466
|
collection.numeric.append(record)
|
|
467
|
+
ids[box] = record.grade_id
|
|
381
468
|
else:
|
|
382
469
|
collection.descriptive.append(
|
|
383
470
|
_descriptive(box, descriptions[0], subject, period, kind)
|
|
384
471
|
)
|
|
385
472
|
collection.consumed.add(box)
|
|
386
473
|
collection.check_size()
|
|
474
|
+
_read_corrections(groups, ids, subject, period, collection, points=points)
|
|
387
475
|
|
|
388
476
|
|
|
389
477
|
def _descriptive_row(cells: list[html.HtmlElement]) -> bool:
|
|
@@ -486,7 +574,11 @@ def _read_numeric_table(
|
|
|
486
574
|
):
|
|
487
575
|
start = len(collection.numeric)
|
|
488
576
|
_entries(
|
|
489
|
-
columns[index],
|
|
577
|
+
columns[index],
|
|
578
|
+
subject,
|
|
579
|
+
cast(Literal[1, 2], period),
|
|
580
|
+
collection,
|
|
581
|
+
points=points,
|
|
490
582
|
)
|
|
491
583
|
# A point entry without its detail link would pass as a
|
|
492
584
|
# grade symbol; an unseen link layout fails instead. The
|
|
@@ -509,6 +601,7 @@ def _read_numeric_table(
|
|
|
509
601
|
collection,
|
|
510
602
|
kind=kind,
|
|
511
603
|
require_empty_marker=False,
|
|
604
|
+
points=points,
|
|
512
605
|
)
|
|
513
606
|
collection.numeric[start:] = [
|
|
514
607
|
record for record in collection.numeric[start:] if record not in prior
|
|
@@ -674,4 +767,5 @@ def read_grade_records(document: html.HtmlElement) -> GradeRecords:
|
|
|
674
767
|
tuple(collection.descriptive_summaries),
|
|
675
768
|
formative,
|
|
676
769
|
tuple(collection.point_results),
|
|
770
|
+
tuple(collection.corrections),
|
|
677
771
|
)
|
|
@@ -42,6 +42,7 @@ def _grades(body: bytes) -> dict[str, int]:
|
|
|
42
42
|
"averages": len(records.averages),
|
|
43
43
|
"point_results": len(records.point_results),
|
|
44
44
|
"formative": len(records.formative),
|
|
45
|
+
"corrections": len(records.corrections),
|
|
45
46
|
"descriptive_table": int(table is not None),
|
|
46
47
|
"descriptive_table_filled": int(table is not None and table.filled),
|
|
47
48
|
}
|
librus_python_api/models.py
CHANGED
|
@@ -1070,6 +1070,20 @@ class NumericGrade:
|
|
|
1070
1070
|
|
|
1071
1071
|
return detail_id(self.href, POINT_GRADE_DETAIL_PATH_PREFIX)
|
|
1072
1072
|
|
|
1073
|
+
@property
|
|
1074
|
+
def grade_id(self) -> str | None:
|
|
1075
|
+
"""The grade's own Librus ID when `href` is an ordinary grade detail link.
|
|
1076
|
+
|
|
1077
|
+
Stable across reads and views, so it identifies one grade even when
|
|
1078
|
+
two share value, category and day. None for formative, point and
|
|
1079
|
+
behaviour links, and for entries without a link. Computed for the same
|
|
1080
|
+
identity reason as `formative_id`.
|
|
1081
|
+
"""
|
|
1082
|
+
from librus_python_api.config import GRADE_DETAIL_PATH_PREFIX
|
|
1083
|
+
from librus_python_api.markup import detail_id
|
|
1084
|
+
|
|
1085
|
+
return detail_id(self.href, GRADE_DETAIL_PATH_PREFIX)
|
|
1086
|
+
|
|
1073
1087
|
|
|
1074
1088
|
@dataclass(frozen=True, slots=True)
|
|
1075
1089
|
class DescriptiveGrade:
|
|
@@ -1096,6 +1110,17 @@ class DescriptiveGrade:
|
|
|
1096
1110
|
|
|
1097
1111
|
return detail_id(self.href, FORMATIVE_DETAIL_PATH_PREFIX)
|
|
1098
1112
|
|
|
1113
|
+
@property
|
|
1114
|
+
def grade_id(self) -> str | None:
|
|
1115
|
+
"""The grade's own Librus ID when `href` is an ordinary grade detail link.
|
|
1116
|
+
|
|
1117
|
+
Computed, like `NumericGrade.grade_id`, so identities stay unchanged.
|
|
1118
|
+
"""
|
|
1119
|
+
from librus_python_api.config import GRADE_DETAIL_PATH_PREFIX
|
|
1120
|
+
from librus_python_api.markup import detail_id
|
|
1121
|
+
|
|
1122
|
+
return detail_id(self.href, GRADE_DETAIL_PATH_PREFIX)
|
|
1123
|
+
|
|
1099
1124
|
|
|
1100
1125
|
@dataclass(frozen=True, slots=True)
|
|
1101
1126
|
class SchoolAverage:
|
|
@@ -1131,6 +1156,21 @@ class FormativeGrade:
|
|
|
1131
1156
|
detail_id: str = field(repr=False)
|
|
1132
1157
|
|
|
1133
1158
|
|
|
1159
|
+
@dataclass(frozen=True, slots=True)
|
|
1160
|
+
class GradeCorrection:
|
|
1161
|
+
"""Grades the all view shows in one correction bracket, in page order.
|
|
1162
|
+
|
|
1163
|
+
`grade_ids` holds at least two `grade_id`s: the first is the corrected
|
|
1164
|
+
original and each later grade corrects the ones before it, so the last is
|
|
1165
|
+
the latest correction. Read from the bracket markup alone, never inferred
|
|
1166
|
+
from `Poprawa oceny` tooltip lines, which name no grade ID.
|
|
1167
|
+
"""
|
|
1168
|
+
|
|
1169
|
+
subject: str = field(repr=False)
|
|
1170
|
+
semester: Literal[0, 1, 2]
|
|
1171
|
+
grade_ids: tuple[str, ...] = field(repr=False)
|
|
1172
|
+
|
|
1173
|
+
|
|
1134
1174
|
@dataclass(frozen=True, slots=True)
|
|
1135
1175
|
class GradeRecords:
|
|
1136
1176
|
numeric: tuple[NumericGrade, ...] = field(repr=False)
|
|
@@ -1143,6 +1183,8 @@ class GradeRecords:
|
|
|
1143
1183
|
# A point table's period results, on its score scale; never merged into
|
|
1144
1184
|
# `averages`, whose values are the ordinary grade-scale means.
|
|
1145
1185
|
point_results: tuple[SchoolAverage, ...] = field(default=(), repr=False)
|
|
1186
|
+
# The page's correction brackets; only the all view was seen to show them.
|
|
1187
|
+
corrections: tuple[GradeCorrection, ...] = field(default=(), repr=False)
|
|
1146
1188
|
|
|
1147
1189
|
|
|
1148
1190
|
@dataclass(frozen=True, slots=True)
|
|
@@ -1163,6 +1205,8 @@ class GradeWindow:
|
|
|
1163
1205
|
observation: Observation
|
|
1164
1206
|
view: GradeView = GradeView.ALL
|
|
1165
1207
|
formative: tuple[FormativeGrade, ...] = field(default=(), repr=False)
|
|
1208
|
+
# Each correction with at least one of its grades in the window, whole.
|
|
1209
|
+
corrections: tuple[GradeCorrection, ...] = field(default=(), repr=False)
|
|
1166
1210
|
|
|
1167
1211
|
|
|
1168
1212
|
@dataclass(frozen=True, slots=True)
|
librus_python_api/service.py
CHANGED
|
@@ -1330,6 +1330,12 @@ class AccountClient:
|
|
|
1330
1330
|
becomes undated summaries with no extra request; any other layout
|
|
1331
1331
|
fails the read. Only the all view with empty hooks adds that table's
|
|
1332
1332
|
grades from the gateway: three more reads, five when there are grades.
|
|
1333
|
+
|
|
1334
|
+
`records.corrections` links a corrected grade to its corrections by
|
|
1335
|
+
`grade_id`, read from the page's correction brackets. Only the all view
|
|
1336
|
+
was seen to show them; in the week view it came back empty, which does
|
|
1337
|
+
not mean nothing was corrected. A bracket in a layout not seen live
|
|
1338
|
+
fails the read instead of dropping the link.
|
|
1333
1339
|
"""
|
|
1334
1340
|
form = grade_view_form(view)
|
|
1335
1341
|
|
|
@@ -1363,26 +1369,26 @@ class AccountClient:
|
|
|
1363
1369
|
result = await self.grades(
|
|
1364
1370
|
view=view, budget=budget, max_age_seconds=max_age_seconds
|
|
1365
1371
|
)
|
|
1372
|
+
|
|
1373
|
+
def within(day: date) -> bool:
|
|
1374
|
+
return (start is None or start <= day) and (end is None or day <= end)
|
|
1375
|
+
|
|
1376
|
+
numeric = tuple(g for g in result.records.numeric if within(g.day))
|
|
1377
|
+
descriptive = tuple(g for g in result.records.descriptive if within(g.day))
|
|
1378
|
+
visible = {g.grade_id for g in numeric} | {g.grade_id for g in descriptive}
|
|
1366
1379
|
return GradeWindow(
|
|
1367
1380
|
result.identity,
|
|
1368
1381
|
start,
|
|
1369
1382
|
end,
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
for g in result.records.numeric
|
|
1373
|
-
if (start is None or start <= g.day) and (end is None or g.day <= end)
|
|
1374
|
-
),
|
|
1375
|
-
tuple(
|
|
1376
|
-
g
|
|
1377
|
-
for g in result.records.descriptive
|
|
1378
|
-
if (start is None or start <= g.day) and (end is None or g.day <= end)
|
|
1379
|
-
),
|
|
1383
|
+
numeric,
|
|
1384
|
+
descriptive,
|
|
1380
1385
|
result.observation,
|
|
1381
1386
|
result.view,
|
|
1387
|
+
tuple(g for g in result.records.formative if within(g.day)),
|
|
1382
1388
|
tuple(
|
|
1383
|
-
|
|
1384
|
-
for
|
|
1385
|
-
if
|
|
1389
|
+
group
|
|
1390
|
+
for group in result.records.corrections
|
|
1391
|
+
if not visible.isdisjoint(group.grade_ids)
|
|
1386
1392
|
),
|
|
1387
1393
|
)
|
|
1388
1394
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: librus-python-api
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.9.0
|
|
4
4
|
Summary: Independent bounded async Librus Synergia client
|
|
5
5
|
Project-URL: Repository, https://github.com/krzysztofbury/librus-python-api
|
|
6
6
|
Project-URL: Issues, https://github.com/krzysztofbury/librus-python-api/issues
|
|
@@ -42,8 +42,11 @@ private ACLs. Windows installations include `pywin32` and `tzdata` automatically
|
|
|
42
42
|
Network paths, reparse-point paths and unsafe storage permissions fail closed.
|
|
43
43
|
See [platform requirements](contracts/persistence.md#windows-disk-boundary-25).
|
|
44
44
|
|
|
45
|
-
**Status:** `1.
|
|
46
|
-
|
|
45
|
+
**Status:** `1.9.0` gives every ordinary grade its stable Librus ID (`grade_id`)
|
|
46
|
+
and links a corrected grade to its corrections, as the all view brackets them
|
|
47
|
+
(`GradeRecords.corrections`, [grade corrections](API.md#grade-ids-and-corrections-190)).
|
|
48
|
+
`1.8.4` reads multi-line formative assessment text and repeated
|
|
49
|
+
correction lines in grade tooltips, checks the new-schema grade table in every grade view and reports
|
|
47
50
|
missing calendar-consumption consent as `ConsentRequiredError`.
|
|
48
51
|
`1.8.3` reads behaviour grade symbols, filled descriptive
|
|
49
52
|
grade tables, the "Aktualnie brak ogłoszeń" page and absences excused
|
|
@@ -69,7 +72,7 @@ See [limitations](#supported-features-and-limitations) below.
|
|
|
69
72
|
Install the exact release from PyPI after its gated publication completes:
|
|
70
73
|
|
|
71
74
|
```sh
|
|
72
|
-
python -m pip install librus-python-api==1.
|
|
75
|
+
python -m pip install librus-python-api==1.9.0
|
|
73
76
|
```
|
|
74
77
|
|
|
75
78
|
Pin the exact version qualified by your application. Before publication, use a
|
|
@@ -85,7 +88,7 @@ python -m pip install .
|
|
|
85
88
|
To install a locally built wheel instead:
|
|
86
89
|
|
|
87
90
|
```sh
|
|
88
|
-
python -m pip install ./dist/librus_python_api-1.
|
|
91
|
+
python -m pip install ./dist/librus_python_api-1.9.0-py3-none-any.whl
|
|
89
92
|
```
|
|
90
93
|
|
|
91
94
|
No console script or background process is installed: import the library in your
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
librus_python_api/__init__.py,sha256=
|
|
1
|
+
librus_python_api/__init__.py,sha256=9xgFqtaiFwAwxIAfultdEYycukjcwRve8D0QAHg1SYg,6615
|
|
2
2
|
librus_python_api/_notification_bootstrap.py,sha256=18nzH0doXBNaZXCz-_ckIvRrlHTWV5Mm1t5m2-5eYGI,4669
|
|
3
3
|
librus_python_api/_notification_codec.py,sha256=hU6G3zGJ5fR8wfPC6fV2OqBKs-7XpT9eRnKO3FGsTzY,13451
|
|
4
4
|
librus_python_api/_storage.py,sha256=M_6ZAzN4zs7laOdKJBRH1I2rvy3pgqYgC_MZtsd2xtM,15893
|
|
@@ -12,22 +12,22 @@ librus_python_api/budget.py,sha256=8fvqT7eIxyVX2P2OBG27XsYHk_HbtSS4lzuecYpHtgs,2
|
|
|
12
12
|
librus_python_api/checkpoint.py,sha256=QBmG9GtpyaGRaFq-FXuGA3yR1BjuMFN9V3RTvvi_FNQ,1930
|
|
13
13
|
librus_python_api/class_free_days.py,sha256=IwoCgr-9ZgEYYQ6717s4cDpyFzbosHMzESMabXJLGqA,2422
|
|
14
14
|
librus_python_api/completed_lessons.py,sha256=ngGfBD6K4B6dR4elPYvNRvp40Q-GlrhUsUKqBbYY1KE,10727
|
|
15
|
-
librus_python_api/config.py,sha256=
|
|
15
|
+
librus_python_api/config.py,sha256=BjsBCKNlcz3fug9qFNyRpmBzlOXGovqET0UwblYOK9k,63259
|
|
16
16
|
librus_python_api/detail_fields.py,sha256=vDDi5sV-e30-42SF0hwAUoldiZ5wvYtb1UlLt03lBHw,1708
|
|
17
|
-
librus_python_api/diagnostics.py,sha256=
|
|
17
|
+
librus_python_api/diagnostics.py,sha256=YVCSuBCabP5B17IqFWx3-hUTwcc1QQO35e0JeiAWbAw,19087
|
|
18
18
|
librus_python_api/exceptions.py,sha256=x8_z5UTNmuRINTK4buLYiKdYcFA2w6GZP9ZXOL-OnRU,5531
|
|
19
19
|
librus_python_api/files.py,sha256=pQBsIJyfTOZDz83ZB-5fcd-nPMcxR1HJ155h4zTHmsA,9223
|
|
20
20
|
librus_python_api/formative_grades.py,sha256=VykwtGvViZVOJMwPH3Re1RTDCHMr1_m9_xHjZyaXDIQ,6452
|
|
21
21
|
librus_python_api/gateway_grades.py,sha256=uaCCz743aPlymAa6rDfRb0w2JFC2hJ4yis0hbKdqTeM,17663
|
|
22
22
|
librus_python_api/grade_parsers.py,sha256=ROfffkCP8yj5Q708TZdpp0PDTyVmoh6X7m0y2fyJcwg,11202
|
|
23
|
-
librus_python_api/grade_records.py,sha256=
|
|
23
|
+
librus_python_api/grade_records.py,sha256=piPzaoVrC5ulPEmnST_gJCb-0Z0edDk7bztMl_EQ6O4,29259
|
|
24
24
|
librus_python_api/homework_range.py,sha256=erYfvS6PhHU5XhnR6LkiLNy677hGVflY3UAuHOs-YUw,1663
|
|
25
|
-
librus_python_api/inspect_page.py,sha256
|
|
25
|
+
librus_python_api/inspect_page.py,sha256=-gRttdLigTM4jprXFpvYtg9hCzImOgL6wGuOAI2AzTs,5543
|
|
26
26
|
librus_python_api/lifecycle.py,sha256=XzA5CEdZFo7iL5IMUrawnRvf2m9BFe0OseP-fpQFaAE,856
|
|
27
27
|
librus_python_api/markup.py,sha256=TzGt8pRed2n--BpxFtLY0eq1wzdOhvKhehS50uPBi1o,7935
|
|
28
28
|
librus_python_api/message_content.py,sha256=v_qoEAoaYS0_9MQBaj57i5XnC7pzv_HHWefgTt4CNyM,9043
|
|
29
29
|
librus_python_api/messages.py,sha256=K9F8XVs1SojfFpdxxLV8gx9E0g81YxEHjigDzLHmDCg,10230
|
|
30
|
-
librus_python_api/models.py,sha256=
|
|
30
|
+
librus_python_api/models.py,sha256=EdfF6wElOO40Z7plLpzRmkwSrDZ9q5hb01Opy8M2rFs,43843
|
|
31
31
|
librus_python_api/modern_body.py,sha256=SocXJTyGm1Q_2owzh1PE1zcCB2kqZTz1KPJ2R4yMyoc,3895
|
|
32
32
|
librus_python_api/modern_mailbox.py,sha256=2jF9UnJZ5AF6dip-GrMcv_z2kSLpp87dIpVeXk9jMzA,20600
|
|
33
33
|
librus_python_api/modern_messages.py,sha256=qt2CXtrxCZQ-jTt0aQCD6ZaPAJQZXf0BxmvacPo9B0w,10653
|
|
@@ -44,10 +44,10 @@ librus_python_api/scheduler.py,sha256=3JplYxqvQdFz3aKXcoQUJHE9s3FPw_xRhQ2CPNLuQm
|
|
|
44
44
|
librus_python_api/school_reads.py,sha256=YHta7DmhjS5vSa4Djq8pzp01-2jhVfGOo1Mnc738rV4,15209
|
|
45
45
|
librus_python_api/school_year_archive.py,sha256=D0A1ywMKgoYgvi-d70__SFreMGvMb_72870Akkbb_m8,15492
|
|
46
46
|
librus_python_api/sending.py,sha256=Nvvk2r-6D6Us53a2fH5GW9PcA6bWEfuOvy6c3M5QVcE,4549
|
|
47
|
-
librus_python_api/service.py,sha256=
|
|
47
|
+
librus_python_api/service.py,sha256=OPb5b0mgRZEuiVLIta2D6FBBuc6AlsF0dEaxQAtom4w,103529
|
|
48
48
|
librus_python_api/timetable.py,sha256=tX1QK9fQABxzfLaHHqTe8e6rAgdOkCoTOfAHdPwNmLE,9836
|
|
49
49
|
librus_python_api/transport.py,sha256=yF-DnFy4xGYS_RWQ9161b9WJXOlYF8cFRgdjXmVVUIk,34988
|
|
50
|
-
librus_python_api-1.
|
|
51
|
-
librus_python_api-1.
|
|
52
|
-
librus_python_api-1.
|
|
53
|
-
librus_python_api-1.
|
|
50
|
+
librus_python_api-1.9.0.dist-info/METADATA,sha256=RrqvTD36E4WFTYMkRRweszWJ_BixUEPkwOJqGRcjK_k,14827
|
|
51
|
+
librus_python_api-1.9.0.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
52
|
+
librus_python_api-1.9.0.dist-info/licenses/LICENSE,sha256=IuerLb3cnZCsaB23znydjjvKqP-LmSJd3syKa9NGUts,1071
|
|
53
|
+
librus_python_api-1.9.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|