librus-python-api 1.10.3__py3-none-any.whl → 1.11.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 +1 -1
- librus_python_api/config.py +1 -1
- librus_python_api/exceptions.py +10 -0
- {librus_python_api-1.10.3.dist-info → librus_python_api-1.11.0.dist-info}/METADATA +7 -6
- {librus_python_api-1.10.3.dist-info → librus_python_api-1.11.0.dist-info}/RECORD +7 -7
- {librus_python_api-1.10.3.dist-info → librus_python_api-1.11.0.dist-info}/WHEEL +0 -0
- {librus_python_api-1.10.3.dist-info → librus_python_api-1.11.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.11.0"
|
|
5
5
|
|
|
6
6
|
from librus_python_api.attachments import AttachmentStream, ModernAttachmentStream
|
|
7
7
|
from librus_python_api.budget import RequestBudget
|
librus_python_api/config.py
CHANGED
|
@@ -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"
|
librus_python_api/exceptions.py
CHANGED
|
@@ -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,
|
|
@@ -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
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
librus_python_api/__init__.py,sha256=
|
|
1
|
+
librus_python_api/__init__.py,sha256=RZIA-JE2IZA1glgo5rIee3G3m3f_r-FkdRBXIMhV2GQ,6846
|
|
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,10 +12,10 @@ 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=X3NygnzEVaNM53mIf8wiIWF8GHvGCI4bmI0YROdXXLs,10875
|
|
15
|
-
librus_python_api/config.py,sha256=
|
|
15
|
+
librus_python_api/config.py,sha256=USVurJoNxjSnLZqDpmejnZcXepvPK8iWN00R9Gf9gbU,66589
|
|
16
16
|
librus_python_api/detail_fields.py,sha256=vDDi5sV-e30-42SF0hwAUoldiZ5wvYtb1UlLt03lBHw,1708
|
|
17
17
|
librus_python_api/diagnostics.py,sha256=SFQ3Wq6JEFOEHjRKe0-8zcCeJ8c8Eq8lIkVk2_a8IKU,19126
|
|
18
|
-
librus_python_api/exceptions.py,sha256=
|
|
18
|
+
librus_python_api/exceptions.py,sha256=t8F15ZimGdvBgNpHX3URpBIckabMHM4Q8fsWmtWqOzk,5907
|
|
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=ILqWkkaRq120wG--h7GfFy4qFAQcuaa6LpzJOcCA2FU,22921
|
|
@@ -48,7 +48,7 @@ librus_python_api/sending.py,sha256=Nvvk2r-6D6Us53a2fH5GW9PcA6bWEfuOvy6c3M5QVcE,
|
|
|
48
48
|
librus_python_api/service.py,sha256=0RQZW_jPwh8VJNphJ0NUcdeYR2VpZ30MQKns_12BsxU,105678
|
|
49
49
|
librus_python_api/timetable.py,sha256=tX1QK9fQABxzfLaHHqTe8e6rAgdOkCoTOfAHdPwNmLE,9836
|
|
50
50
|
librus_python_api/transport.py,sha256=yF-DnFy4xGYS_RWQ9161b9WJXOlYF8cFRgdjXmVVUIk,34988
|
|
51
|
-
librus_python_api-1.
|
|
52
|
-
librus_python_api-1.
|
|
53
|
-
librus_python_api-1.
|
|
54
|
-
librus_python_api-1.
|
|
51
|
+
librus_python_api-1.11.0.dist-info/METADATA,sha256=oN0elqtRGBSWimQo5kU9Lar6TtOWnO5id8TrzpfqJvI,15563
|
|
52
|
+
librus_python_api-1.11.0.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
53
|
+
librus_python_api-1.11.0.dist-info/licenses/LICENSE,sha256=IuerLb3cnZCsaB23znydjjvKqP-LmSJd3syKa9NGUts,1071
|
|
54
|
+
librus_python_api-1.11.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|