librus-python-api 1.10.3__tar.gz → 1.11.0__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.10.3 → librus_python_api-1.11.0}/API.md +4 -2
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/CHANGELOG.md +16 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/PKG-INFO +7 -6
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/README.md +6 -5
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/__init__.py +1 -1
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/config.py +1 -1
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/exceptions.py +10 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/.gitignore +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/LICENSE +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/SECURITY.md +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/pyproject.toml +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/_notification_bootstrap.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/_notification_codec.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/_storage.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/_windows_filesystem.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/announcements.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/attachment_routes.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/attachments.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/attendance.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/attendance_frequency.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/budget.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/checkpoint.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/class_free_days.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/completed_lessons.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/detail_fields.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/diagnostics.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/files.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/formative_grades.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/gateway_grades.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/grade_parsers.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/grade_records.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/homework_range.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/inspect_page.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/justifications.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/lifecycle.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/markup.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/message_content.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/messages.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/models.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/modern_body.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/modern_mailbox.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/modern_messages.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/notification_models.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/notification_persistence.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/notification_workflow.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/notifications.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/parsers.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/parsing.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/persistence.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/py.typed +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/recipients.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/scheduler.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/school_reads.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/school_year_archive.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/sending.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/service.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/timetable.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/transport.py +0 -0
- {librus_python_api-1.10.3 → librus_python_api-1.11.0}/uv.lock +0 -0
|
@@ -335,7 +335,8 @@ cell and 262144 total rendered characters, plus the shared transport/tree bounds
|
|
|
335
335
|
|
|
336
336
|
The observed `Brak danych` information notice returns empty `years` and
|
|
337
337
|
`achievements`. The notice that the archive is temporarily unavailable while
|
|
338
|
-
Synergia fills it with the previous school year raises `
|
|
338
|
+
Synergia fills it with the previous school year raises `TemporarilyUnavailableError`
|
|
339
|
+
(1.11.0; `MaintenanceError` in 1.10.3). Missing tables without that explicit marker still raise `PARSE`;
|
|
339
340
|
an empty notice combined with data tables is rejected. Repeated school years
|
|
340
341
|
(including a class-change layout) are ambiguous and raise `PARSE`. Unknown
|
|
341
342
|
geometry/markup raises `UNSUPPORTED_CAPABILITY`; bounds raise `LIMIT`, never
|
|
@@ -1292,10 +1293,11 @@ text. `error_for(kind)` builds one.
|
|
|
1292
1293
|
| `AccessDeniedError` | Denied, or an unexpected redirect or identity |
|
|
1293
1294
|
| `ViewDisabledError` | The school administrator disabled this view |
|
|
1294
1295
|
| `ModuleUnavailableError` | The school's Synergia variant does not include this module; exact same-origin unavailable redirect or fixed page notice, without follow/retry ([contract](contracts/module-unavailable.md)) |
|
|
1296
|
+
| `TemporarilyUnavailableError` | Synergia shows a fixed notice that this view is unavailable for now, such as the school-year archive while it is filled with the previous year (1.11.0); other views still work, nothing pauses, retry later |
|
|
1295
1297
|
| `UnsupportedCapabilityError` | A recognized but unsupported layout or content |
|
|
1296
1298
|
| `ParseError` | The page or JSON does not match the expected structure |
|
|
1297
1299
|
| `StaleCursorError` | A previously valid continuation no longer matches the current sequence; restart explicitly |
|
|
1298
|
-
| `ThrottledError`, `MaintenanceError` | HTTP 429 or 503; the shared scheduler pauses.
|
|
1300
|
+
| `ThrottledError`, `MaintenanceError` | HTTP 429 or 503; the shared scheduler pauses. In 1.10.3 only, `MaintenanceError` was also the archive's loading notice, now `TemporarilyUnavailableError` |
|
|
1299
1301
|
| `ConnectionError`, `OperationTimeoutError` | Transport failure or budget deadline |
|
|
1300
1302
|
| `LimitError` | A request, byte, item or queue bound was reached |
|
|
1301
1303
|
| `ClosedError` | The service is closed |
|
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.11.0 (2026-11-21) - A view unavailable for now has its own error
|
|
4
|
+
|
|
5
|
+
- New `ErrorKind.TEMPORARILY_UNAVAILABLE` and `TemporarilyUnavailableError`:
|
|
6
|
+
Synergia shows a fixed notice that this one view is unavailable for now,
|
|
7
|
+
while other views still work. Retry later; nothing pauses the shared
|
|
8
|
+
scheduler. The school-year archive's notice that it is being filled with
|
|
9
|
+
the previous school year's data raises it. In 1.10.3 that notice raised
|
|
10
|
+
`MaintenanceError`, which otherwise means HTTP 503 with the whole service
|
|
11
|
+
paused, so consumers and both live checkers took the archive notice for an
|
|
12
|
+
outage. Code that caught `MaintenanceError` for the archive should catch
|
|
13
|
+
`TemporarilyUnavailableError` instead. A consumer that publishes
|
|
14
|
+
`ErrorKind` in a schema, such as `SendResult.reason`, gains the value
|
|
15
|
+
`temporarily_unavailable`.
|
|
16
|
+
- Live check: a temporarily unavailable view no longer ends the login's run;
|
|
17
|
+
the step is still reported as a problem because the view was not read.
|
|
18
|
+
|
|
3
19
|
## 1.10.3 (2026-11-20) - Pages read on Windows; grade details without periods
|
|
4
20
|
|
|
5
21
|
Thank you, @mpietson, for krzysztofbury/librus-mcp#121, with the libxml2 error
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: librus-python-api
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.11.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,9 +42,10 @@ 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
|
-
|
|
47
|
-
|
|
45
|
+
**Status:** `1.11.0` raises `TemporarilyUnavailableError` for the archive's
|
|
46
|
+
loading notice, a view that is unavailable for now while the rest of Synergia
|
|
47
|
+
works. `1.10.3` reads pages with the libxml2 that lxml's Windows wheels
|
|
48
|
+
bundle and reads a grade detail table without period headings. `1.10.2` rejects a date whose weekday
|
|
48
49
|
label names another day and a completed-lesson cell with more than one comma,
|
|
49
50
|
and fixes two cache bugs. `1.10.1` reads descriptive grades that the new-schema table
|
|
50
51
|
shows as grade boxes. `1.10.0` returns behaviour points as a typed value
|
|
@@ -81,7 +82,7 @@ See [limitations](#supported-features-and-limitations) below.
|
|
|
81
82
|
Install the exact release from PyPI after its gated publication completes:
|
|
82
83
|
|
|
83
84
|
```sh
|
|
84
|
-
python -m pip install librus-python-api==1.
|
|
85
|
+
python -m pip install librus-python-api==1.11.0
|
|
85
86
|
```
|
|
86
87
|
|
|
87
88
|
Pin the exact version qualified by your application. Before publication, use a
|
|
@@ -97,7 +98,7 @@ python -m pip install .
|
|
|
97
98
|
To install a locally built wheel instead:
|
|
98
99
|
|
|
99
100
|
```sh
|
|
100
|
-
python -m pip install ./dist/librus_python_api-1.
|
|
101
|
+
python -m pip install ./dist/librus_python_api-1.11.0-py3-none-any.whl
|
|
101
102
|
```
|
|
102
103
|
|
|
103
104
|
No console script or background process is installed: import the library in your
|
|
@@ -16,9 +16,10 @@ 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.
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
**Status:** `1.11.0` raises `TemporarilyUnavailableError` for the archive's
|
|
20
|
+
loading notice, a view that is unavailable for now while the rest of Synergia
|
|
21
|
+
works. `1.10.3` reads pages with the libxml2 that lxml's Windows wheels
|
|
22
|
+
bundle and reads a grade detail table without period headings. `1.10.2` rejects a date whose weekday
|
|
22
23
|
label names another day and a completed-lesson cell with more than one comma,
|
|
23
24
|
and fixes two cache bugs. `1.10.1` reads descriptive grades that the new-schema table
|
|
24
25
|
shows as grade boxes. `1.10.0` returns behaviour points as a typed value
|
|
@@ -55,7 +56,7 @@ See [limitations](#supported-features-and-limitations) below.
|
|
|
55
56
|
Install the exact release from PyPI after its gated publication completes:
|
|
56
57
|
|
|
57
58
|
```sh
|
|
58
|
-
python -m pip install librus-python-api==1.
|
|
59
|
+
python -m pip install librus-python-api==1.11.0
|
|
59
60
|
```
|
|
60
61
|
|
|
61
62
|
Pin the exact version qualified by your application. Before publication, use a
|
|
@@ -71,7 +72,7 @@ python -m pip install .
|
|
|
71
72
|
To install a locally built wheel instead:
|
|
72
73
|
|
|
73
74
|
```sh
|
|
74
|
-
python -m pip install ./dist/librus_python_api-1.
|
|
75
|
+
python -m pip install ./dist/librus_python_api-1.11.0-py3-none-any.whl
|
|
75
76
|
```
|
|
76
77
|
|
|
77
78
|
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.
|
|
4
|
+
__version__ = "1.11.0"
|
|
5
5
|
|
|
6
6
|
from librus_python_api.attachments import AttachmentStream, ModernAttachmentStream
|
|
7
7
|
from librus_python_api.budget import RequestBudget
|
|
@@ -1075,7 +1075,7 @@ PAGE_NOTICES = MappingProxyType(
|
|
|
1075
1075
|
"Opcja chwilowo niedostępna. Aktualnie trwa proces zasilania archiwum "
|
|
1076
1076
|
"danymi z poprzedniego roku szkolnego. Po zakończeniu procesu "
|
|
1077
1077
|
"zasilania opcja zostanie ponownie udostępniona."
|
|
1078
|
-
): ErrorKind.
|
|
1078
|
+
): ErrorKind.TEMPORARILY_UNAVAILABLE,
|
|
1079
1079
|
}
|
|
1080
1080
|
)
|
|
1081
1081
|
MODULE_UNAVAILABLE_PATH = "/modul_niedostepny"
|
|
@@ -21,6 +21,7 @@ __all__ = [
|
|
|
21
21
|
"SessionExpiredError",
|
|
22
22
|
"StorageError",
|
|
23
23
|
"StaleCursorError",
|
|
24
|
+
"TemporarilyUnavailableError",
|
|
24
25
|
"ThrottledError",
|
|
25
26
|
"UnknownDeliveryError",
|
|
26
27
|
"UnsupportedCapabilityError",
|
|
@@ -40,6 +41,7 @@ class ErrorKind(StrEnum):
|
|
|
40
41
|
UNSUPPORTED_CAPABILITY = "unsupported_capability"
|
|
41
42
|
VIEW_DISABLED = "view_disabled"
|
|
42
43
|
MODULE_UNAVAILABLE = "module_unavailable"
|
|
44
|
+
TEMPORARILY_UNAVAILABLE = "temporarily_unavailable"
|
|
43
45
|
THROTTLED = "throttled"
|
|
44
46
|
MAINTENANCE = "maintenance"
|
|
45
47
|
CONNECTION = "connection"
|
|
@@ -119,6 +121,13 @@ class ModuleUnavailableError(LibrusError):
|
|
|
119
121
|
"""The school's Synergia product variant does not include this module."""
|
|
120
122
|
|
|
121
123
|
|
|
124
|
+
class TemporarilyUnavailableError(LibrusError):
|
|
125
|
+
"""Synergia says this view is unavailable for now; other views still work.
|
|
126
|
+
|
|
127
|
+
Retry later. Unlike MaintenanceError, nothing pauses the shared scheduler.
|
|
128
|
+
"""
|
|
129
|
+
|
|
130
|
+
|
|
122
131
|
class ThrottledError(LibrusError):
|
|
123
132
|
pass
|
|
124
133
|
|
|
@@ -176,6 +185,7 @@ _ERROR_TYPES: dict[ErrorKind, type[LibrusError]] = {
|
|
|
176
185
|
ErrorKind.UNSUPPORTED_CAPABILITY: UnsupportedCapabilityError,
|
|
177
186
|
ErrorKind.VIEW_DISABLED: ViewDisabledError,
|
|
178
187
|
ErrorKind.MODULE_UNAVAILABLE: ModuleUnavailableError,
|
|
188
|
+
ErrorKind.TEMPORARILY_UNAVAILABLE: TemporarilyUnavailableError,
|
|
179
189
|
ErrorKind.THROTTLED: ThrottledError,
|
|
180
190
|
ErrorKind.MAINTENANCE: MaintenanceError,
|
|
181
191
|
ErrorKind.CONNECTION: ConnectionError,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/_notification_codec.py
RENAMED
|
File without changes
|
|
File without changes
|
{librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/_windows_filesystem.py
RENAMED
|
File without changes
|
{librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/announcements.py
RENAMED
|
File without changes
|
{librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/attachment_routes.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/attendance_frequency.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/class_free_days.py
RENAMED
|
File without changes
|
{librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/completed_lessons.py
RENAMED
|
File without changes
|
{librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/detail_fields.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/formative_grades.py
RENAMED
|
File without changes
|
{librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/gateway_grades.py
RENAMED
|
File without changes
|
{librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/grade_parsers.py
RENAMED
|
File without changes
|
{librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/grade_records.py
RENAMED
|
File without changes
|
{librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/homework_range.py
RENAMED
|
File without changes
|
|
File without changes
|
{librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/justifications.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/message_content.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/modern_mailbox.py
RENAMED
|
File without changes
|
{librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/modern_messages.py
RENAMED
|
File without changes
|
{librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/notification_models.py
RENAMED
|
File without changes
|
|
File without changes
|
{librus_python_api-1.10.3 → librus_python_api-1.11.0}/src/librus_python_api/notification_workflow.py
RENAMED
|
File without changes
|
{librus_python_api-1.10.3 → librus_python_api-1.11.0}/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.10.3 → librus_python_api-1.11.0}/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
|