ladok3 4.17__py3-none-any.whl → 4.18__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.

Potentially problematic release.


This version of ladok3 might be problematic. Click here for more details.

@@ -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--2024 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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ladok3
3
- Version: 4.17
3
+ Version: 4.18
4
4
  Summary: Python wrapper and CLI for the LADOK3 REST API.
5
5
  Home-page: https://github.com/dbosk/ladok3
6
6
  License: MIT
@@ -123,6 +123,33 @@ component_result.set_grade("P", "2021-03-15")
123
123
  component_result.finalize()
124
124
  ```
125
125
 
126
+ A better way is to use the `load_credentials` function of the CLI.
127
+ ```python
128
+ import ladok3
129
+ import ladok3.cli
130
+
131
+ ls = ladok3.LadokSession(*ladok3.cli.load_credentials())
132
+
133
+ student = ls.get_student("123456-1234")
134
+ # ...
135
+ ```
136
+
137
+ An even better way is to reuse the stored session to use the already built
138
+ cache.
139
+ ```python
140
+ import ladok3
141
+ import ladok3.cli
142
+
143
+ _, credentials = ladok3.cli.load_credentials()
144
+
145
+ ls = ladok3.cli.restore_ladok_session(credentials)
146
+
147
+ student = ls.get_student("123456-1234")
148
+ # ...
149
+
150
+ ladok3.cli.store_ladok_session(ls, credentials)
151
+ ```
152
+
126
153
  ## More documentation
127
154
 
128
155
  There are more detailed usage examples in the details documentation that can be
@@ -0,0 +1,21 @@
1
+ doc/ltxobj/ladok3.pdf,sha256=L6GABY_qW7__xbq4csR9ZBObo9Tv1PWDTnI-Xk6NDb0,2279609
2
+ ladok3/.gitignore,sha256=QOcCshtjIsFasi4vaqFcooBWPJkxVWaoYEWOBBtdY_w,81
3
+ ladok3/Makefile,sha256=Jy6OFjoVLU9YivnVxctxI_zrUOK9ysEOiistJ3ST6Nw,557
4
+ ladok3/__init__.py,sha256=2ySW9vSJ0joOV5TH9dtK_CAOdk1PByZ7jYfAwQxfAhc,87708
5
+ ladok3/api.nw,sha256=o7ZWO6eplSG3ReS0Y-rzcrLP2yiFVwvQUtg6dPDXG5E,66716
6
+ ladok3/cli.nw,sha256=sA5kevvAWBkzZHZ3UBkPEHoWvPw5yYtGYiPEnWMmjus,22864
7
+ ladok3/cli.py,sha256=6R7B0XVvYFlHcMbv6E73KOeI3ZGQFeQN2-ojz12H1vU,12555
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=mftysbBD9CLaKD8JgRcSO9KOnjV6koOd2dfmbSSJJi0,55594
12
+ ladok3/report.nw,sha256=5Ek05nj1ZJuxgLyXLCy9uDCjbK1HMk1q7R107l0h2HM,8972
13
+ ladok3/report.py,sha256=MuyR5klRnt392EJ1y7-bJi45s25e53eLcfxk5Nl467c,5627
14
+ ladok3/student.nw,sha256=qgJN1IA6oIoI4RsfWsoTaO2yxdtB_y3mBNSmlccoE4Y,4395
15
+ ladok3/student.py,sha256=a3z5dY18UXqxZh4WtEhgsUdHePhRNBiU5GaNNP6LKxI,2178
16
+ ladok3/undoc.nw,sha256=rRAZ8fC44PD2hBDF8TeEg1hyge_-vd-ScRcojRXQycI,19841
17
+ ladok3-4.18.dist-info/LICENSE,sha256=Oe-mWTBQ-MzuA4jGuRDPDxQtMe8SuP_YjSQl7SOtZ7Q,1155
18
+ ladok3-4.18.dist-info/METADATA,sha256=XV1BXSXSIcNDAZ-RfaiKRWGs7EW80MbFfr27nhmv3Jk,9371
19
+ ladok3-4.18.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
20
+ ladok3-4.18.dist-info/entry_points.txt,sha256=pi-KKP5Obo0AyuDjXQUpadS9kIvAY2_5ORhPgEYlJv8,41
21
+ ladok3-4.18.dist-info/RECORD,,
@@ -1,21 +0,0 @@
1
- doc/ltxobj/ladok3.pdf,sha256=pBUZeoGiKAzEdNc1fHCfL8Krzxgj8essAbpglIfruYQ,1415370
2
- ladok3/.gitignore,sha256=QOcCshtjIsFasi4vaqFcooBWPJkxVWaoYEWOBBtdY_w,81
3
- ladok3/Makefile,sha256=Jy6OFjoVLU9YivnVxctxI_zrUOK9ysEOiistJ3ST6Nw,557
4
- ladok3/__init__.py,sha256=9bZ_ktF7mg8QvQZcdN3t2AzY_k7g-9Zm-pPh-edMB3Y,246543
5
- ladok3/api.nw,sha256=P5MQa3AqaUVv-xL3R-AHcFnBWTpAAvzfwlCDKoNFw-M,43422
6
- ladok3/cli.nw,sha256=sA5kevvAWBkzZHZ3UBkPEHoWvPw5yYtGYiPEnWMmjus,22864
7
- ladok3/cli.py,sha256=6R7B0XVvYFlHcMbv6E73KOeI3ZGQFeQN2-ojz12H1vU,12555
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=QIpTOOGC-2p4_RUDJP_j-nMXM6DeSzWp3hJbWH_dq_k,53766
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.17.dist-info/LICENSE,sha256=v8tr5LW7KHBDRqGt1qInr7_jhWrIlkVxO8EqOyrc7AE,1155
18
- ladok3-4.17.dist-info/METADATA,sha256=ZxruPVGrER8Mg-XfY0mqBc3ZKCgJdUZskeHcYtbfBlM,8826
19
- ladok3-4.17.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
20
- ladok3-4.17.dist-info/entry_points.txt,sha256=pi-KKP5Obo0AyuDjXQUpadS9kIvAY2_5ORhPgEYlJv8,41
21
- ladok3-4.17.dist-info/RECORD,,
File without changes