ladok3 4.10__py3-none-any.whl → 5.4__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.
@@ -2,7 +2,7 @@ MIT License
2
2
 
3
3
  Copyright (c) 2020 Alexander Baltatzis
4
4
  Copyright (c) 2020 Gerald Q. Maguire Jr.
5
- Copyright (c) 2021--2023 Daniel Bosk
5
+ Copyright (c) 2021--2025 Daniel Bosk
6
6
 
7
7
  Permission is hereby granted, free of charge, to any person obtaining a
8
8
  copy of this software and associated documentation files (the "Software"),
@@ -1,25 +1,20 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: ladok3
3
- Version: 4.10
3
+ Version: 5.4
4
4
  Summary: Python wrapper and CLI for the LADOK3 REST API.
5
- Home-page: https://github.com/dbosk/ladok3
6
5
  License: MIT
7
6
  Keywords: ladok3,ladok
8
7
  Author: Daniel Bosk
9
- Author-email: dbosk@kth.se
8
+ Author-email: daniel@bosk.se
9
+ Maintainer: Daniel Bosk
10
+ Maintainer-email: dbosk@kth.se
10
11
  Requires-Python: >=3.8,<4.0
11
- Classifier: Development Status :: 4 - Beta
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: License :: OSI Approved :: MIT License
14
+ Classifier: Operating System :: OS Independent
12
15
  Classifier: Environment :: Console
13
16
  Classifier: Intended Audience :: Education
14
17
  Classifier: Intended Audience :: Science/Research
15
- Classifier: License :: OSI Approved :: MIT License
16
- Classifier: Operating System :: OS Independent
17
- Classifier: Programming Language :: Python :: 3
18
- Classifier: Programming Language :: Python :: 3.8
19
- Classifier: Programming Language :: Python :: 3.9
20
- Classifier: Programming Language :: Python :: 3.10
21
- Classifier: Programming Language :: Python :: 3.11
22
- Classifier: Programming Language :: Python :: 3
23
18
  Classifier: Topic :: Utilities
24
19
  Requires-Dist: appdirs (>=1.4.4,<2.0.0)
25
20
  Requires-Dist: argcomplete (>=2.0.0,<3.0.0)
@@ -27,11 +22,11 @@ Requires-Dist: cachetools (>=5.2.0,<6.0.0)
27
22
  Requires-Dist: cryptography (>=41.0.3,<42.0.0)
28
23
  Requires-Dist: keyring (>=24.2.0,<25.0.0)
29
24
  Requires-Dist: requests (>=2.31.0,<3.0.0)
30
- Requires-Dist: urllib3 (>=1.26.9,<2.0.0)
31
- Requires-Dist: weblogin (>=1.5,<2.0)
25
+ Requires-Dist: urllib3 (>=2.0)
26
+ Requires-Dist: weblogin (>=1.11,<2.0)
32
27
  Project-URL: Bug Tracker, https://github.com/dbosk/ladok3/issues
28
+ Project-URL: Documentation, https://github.com/dbosk/ladok3/releases
33
29
  Project-URL: Repository, https://github.com/dbosk/ladok3
34
- Project-URL: Releases, https://github.com/dbosk/ladok3/releases
35
30
  Description-Content-Type: text/markdown
36
31
 
37
32
  # ladok3: Python wrapper for LADOK3 API
@@ -123,6 +118,33 @@ component_result.set_grade("P", "2021-03-15")
123
118
  component_result.finalize()
124
119
  ```
125
120
 
121
+ A better way is to use the `load_credentials` function of the CLI.
122
+ ```python
123
+ import ladok3
124
+ import ladok3.cli
125
+
126
+ ls = ladok3.LadokSession(*ladok3.cli.load_credentials())
127
+
128
+ student = ls.get_student("123456-1234")
129
+ # ...
130
+ ```
131
+
132
+ An even better way is to reuse the stored session to use the already built
133
+ cache.
134
+ ```python
135
+ import ladok3
136
+ import ladok3.cli
137
+
138
+ _, credentials = ladok3.cli.load_credentials()
139
+
140
+ ls = ladok3.cli.restore_ladok_session(credentials)
141
+
142
+ student = ls.get_student("123456-1234")
143
+ # ...
144
+
145
+ ladok3.cli.store_ladok_session(ls, credentials)
146
+ ```
147
+
126
148
  ## More documentation
127
149
 
128
150
  There are more detailed usage examples in the details documentation that can be
@@ -140,7 +162,7 @@ There are some examples that can be found in the `examples` directory:
140
162
  - `example_LadokSession.py` just shows how to establish a session.
141
163
  - `example_Course.py` shows course data related examples.
142
164
  - `example_Student.py` shows student data related examples.
143
- - `prgi.py` shows how to transfer grades from KTH Canvas to LADOK.
165
+ - `canvas2ladok.py` shows how to transfer grades from KTH Canvas to LADOK.
144
166
  - `statsdata.py` shows how to extract data for doing statistics for a course
145
167
  and the students' results.
146
168
 
@@ -0,0 +1,21 @@
1
+ doc/ltxobj/ladok3.pdf,sha256=ej_W9iQTlEszJPtEpOneZtvznpn2GcD7I9_KRo3B1lY,2025246
2
+ ladok3/Makefile,sha256=V1eijeRoVPOcl0QCoIVzc2d1p6goJfu3PNynINM-ZnU,715
3
+ ladok3/__init__.py,sha256=8p5PO73BbKE-1_uI61J2oLK90aVhnqI5U96UCMwx-18,108456
4
+ ladok3/api.nw,sha256=9KWyTaFt4mprovvVFxSTuBPCzrw2L7zy2GBkiRWTFUo,81300
5
+ ladok3/cli.nw,sha256=cAzz7AwdBqz_2dLxHnHM3P1awO2tOOFnsYkq2Z1-Ork,24254
6
+ ladok3/cli.py,sha256=4tE3dqlZDat5zUwrHUMbMoOvAmU1HheVtjUS-U2WtSM,13991
7
+ ladok3/data.nw,sha256=kiQeXTQZfjCOih23ZZ3Cv2ewapo8LultuTrcz2rYwuQ,15004
8
+ ladok3/data.py,sha256=FOoQjBalyKq4PvHJO1RNdORR-pI9Wp9SuLIi_vuSieA,9258
9
+ ladok3/ladok.bash,sha256=0GTnseONuSSyUc25g083kGEavJ48mbzbtz6AvGXV3tU,2007
10
+ ladok3/ladok3.nw,sha256=TaGyC8tTtT7nVcBaxZcnxHv7csMjjNhHPasoYFSjpRI,61594
11
+ ladok3/report.nw,sha256=UwCkelaqsTU42xGwQOsIKa1gX9CBD9fFMLkGutDY3wI,11842
12
+ ladok3/report.py,sha256=b2BZrswzqSU9gVSxK6Qp1iRvijbwvToWzb8fXn4caF4,7943
13
+ ladok3/scripts.nw,sha256=BgKUOEUc1JeShPvGLV4OJLQwrmCOyxUoe7pAeW00d34,8906
14
+ ladok3/student.nw,sha256=zimtqCwteEFo4NXmKsTovahUvw-lQZL-_DY_x52p3Uc,5925
15
+ ladok3/student.py,sha256=jvTbKVsCzn4qP2jwVJSzofUagyLPMRyjfb80e9t7GGM,3411
16
+ ladok3/undoc.nw,sha256=Nc_z-W8U4cGGv4Q1ko7JJM5vbLMMjwpDIwFAoYGbU2g,19925
17
+ ladok3-5.4.dist-info/LICENSE,sha256=Oe-mWTBQ-MzuA4jGuRDPDxQtMe8SuP_YjSQl7SOtZ7Q,1155
18
+ ladok3-5.4.dist-info/METADATA,sha256=1qb3RKKAPVIjXvKROVoBVfCyMCuICXDLGh6VbuDv58E,9091
19
+ ladok3-5.4.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
20
+ ladok3-5.4.dist-info/entry_points.txt,sha256=pi-KKP5Obo0AyuDjXQUpadS9kIvAY2_5ORhPgEYlJv8,41
21
+ ladok3-5.4.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 1.5.1
2
+ Generator: poetry-core 2.1.3
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
ladok3/.gitignore DELETED
@@ -1,10 +0,0 @@
1
- *.pdf
2
- *.tex
3
- *.py
4
- ltxobj/
5
- prgi.out
6
- prgi.pdf
7
- prgi.py
8
- prgi.tex
9
- ladok.bash
10
- test.bash
@@ -1,21 +0,0 @@
1
- doc/ltxobj/ladok3.pdf,sha256=ZNtJF5DITHsGVrFYbBZ-wyIavggm_gG2Y5WsxNSO6UI,1406261
2
- ladok3/.gitignore,sha256=QOcCshtjIsFasi4vaqFcooBWPJkxVWaoYEWOBBtdY_w,81
3
- ladok3/Makefile,sha256=Jy6OFjoVLU9YivnVxctxI_zrUOK9ysEOiistJ3ST6Nw,557
4
- ladok3/__init__.py,sha256=1Q17HcGR_21FjaBGoIOAS-yQliftHvGX-nO3XSm-92U,245438
5
- ladok3/api.nw,sha256=pHFU8T2tr2N4kJfyo7uKzNd1lpkd7KICK8lHzV6b1-Y,43304
6
- ladok3/cli.nw,sha256=57lgiWV9r_JOlv9tRcPviAq3jQB-sgF2loFWg_tf_Ak,21823
7
- ladok3/cli.py,sha256=gJUksVz_Hi4fjIo3OP6_bG-v505gJtq2nEXBRjdzAq4,11024
8
- ladok3/data.nw,sha256=3o6-kmeMtCGoSJ5yL8qFCuIINQeym_WtW_2mhItuR-s,11785
9
- ladok3/data.py,sha256=kPRO9l5DTQb9lGnN2kU-YYPSyg31t0bq5HCw986hbPk,6747
10
- ladok3/ladok.bash,sha256=zGfTFdtos2zLjV13pzfK-1uCy2b_lF2qUKMoL2ExW7c,1441
11
- ladok3/ladok3.nw,sha256=6er9_eF1ErShimmpmNh4UkC-EHoLn0HGK8NjzEz_fVM,52289
12
- ladok3/report.nw,sha256=Bp0-yNVb3NZ0WIj5xn9cpsnY6M60MWMzpX3BC9mXqN0,8972
13
- ladok3/report.py,sha256=1K7cRaedemiOGDDAMI9wqnctLeic5ZlMYHw5hzhnvQw,5627
14
- ladok3/student.nw,sha256=zayn9_b9jCKeMnZxSGS_EuSmF3ojOBHQDMUMMkpRssI,3747
15
- ladok3/student.py,sha256=TaYn2rpbQnzummB-8xz-sUEV31Gh0CUmU0QkF6VgEic,1703
16
- ladok3/undoc.nw,sha256=NyHuVIzrRqJPM39MyAlZNEE7PbXdUDJFQ2kJ0NfdwQI,180333
17
- ladok3-4.10.dist-info/LICENSE,sha256=s_C5qznXAvDRrzU7vRd4eqzshyIkAfPwGyVBihGeOdM,1155
18
- ladok3-4.10.dist-info/METADATA,sha256=5uZYnGaCctnfDcvhhdwLBhAKL3BaHpLNx5bv7pu5G_M,8822
19
- ladok3-4.10.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
20
- ladok3-4.10.dist-info/entry_points.txt,sha256=pi-KKP5Obo0AyuDjXQUpadS9kIvAY2_5ORhPgEYlJv8,41
21
- ladok3-4.10.dist-info/RECORD,,