librus-python-api 1.0.1__py3-none-any.whl → 1.0.2__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 +6 -5
- {librus_python_api-1.0.1.dist-info → librus_python_api-1.0.2.dist-info}/METADATA +5 -4
- {librus_python_api-1.0.1.dist-info → librus_python_api-1.0.2.dist-info}/RECORD +6 -6
- {librus_python_api-1.0.1.dist-info → librus_python_api-1.0.2.dist-info}/WHEEL +0 -0
- {librus_python_api-1.0.1.dist-info → librus_python_api-1.0.2.dist-info}/licenses/LICENSE +0 -0
librus_python_api/__init__.py
CHANGED
|
@@ -120,7 +120,7 @@ from librus_python_api.models import (
|
|
|
120
120
|
from librus_python_api.sending import SendAttempt
|
|
121
121
|
from librus_python_api.service import AccountClient, LibrusService
|
|
122
122
|
|
|
123
|
-
__version__ = "1.0.
|
|
123
|
+
__version__ = "1.0.2"
|
|
124
124
|
|
|
125
125
|
__all__ = [
|
|
126
126
|
"AccountContext",
|
librus_python_api/config.py
CHANGED
|
@@ -1284,13 +1284,14 @@ class SchedulerLimits(_ValidatedConfig):
|
|
|
1284
1284
|
Queue limits count waiting requests, separately from active requests. Rate
|
|
1285
1285
|
tokens count every admitted attempt, including future auth/redirect/retry
|
|
1286
1286
|
requests. Parent and student logins each occupy their own account slot.
|
|
1287
|
-
A shared
|
|
1288
|
-
|
|
1287
|
+
A shared twenty-token burst accommodates two concurrent cold-login chains;
|
|
1288
|
+
refill at ten tokens/second bounds sustained traffic across all accounts.
|
|
1289
|
+
One active request per account keeps each login's session state sequential.
|
|
1289
1290
|
"""
|
|
1290
1291
|
|
|
1291
|
-
requests_per_second: PositiveFinite =
|
|
1292
|
-
burst: PositiveCount =
|
|
1293
|
-
active_requests: PositiveCount =
|
|
1292
|
+
requests_per_second: PositiveFinite = 10.0
|
|
1293
|
+
burst: PositiveCount = 20
|
|
1294
|
+
active_requests: PositiveCount = 4
|
|
1294
1295
|
active_requests_per_account: PositiveCount = 1
|
|
1295
1296
|
queued_requests: QueueCount = 32
|
|
1296
1297
|
queued_requests_per_account: QueueCount = 8
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: librus-python-api
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.2
|
|
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
|
|
@@ -51,7 +51,7 @@ See [limitations](#supported-features-and-limitations) below.
|
|
|
51
51
|
Install the exact release from PyPI after its gated publication completes:
|
|
52
52
|
|
|
53
53
|
```sh
|
|
54
|
-
python -m pip install librus-python-api==1.0.
|
|
54
|
+
python -m pip install librus-python-api==1.0.2
|
|
55
55
|
```
|
|
56
56
|
|
|
57
57
|
Pin the exact version qualified by your application. Before publication, use a
|
|
@@ -67,7 +67,7 @@ python -m pip install .
|
|
|
67
67
|
To install a locally built wheel instead:
|
|
68
68
|
|
|
69
69
|
```sh
|
|
70
|
-
python -m pip install ./dist/librus_python_api-1.0.
|
|
70
|
+
python -m pip install ./dist/librus_python_api-1.0.2-py3-none-any.whl
|
|
71
71
|
```
|
|
72
72
|
|
|
73
73
|
No CLI or background process is installed: import the library in your own program.
|
|
@@ -183,7 +183,8 @@ except LibrusError as error:
|
|
|
183
183
|
```
|
|
184
184
|
|
|
185
185
|
A budget covers login, queueing and all pages of an operation. Defaults allow
|
|
186
|
-
|
|
186
|
+
10 requests/second, a burst of 20 and four simultaneous requests across the
|
|
187
|
+
service, with one at a time per login.
|
|
187
188
|
Fresh reads are the default. Unsupported layouts raise typed errors rather than
|
|
188
189
|
silently returning incomplete data. Cursors detect changes; they are not snapshots.
|
|
189
190
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
librus_python_api/__init__.py,sha256=
|
|
1
|
+
librus_python_api/__init__.py,sha256=I8X5pBHeufBLGrfKdr38wG2Gh7o4HJH3dn8ARU1BfuU,5657
|
|
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
|
|
@@ -11,7 +11,7 @@ librus_python_api/attendance_frequency.py,sha256=SBhED5zuyRIHWdw4urFyTJYykb6EYB7
|
|
|
11
11
|
librus_python_api/budget.py,sha256=8fvqT7eIxyVX2P2OBG27XsYHk_HbtSS4lzuecYpHtgs,2878
|
|
12
12
|
librus_python_api/checkpoint.py,sha256=QBmG9GtpyaGRaFq-FXuGA3yR1BjuMFN9V3RTvvi_FNQ,1930
|
|
13
13
|
librus_python_api/completed_lessons.py,sha256=sR2oLSGb2q1580l-2upCBv9sQfIcHi7CQfWr1K0EFXI,7635
|
|
14
|
-
librus_python_api/config.py,sha256=
|
|
14
|
+
librus_python_api/config.py,sha256=VL6FHsKh_R9Sp4pTUXgWo2_UciXV7wwtlJd3-TkoOpA,49136
|
|
15
15
|
librus_python_api/detail_fields.py,sha256=K10Stx_ehDTttkUI7-G7a2Ko9exYEu5NJpR-3sBnQ60,1789
|
|
16
16
|
librus_python_api/diagnostics.py,sha256=2l7wq6RA3it-Gwj-JRLcw5qbI37fl3xII6GZA2mZj0o,856
|
|
17
17
|
librus_python_api/exceptions.py,sha256=yWWoo0xyrQAk1d13HOJZnQBsq4ulh_P0hRSI6ZiNQOE,4622
|
|
@@ -42,7 +42,7 @@ librus_python_api/sending.py,sha256=Nvvk2r-6D6Us53a2fH5GW9PcA6bWEfuOvy6c3M5QVcE,
|
|
|
42
42
|
librus_python_api/service.py,sha256=tPDO0MlbhD6j0PHIZAHGpAVPvCMq2bLLK1HXGR7QQdc,86428
|
|
43
43
|
librus_python_api/timetable.py,sha256=tX1QK9fQABxzfLaHHqTe8e6rAgdOkCoTOfAHdPwNmLE,9836
|
|
44
44
|
librus_python_api/transport.py,sha256=6S5wwBiRkUfKmi6w2t8msxlTSzCo-IbIBE13FeBc7Jw,35357
|
|
45
|
-
librus_python_api-1.0.
|
|
46
|
-
librus_python_api-1.0.
|
|
47
|
-
librus_python_api-1.0.
|
|
48
|
-
librus_python_api-1.0.
|
|
45
|
+
librus_python_api-1.0.2.dist-info/METADATA,sha256=unP0aaTk4Vg3SZEaHT03KmG-IS3LFX_luQapUFrMn8g,11546
|
|
46
|
+
librus_python_api-1.0.2.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
|
|
47
|
+
librus_python_api-1.0.2.dist-info/licenses/LICENSE,sha256=IuerLb3cnZCsaB23znydjjvKqP-LmSJd3syKa9NGUts,1071
|
|
48
|
+
librus_python_api-1.0.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|