librus-python-api 1.11.4__tar.gz → 1.11.5__tar.gz
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-1.11.4 → librus_python_api-1.11.5}/API.md +3 -1
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/CHANGELOG.md +15 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/PKG-INFO +5 -4
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/README.md +4 -3
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/__init__.py +1 -1
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/config.py +3 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/markup.py +10 -3
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/models.py +4 -1
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/.gitignore +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/LICENSE +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/SECURITY.md +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/pyproject.toml +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/_notification_bootstrap.py +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/_notification_codec.py +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/_storage.py +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/_windows_filesystem.py +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/announcements.py +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/attachment_routes.py +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/attachments.py +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/attendance.py +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/attendance_frequency.py +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/budget.py +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/checkpoint.py +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/class_free_days.py +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/completed_lessons.py +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/detail_fields.py +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/diagnostics.py +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/exceptions.py +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/files.py +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/formative_grades.py +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/gateway_grades.py +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/grade_parsers.py +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/grade_records.py +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/homework_range.py +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/inspect_page.py +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/justifications.py +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/lifecycle.py +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/message_content.py +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/messages.py +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/modern_body.py +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/modern_mailbox.py +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/modern_messages.py +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/notification_models.py +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/notification_persistence.py +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/notification_workflow.py +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/notifications.py +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/parsers.py +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/parsing.py +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/persistence.py +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/py.typed +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/recipients.py +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/scheduler.py +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/school_reads.py +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/school_year_archive.py +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/sending.py +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/service.py +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/timetable.py +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/transport.py +0 -0
- {librus_python_api-1.11.4 → librus_python_api-1.11.5}/uv.lock +0 -0
|
@@ -440,7 +440,9 @@ school's login. See [gateway descriptive grades](contracts/grades.md#gateway-des
|
|
|
440
440
|
- `attendance_detail(detail_id)` takes a numeric string and returns ordered
|
|
441
441
|
`fields`, `notes` and stable-key `normalized_fields` (see below).
|
|
442
442
|
- `gateway_attendance()` returns the JSON records with a strict `AttendanceKind`
|
|
443
|
-
per stable type ID; unknown IDs stay `UNKNOWN`.
|
|
443
|
+
per stable type ID; unknown IDs stay `UNKNOWN`. A record's `identifier` is an
|
|
444
|
+
opaque token of up to 64 printable ASCII characters, not always digits
|
|
445
|
+
(1.11.5); it only detects duplicate records.
|
|
444
446
|
- `attendance_frequency()` returns per-semester and overall `FrequencyMeasure`
|
|
445
447
|
(attended, total, excluded and unknown counts, plus `ratio` in 0..1 or `None`).
|
|
446
448
|
Unknown types or an empty denominator give `ratio=None`, never 100 %.
|
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.11.5 (2026-11-23) - Parent logins: attendance frequency and long grade tooltips
|
|
4
|
+
|
|
5
|
+
The two failures left on a tester's parent login (librus-mcp#136):
|
|
6
|
+
|
|
7
|
+
- Attendance frequency: some gateway attendance records carry an ID that is not
|
|
8
|
+
a number, and `attendance_frequency()` and `subject_frequency()` failed with
|
|
9
|
+
`ParseError`. The shape was not shown; another Librus client strips
|
|
10
|
+
non-digits from this ID. The ID is now an opaque token of 1 to 64 printable ASCII
|
|
11
|
+
characters. It only detects duplicate records; nothing else reads it.
|
|
12
|
+
- Grades: the 32-field bound on a grade tooltip counted lines, blank ones
|
|
13
|
+
included, and a descriptive grade's tooltip with more than 32 lines failed
|
|
14
|
+
the whole grades read with `LimitError`. Most likely its free text spans
|
|
15
|
+
many lines. The bound now counts fields; non-blank lines have a bound of
|
|
16
|
+
their own, 256, and the 8192-character bound still applies.
|
|
17
|
+
|
|
3
18
|
## 1.11.4 (2026-11-23) - Parent logins: messages, e-Justifications, grade tooltips; audit fixes
|
|
4
19
|
|
|
5
20
|
Four failures from a tester's parent login (librus-mcp#136, #201):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: librus-python-api
|
|
3
|
-
Version: 1.11.
|
|
3
|
+
Version: 1.11.5
|
|
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,7 +42,8 @@ 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.11.
|
|
45
|
+
**Status:** `1.11.5` reads gateway attendance records whose ID is not a
|
|
46
|
+
number and grade tooltips longer than 32 lines. `1.11.4` recovers the messages sign-in after a page that ended the
|
|
46
47
|
session, reports e-Justifications switched off for a parent login as
|
|
47
48
|
`ViewDisabledError`, reads descriptive grade skills that wrap onto a second
|
|
48
49
|
tooltip line and names the failing field of a gateway JSON envelope.
|
|
@@ -89,7 +90,7 @@ See [limitations](#supported-features-and-limitations) below.
|
|
|
89
90
|
Install the exact release from PyPI after its gated publication completes:
|
|
90
91
|
|
|
91
92
|
```sh
|
|
92
|
-
python -m pip install librus-python-api==1.11.
|
|
93
|
+
python -m pip install librus-python-api==1.11.5
|
|
93
94
|
```
|
|
94
95
|
|
|
95
96
|
Pin the exact version qualified by your application. Before publication, use a
|
|
@@ -105,7 +106,7 @@ python -m pip install .
|
|
|
105
106
|
To install a locally built wheel instead:
|
|
106
107
|
|
|
107
108
|
```sh
|
|
108
|
-
python -m pip install ./dist/librus_python_api-1.11.
|
|
109
|
+
python -m pip install ./dist/librus_python_api-1.11.5-py3-none-any.whl
|
|
109
110
|
```
|
|
110
111
|
|
|
111
112
|
No console script or background process is installed: import the library in your
|
|
@@ -16,7 +16,8 @@ private ACLs. Windows installations include `pywin32` and `tzdata` automatically
|
|
|
16
16
|
Network paths, reparse-point paths and unsafe storage permissions fail closed.
|
|
17
17
|
See [platform requirements](contracts/persistence.md#windows-disk-boundary-25).
|
|
18
18
|
|
|
19
|
-
**Status:** `1.11.
|
|
19
|
+
**Status:** `1.11.5` reads gateway attendance records whose ID is not a
|
|
20
|
+
number and grade tooltips longer than 32 lines. `1.11.4` recovers the messages sign-in after a page that ended the
|
|
20
21
|
session, reports e-Justifications switched off for a parent login as
|
|
21
22
|
`ViewDisabledError`, reads descriptive grade skills that wrap onto a second
|
|
22
23
|
tooltip line and names the failing field of a gateway JSON envelope.
|
|
@@ -63,7 +64,7 @@ See [limitations](#supported-features-and-limitations) below.
|
|
|
63
64
|
Install the exact release from PyPI after its gated publication completes:
|
|
64
65
|
|
|
65
66
|
```sh
|
|
66
|
-
python -m pip install librus-python-api==1.11.
|
|
67
|
+
python -m pip install librus-python-api==1.11.5
|
|
67
68
|
```
|
|
68
69
|
|
|
69
70
|
Pin the exact version qualified by your application. Before publication, use a
|
|
@@ -79,7 +80,7 @@ python -m pip install .
|
|
|
79
80
|
To install a locally built wheel instead:
|
|
80
81
|
|
|
81
82
|
```sh
|
|
82
|
-
python -m pip install ./dist/librus_python_api-1.11.
|
|
83
|
+
python -m pip install ./dist/librus_python_api-1.11.5-py3-none-any.whl
|
|
83
84
|
```
|
|
84
85
|
|
|
85
86
|
No console script or background process is installed: import the library in your
|
|
@@ -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.11.
|
|
4
|
+
__version__ = "1.11.5"
|
|
5
5
|
|
|
6
6
|
from librus_python_api.attachments import AttachmentStream, ModernAttachmentStream
|
|
7
7
|
from librus_python_api.budget import RequestBudget
|
|
@@ -807,6 +807,9 @@ GRADE_POINT_RESULT_PERIODS = MappingProxyType({"I": 1, "II": 2, "R": 0})
|
|
|
807
807
|
GRADE_MAX_RECORDS = 2048
|
|
808
808
|
GRADE_MAX_METADATA_LENGTH = 8192
|
|
809
809
|
GRADE_MAX_METADATA_FIELDS = 32
|
|
810
|
+
# Non-blank tooltip lines. Free text may span more lines than the tooltip has
|
|
811
|
+
# fields (librus-mcp#136); each line is parsed on its own, so lines stay bounded.
|
|
812
|
+
GRADE_MAX_METADATA_LINES = 256
|
|
810
813
|
GRADE_MAX_WINDOW_DAYS = 371
|
|
811
814
|
GRADE_PERIOD_HEADERS = MappingProxyType(
|
|
812
815
|
{
|
|
@@ -13,6 +13,7 @@ from librus_python_api.config import (
|
|
|
13
13
|
GRADE_MAX_COLUMNS,
|
|
14
14
|
GRADE_MAX_METADATA_FIELDS,
|
|
15
15
|
GRADE_MAX_METADATA_LENGTH,
|
|
16
|
+
GRADE_MAX_METADATA_LINES,
|
|
16
17
|
TOOLTIP_LABELS,
|
|
17
18
|
TOOLTIP_MULTILINE_LABELS,
|
|
18
19
|
TOOLTIP_REPEATABLE_LABELS,
|
|
@@ -110,10 +111,14 @@ def tooltip_fields(
|
|
|
110
111
|
raise LibrusError(ErrorKind.LIMIT)
|
|
111
112
|
result: dict[str, str] = {}
|
|
112
113
|
last: str | None = None
|
|
113
|
-
|
|
114
|
-
|
|
114
|
+
# Fields and lines are bounded apart: free text may span more lines than
|
|
115
|
+
# there are fields, and blank lines count toward neither (librus-mcp#136).
|
|
116
|
+
chunks = [
|
|
117
|
+
chunk for chunk in re.split(r"<br\s*/?>|\n", title, flags=re.I) if chunk.strip()
|
|
118
|
+
]
|
|
119
|
+
if len(chunks) > GRADE_MAX_METADATA_LINES:
|
|
115
120
|
raise LibrusError(ErrorKind.LIMIT)
|
|
116
|
-
lines = [tooltip_line(chunk) for chunk in chunks
|
|
121
|
+
lines = [tooltip_line(chunk) for chunk in chunks]
|
|
117
122
|
# Start of the closing run of known-label lines, such as Kategoria, Data.
|
|
118
123
|
closing = len(lines)
|
|
119
124
|
while closing and _known_label(lines[closing - 1]):
|
|
@@ -143,6 +148,8 @@ def tooltip_fields(
|
|
|
143
148
|
continue
|
|
144
149
|
if not separator or not key or key in result:
|
|
145
150
|
raise LibrusError(ErrorKind.PARSE)
|
|
151
|
+
if len(result) == GRADE_MAX_METADATA_FIELDS:
|
|
152
|
+
raise LibrusError(ErrorKind.LIMIT)
|
|
146
153
|
result[key] = value
|
|
147
154
|
last = key
|
|
148
155
|
return result
|
|
@@ -1422,7 +1422,10 @@ class _NumericReferenceWire(BaseModel):
|
|
|
1422
1422
|
|
|
1423
1423
|
class _AttendanceWire(BaseModel):
|
|
1424
1424
|
model_config = ConfigDict(strict=True, extra="ignore", hide_input_in_errors=True)
|
|
1425
|
-
|
|
1425
|
+
# Opaque: a parent login's rows failed a digits-only pattern (librus-mcp#136,
|
|
1426
|
+
# shape unseen). szkolny-android strips non-digits from this ID, which
|
|
1427
|
+
# suggests a prefix such as `t`. It only detects duplicate rows.
|
|
1428
|
+
Id: Annotated[str | None, Field(pattern=r"^[!-~]{1,64}$")] = None
|
|
1426
1429
|
Date: Annotated[str, Field(pattern=r"^[0-9]{4}-[0-9]{2}-[0-9]{2}$")]
|
|
1427
1430
|
Semester: Literal[1, 2]
|
|
1428
1431
|
Type: _NumericReferenceWire
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/_notification_codec.py
RENAMED
|
File without changes
|
|
File without changes
|
{librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/_windows_filesystem.py
RENAMED
|
File without changes
|
{librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/announcements.py
RENAMED
|
File without changes
|
{librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/attachment_routes.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/attendance_frequency.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/class_free_days.py
RENAMED
|
File without changes
|
{librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/completed_lessons.py
RENAMED
|
File without changes
|
{librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/detail_fields.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/formative_grades.py
RENAMED
|
File without changes
|
{librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/gateway_grades.py
RENAMED
|
File without changes
|
{librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/grade_parsers.py
RENAMED
|
File without changes
|
{librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/grade_records.py
RENAMED
|
File without changes
|
{librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/homework_range.py
RENAMED
|
File without changes
|
|
File without changes
|
{librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/justifications.py
RENAMED
|
File without changes
|
|
File without changes
|
{librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/message_content.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/modern_mailbox.py
RENAMED
|
File without changes
|
{librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/modern_messages.py
RENAMED
|
File without changes
|
{librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/notification_models.py
RENAMED
|
File without changes
|
|
File without changes
|
{librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/notification_workflow.py
RENAMED
|
File without changes
|
{librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/notifications.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{librus_python_api-1.11.4 → librus_python_api-1.11.5}/src/librus_python_api/school_year_archive.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|