librus-python-api 1.11.0__tar.gz → 1.11.1__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.0 → librus_python_api-1.11.1}/CHANGELOG.md +11 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/PKG-INFO +5 -4
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/README.md +4 -3
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/__init__.py +1 -1
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/_windows_filesystem.py +22 -5
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/.gitignore +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/API.md +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/LICENSE +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/SECURITY.md +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/pyproject.toml +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/_notification_bootstrap.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/_notification_codec.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/_storage.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/announcements.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/attachment_routes.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/attachments.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/attendance.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/attendance_frequency.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/budget.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/checkpoint.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/class_free_days.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/completed_lessons.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/config.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/detail_fields.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/diagnostics.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/exceptions.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/files.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/formative_grades.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/gateway_grades.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/grade_parsers.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/grade_records.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/homework_range.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/inspect_page.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/justifications.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/lifecycle.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/markup.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/message_content.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/messages.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/models.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/modern_body.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/modern_mailbox.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/modern_messages.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/notification_models.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/notification_persistence.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/notification_workflow.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/notifications.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/parsers.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/parsing.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/persistence.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/py.typed +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/recipients.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/scheduler.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/school_reads.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/school_year_archive.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/sending.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/service.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/timetable.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/transport.py +0 -0
- {librus_python_api-1.11.0 → librus_python_api-1.11.1}/uv.lock +0 -0
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.11.1 (2026-11-21) - Windows stores shared by several processes
|
|
4
|
+
|
|
5
|
+
- Windows: a durable store shared by several processes could report
|
|
6
|
+
`StorageError`, including on the save that records a dispatched send.
|
|
7
|
+
Between the store's sidecar check and its open, another process's
|
|
8
|
+
commit can delete SQLite's rollback journal or leave it pending deletion.
|
|
9
|
+
A journal that is gone is now absent, as on POSIX; one that stays and
|
|
10
|
+
cannot be opened still fails closed after bounded retries. On Windows CI,
|
|
11
|
+
the two-process durable-send test failed in 36 of 180 repeated runs before
|
|
12
|
+
and in none after.
|
|
13
|
+
|
|
3
14
|
## 1.11.0 (2026-11-21) - A view unavailable for now has its own error
|
|
4
15
|
|
|
5
16
|
- New `ErrorKind.TEMPORARILY_UNAVAILABLE` and `TemporarilyUnavailableError`:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: librus-python-api
|
|
3
|
-
Version: 1.11.
|
|
3
|
+
Version: 1.11.1
|
|
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.1` fixes a Windows store shared by several processes
|
|
46
|
+
reporting `StorageError`, also after a dispatched send. `1.11.0` raises `TemporarilyUnavailableError` for the archive's
|
|
46
47
|
loading notice, a view that is unavailable for now while the rest of Synergia
|
|
47
48
|
works. `1.10.3` reads pages with the libxml2 that lxml's Windows wheels
|
|
48
49
|
bundle and reads a grade detail table without period headings. `1.10.2` rejects a date whose weekday
|
|
@@ -82,7 +83,7 @@ See [limitations](#supported-features-and-limitations) below.
|
|
|
82
83
|
Install the exact release from PyPI after its gated publication completes:
|
|
83
84
|
|
|
84
85
|
```sh
|
|
85
|
-
python -m pip install librus-python-api==1.11.
|
|
86
|
+
python -m pip install librus-python-api==1.11.1
|
|
86
87
|
```
|
|
87
88
|
|
|
88
89
|
Pin the exact version qualified by your application. Before publication, use a
|
|
@@ -98,7 +99,7 @@ python -m pip install .
|
|
|
98
99
|
To install a locally built wheel instead:
|
|
99
100
|
|
|
100
101
|
```sh
|
|
101
|
-
python -m pip install ./dist/librus_python_api-1.11.
|
|
102
|
+
python -m pip install ./dist/librus_python_api-1.11.1-py3-none-any.whl
|
|
102
103
|
```
|
|
103
104
|
|
|
104
105
|
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.1` fixes a Windows store shared by several processes
|
|
20
|
+
reporting `StorageError`, also after a dispatched send. `1.11.0` raises `TemporarilyUnavailableError` for the archive's
|
|
20
21
|
loading notice, a view that is unavailable for now while the rest of Synergia
|
|
21
22
|
works. `1.10.3` reads pages with the libxml2 that lxml's Windows wheels
|
|
22
23
|
bundle and reads a grade detail table without period headings. `1.10.2` rejects a date whose weekday
|
|
@@ -56,7 +57,7 @@ See [limitations](#supported-features-and-limitations) below.
|
|
|
56
57
|
Install the exact release from PyPI after its gated publication completes:
|
|
57
58
|
|
|
58
59
|
```sh
|
|
59
|
-
python -m pip install librus-python-api==1.11.
|
|
60
|
+
python -m pip install librus-python-api==1.11.1
|
|
60
61
|
```
|
|
61
62
|
|
|
62
63
|
Pin the exact version qualified by your application. Before publication, use a
|
|
@@ -72,7 +73,7 @@ python -m pip install .
|
|
|
72
73
|
To install a locally built wheel instead:
|
|
73
74
|
|
|
74
75
|
```sh
|
|
75
|
-
python -m pip install ./dist/librus_python_api-1.11.
|
|
76
|
+
python -m pip install ./dist/librus_python_api-1.11.1-py3-none-any.whl
|
|
76
77
|
```
|
|
77
78
|
|
|
78
79
|
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.1"
|
|
5
5
|
|
|
6
6
|
from librus_python_api.attachments import AttachmentStream, ModernAttachmentStream
|
|
7
7
|
from librus_python_api.budget import RequestBudget
|
{librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/_windows_filesystem.py
RENAMED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import ntpath
|
|
4
4
|
import os
|
|
5
5
|
import sys
|
|
6
|
+
import time
|
|
6
7
|
from collections.abc import Callable
|
|
7
8
|
from functools import partial
|
|
8
9
|
from pathlib import Path
|
|
@@ -18,6 +19,11 @@ import winerror
|
|
|
18
19
|
from librus_python_api.exceptions import ErrorKind, LibrusError
|
|
19
20
|
|
|
20
21
|
_TRUSTED_SYSTEM_SIDS = {"S-1-5-18", "S-1-5-32-544"}
|
|
22
|
+
# Another process's SQLite deletes its rollback journal when it commits. A
|
|
23
|
+
# sidecar that is gone or pending deletion when it is opened is retried this
|
|
24
|
+
# often before the open failure stands.
|
|
25
|
+
_SIDECAR_ATTEMPTS = 40
|
|
26
|
+
_SIDECAR_RETRY_SECONDS = 0.025
|
|
21
27
|
_MAX_PATH_COMPONENTS = 128
|
|
22
28
|
_MAX_ACES = 16
|
|
23
29
|
|
|
@@ -310,11 +316,22 @@ class WindowsDirectory:
|
|
|
310
316
|
def check_sidecar(self, name: str, maximum: int) -> None:
|
|
311
317
|
# A private pinned parent excludes other OS principals from replacement.
|
|
312
318
|
# Same-user writers remain outside the threat boundary on both platforms.
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
319
|
+
# Between the lstat and the open, another process's commit can delete
|
|
320
|
+
# the journal, or leave it pending deletion, and the open fails. Once
|
|
321
|
+
# it is gone it is absent, as on POSIX; a sidecar that stays and still
|
|
322
|
+
# cannot be opened fails closed after the bounded retries.
|
|
323
|
+
for attempt in range(_SIDECAR_ATTEMPTS):
|
|
324
|
+
try:
|
|
325
|
+
(self.path / name).lstat()
|
|
326
|
+
self.check_file(name, maximum)
|
|
327
|
+
except FileNotFoundError:
|
|
328
|
+
return
|
|
329
|
+
except OSError:
|
|
330
|
+
if attempt == _SIDECAR_ATTEMPTS - 1:
|
|
331
|
+
raise
|
|
332
|
+
else:
|
|
333
|
+
return
|
|
334
|
+
time.sleep(_SIDECAR_RETRY_SECONDS)
|
|
318
335
|
|
|
319
336
|
|
|
320
337
|
def acquire_lock(directory: WindowsDirectory, name: str, held: list[int]) -> None:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/_notification_codec.py
RENAMED
|
File without changes
|
|
File without changes
|
{librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/announcements.py
RENAMED
|
File without changes
|
{librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/attachment_routes.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/attendance_frequency.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/class_free_days.py
RENAMED
|
File without changes
|
{librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/completed_lessons.py
RENAMED
|
File without changes
|
|
File without changes
|
{librus_python_api-1.11.0 → librus_python_api-1.11.1}/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.0 → librus_python_api-1.11.1}/src/librus_python_api/formative_grades.py
RENAMED
|
File without changes
|
{librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/gateway_grades.py
RENAMED
|
File without changes
|
{librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/grade_parsers.py
RENAMED
|
File without changes
|
{librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/grade_records.py
RENAMED
|
File without changes
|
{librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/homework_range.py
RENAMED
|
File without changes
|
|
File without changes
|
{librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/justifications.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/message_content.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/modern_mailbox.py
RENAMED
|
File without changes
|
{librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/modern_messages.py
RENAMED
|
File without changes
|
{librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/notification_models.py
RENAMED
|
File without changes
|
|
File without changes
|
{librus_python_api-1.11.0 → librus_python_api-1.11.1}/src/librus_python_api/notification_workflow.py
RENAMED
|
File without changes
|
{librus_python_api-1.11.0 → librus_python_api-1.11.1}/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.0 → librus_python_api-1.11.1}/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
|