├── .gitignore
├── .vscode
└── settings.json
├── LICENSE
├── README.md
├── images
├── MACRO_mistake.png
├── OS_mistake.png
├── class.png
├── class_condensed.png
├── compre.png
├── mids.png
└── tts.png
└── src
├── converter.py
├── create_json.py
├── files
├── my_timetables.json
├── output.csv
├── timetable.json
└── timetable.pdf
├── parse_times.py
├── poetry.lock
├── pyproject.toml
├── timetables.py
└── visualize.py
/.gitignore:
--------------------------------------------------------------------------------
1 | # Byte-compiled / optimized / DLL files
2 | __pycache__/
3 | *.py[cod]
4 | *$py.class
5 |
6 | # C extensions
7 | *.so
8 |
9 | # Distribution / packaging
10 | .Python
11 | build/
12 | develop-eggs/
13 | dist/
14 | downloads/
15 | eggs/
16 | .eggs/
17 | lib/
18 | lib64/
19 | parts/
20 | sdist/
21 | var/
22 | wheels/
23 | pip-wheel-metadata/
24 | share/python-wheels/
25 | *.egg-info/
26 | .installed.cfg
27 | *.egg
28 | MANIFEST
29 |
30 | # PyInstaller
31 | # Usually these files are written by a python script from a template
32 | # before PyInstaller builds the exe, so as to inject date/other infos into it.
33 | *.manifest
34 | *.spec
35 |
36 | # Installer logs
37 | pip-log.txt
38 | pip-delete-this-directory.txt
39 |
40 | # Unit test / coverage reports
41 | htmlcov/
42 | .tox/
43 | .nox/
44 | .coverage
45 | .coverage.*
46 | .cache
47 | nosetests.xml
48 | coverage.xml
49 | *.cover
50 | *.py,cover
51 | .hypothesis/
52 | .pytest_cache/
53 |
54 | # Translations
55 | *.mo
56 | *.pot
57 |
58 | # Django stuff:
59 | *.log
60 | local_settings.py
61 | db.sqlite3
62 | db.sqlite3-journal
63 |
64 | # Flask stuff:
65 | instance/
66 | .webassets-cache
67 |
68 | # Scrapy stuff:
69 | .scrapy
70 |
71 | # Sphinx documentation
72 | docs/_build/
73 |
74 | # PyBuilder
75 | target/
76 |
77 | # Jupyter Notebook
78 | .ipynb_checkpoints
79 |
80 | # IPython
81 | profile_default/
82 | ipython_config.py
83 |
84 | # pyenv
85 | .python-version
86 |
87 | # pipenv
88 | # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
89 | # However, in case of collaboration, if having platform-specific dependencies or dependencies
90 | # having no cross-platform support, pipenv may install dependencies that don't work, or not
91 | # install all needed dependencies.
92 | #Pipfile.lock
93 |
94 | # PEP 582; used by e.g. github.com/David-OConnor/pyflow
95 | __pypackages__/
96 |
97 | # Celery stuff
98 | celerybeat-schedule
99 | celerybeat.pid
100 |
101 | # SageMath parsed files
102 | *.sage.py
103 |
104 | # Environments
105 | .env
106 | .venv
107 | env/
108 | venv/
109 | ENV/
110 | env.bak/
111 | venv.bak/
112 |
113 | # Spyder project settings
114 | .spyderproject
115 | .spyproject
116 |
117 | # Rope project settings
118 | .ropeproject
119 |
120 | # mkdocs documentation
121 | /site
122 |
123 | # mypy
124 | .mypy_cache/
125 | .dmypy.json
126 | dmypy.json
127 |
128 | # Pyre type checker
129 | .pyre/
130 |
131 | # For MacOS
132 | src/.DS_Store
--------------------------------------------------------------------------------
/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "[python]": {
3 | "editor.defaultFormatter": "ms-python.black-formatter"
4 | },
5 | "python.formatting.provider": "none",
6 | "conventionalCommits.scopes": [
7 | "add variable values that match the example pdf"
8 | ]
9 | }
10 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 |
635 | Copyright (C)
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | Copyright (C)
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
675 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Chronoscript
2 |
3 | Chronofactorem exists, yes. It helps you easily make your timetable while checking for possible clashes, yes. But is it the timetable that matches your need the most? Maybe, you'd never know for sure.
4 |
5 | Depending on the courses you want, and the CDCs you need to take, there can be thousands of possible timetables _(psst.. CS 2-2 (2022-23) had over **30,000** timetables)_.
6 |
7 | Going through each of them is a .. not so fun task. Well, to an extent you can now automate this.
8 |
9 | Chronoscript currently automates the process of:
10 |
11 | 1. Converting the timetable pdf to a csv file.
12 | 2. Converting the csv file to a json file. (used for the chronofactorem website and the timetables script).
13 | 3. Generating all possible timetables with the given set of courses (without class hours **or** exam timing clashes).
14 | 4. Filters them and sorts them based on your needs. (days you want free, or days you want _liter_ than others).
15 |
16 | **Note:** The first two features are mainly for future developers, and not for users. However, instructions to use those features have been provided as well.
17 |
18 | ## Important information
19 |
20 | 1. This is **not** an official BITS project. We work with the timetable pdf that is made available to all students, and if there are any errors in details/formatting of the timetable, the tool may not work as expected. So, after the timetables are formed, it is advised to verify the timetable of your choice with the official timetable pdf (including exams).
21 |
22 | 2. The scripts generate multiple possible/permutations of the timetables which do not have any clashes, it is very compute heavy. This is why it is not going to be incorporated as part of the chronofactorem website as of now, and can only be run locally.
23 |
24 | 3. Additionally, it was not built with first-years in mind as your timetables will not have clashes and there are too many to take care of. However we will be working on optimising the code to make it work for first-years as well in the future.
25 |
26 | ## Contributing
27 |
28 | 1. We accept feature requests and bug reports as issues on this repository. If you want to contribute code, please open a pull request.
29 |
30 | 2. We appreciate any kind of help, be it code, documentation, or even just suggestions. If you want to contribute but don't know where to start, please reach out to any one of us.
31 |
32 | ## System requirements
33 |
34 | 1. Python `3.7+`, `3.10.11` is recommended. (Download from [here](https://www.python.org/downloads/), if you don't already have it installed)
35 |
36 | 2. Poetry (package manager for python) `1.5.0` is recommended. (Installation instructions for all platforms [here](https://python-poetry.org/docs/#installation))
37 |
38 | Quick installation instructions For Linux/MacOS/WSL, run the following command in your terminal:
39 |
40 | ```bash
41 |
42 | curl -sSL https://install.python-poetry.org | python3 -
43 |
44 | ```
45 |
46 | **Note:** Make sure you add poetry to your path variable as well.
47 |
48 | [**Common issue in adding poetry to path in MacOS**](https://github.com/python-poetry/poetry/issues/507)
49 |
50 | 3. **Optional**: If you wish to create you timetable form the PDF directly, you will also need the timetable pdf as given by the administration.
51 |
52 | **Note:** Using the updated CSV/JSON file provided in the repository is recommended, as at least some, if not all errors have already been removed. If you wish to create your own CSV/JSON file, follow the instructions in the [Generating the CSV file](#generating-the-csv-and-json-file) section.
53 |
54 | ## Usage instructions
55 |
56 | 1. Clone this repository to your local machine (or) download the zip file and extract it.
57 |
58 | 2. `cd` to the src directory.
59 |
60 | 3. Run `poetry shell` to activate the virtual environment.
61 |
62 | 4. Run `poetry install` to install all the dependencies.
63 |
64 | 5. If there are any particular course sections you'd like to avoid, remove them from the [json](./src/timetable.json) file.
65 |
66 | **Note:** We are currently working on a feature that allows you to do this interactively, but for now you'll have to do it manually.
67 |
68 | 6. Open `timetables.py` and navigate to the bottom of the file.
69 |
70 | 7. Modify the `CDCs`, `DELs`, `OPELs` and `HUELs` variables with the course codes you want (exhaustive) in your timetable.
71 |
72 | 8. Choose the number of DELs, OPELs and HUELs you want from these in `nDels`, `nOpels` and `nHuels` respectively. Leave as `len(...)`, if you want to pick all of them for sure.
73 |
74 | 9. Modify the `free_days` variable with the days you want to have free if possible.
75 |
76 | 10. Modify the `lite_order` variable with the relative order of _liteness_ you want to have in your timetable. For example, if my order is
77 |
78 | ```python
79 | ["S", "M", "Su", "F", "T", "W", "Th"]
80 | ```
81 |
82 | , then I want to have a timetable with the least number of hours on Saturday, then Monday, then Sunday, and so on.
83 |
84 | 11. Run `poetry run python timetables.py` to generate the timetables.
85 |
86 | The console output will show you the rough results of your filters, and the number of timetables generated.
87 |
88 | It additionally prints out the timetable that most suits your needs, and the one that matches your minimum requirements but is the furthest from your ideal timetable.
89 |
90 | Format: `(number of free days matched, [number of hours of classes per day, in order of the lite_order variable], timetable)`
91 |
92 | **Note**: This is used only for testing purposes and those who are comfortable with the script. You can visualize them as tables in the next step.
93 |
94 | ## Further instructions
95 |
96 | 1. You will now have a `my_timetables.json` file created.
97 |
98 | 2. This can be be visualized as tables using the `visualize.py` script, by specifying the index of the timetable you want to visualize. (`0`: most ideal, `n-1` or `-1`: least ideal) (where `n` denotes number of timetables generated)
99 |
100 | 3. Run `poetry run python visualize.py` to visualize the timetable.
101 |
102 | ### Example outputs
103 |
104 | #### Class schedule: condensed
105 |
106 | 
107 |
108 | #### Class schedule: expanded
109 |
110 | 
111 |
112 | #### Midsem schedule
113 |
114 | 
115 |
116 | #### Compre schedule
117 |
118 | 
119 |
120 | #### Matching your ideal timetable
121 |
122 | 
123 |
124 | ## Generating the CSV and JSON file
125 |
126 | 5. Open `converter.py` and navigate to the bottom of the file.
127 |
128 | 6. Modify the variables as the comments suggest to suit your needs/timetable. `(headers, file and page_range)`
129 |
130 | 7. Run `poetry run python converter.py` to generate the csv file.
131 |
132 | 8. Fix any errors in formatting or course details in the CSV file (see more below in the [Fixing errors in the CSV file](#fixing-errors-in-the-csv-file) section).
133 |
134 | 9. Open `create_json.py` and navigate to the bottom of the file.
135 |
136 | 10. In the general case, there shouldn't be any need to modify the variables. However, if there is a column reorder in the csv file, you can modify the `columns` variable to match the order of the columns in the csv file.
137 |
138 | 11. Run `poetry run python create_json.py` to generate the json file.
139 |
140 | ## Fixing errors in the CSV file
141 |
142 | In some cases there can be formatting errors/course detail errors are present in the PDF given by the administration. In such cases, the CSV file generated will have errors. We will need to fix these before creating our `timetable.json` file.
143 |
144 | Examples of such errors are:
145 |
146 | 1. Formatting errors:
147 |
148 | 
149 |
150 | Here, the `hours` column should ideally just have `13` like the other courses, hence we need to fix this in the generated csv file from `"13(8.00p\nm)"` to `"13"`.
151 |
152 | 2. Course detail errors:
153 |
154 | 
155 |
156 | Here, the word `Tutorial` should be in the row below, and the corresponding section should be marked as `1` (latter fix is optional, as script takes care of it). So once again, we need to fix this in the generated csv file.
157 |
158 | ## Features we are working on (in no particular order)
159 |
160 | 1. Generating a CLI/TUI that works across all platforms that will let you do this interactively, and not having to modify and src files.
161 |
162 | 2. Functionality to balance out the timetables across the week, so that you don't have too many classes on one day and too few on another.
163 |
164 | 3. Functionality to sort timetables by exam liteness. (and set priority to exam liteness over class liteness, or vice versa)
165 |
166 | 4. (Tentative) Functionality to add any course under a department that follows your filters to satisfy a course requirement.
167 |
168 | 5. (Tentative) Working with first-year timetables.
169 |
--------------------------------------------------------------------------------
/images/MACRO_mistake.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crux-bphc/chronoscript/1141ea412b7c22dfaade51cfcfa6c77450dbeeb7/images/MACRO_mistake.png
--------------------------------------------------------------------------------
/images/OS_mistake.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crux-bphc/chronoscript/1141ea412b7c22dfaade51cfcfa6c77450dbeeb7/images/OS_mistake.png
--------------------------------------------------------------------------------
/images/class.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crux-bphc/chronoscript/1141ea412b7c22dfaade51cfcfa6c77450dbeeb7/images/class.png
--------------------------------------------------------------------------------
/images/class_condensed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crux-bphc/chronoscript/1141ea412b7c22dfaade51cfcfa6c77450dbeeb7/images/class_condensed.png
--------------------------------------------------------------------------------
/images/compre.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crux-bphc/chronoscript/1141ea412b7c22dfaade51cfcfa6c77450dbeeb7/images/compre.png
--------------------------------------------------------------------------------
/images/mids.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crux-bphc/chronoscript/1141ea412b7c22dfaade51cfcfa6c77450dbeeb7/images/mids.png
--------------------------------------------------------------------------------
/images/tts.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crux-bphc/chronoscript/1141ea412b7c22dfaade51cfcfa6c77450dbeeb7/images/tts.png
--------------------------------------------------------------------------------
/src/converter.py:
--------------------------------------------------------------------------------
1 | import pdfplumber
2 | import pandas as pd
3 |
4 |
5 | def remove_headers(
6 | table: list[list[str]], remove_rows_containing_any_of: list[str]
7 | ) -> list[list[str]]:
8 | """
9 | Function to remove headers from the table. I.e. remove rows that contain any of the strings in the list which do not contribute to the content of the timetable.
10 |
11 | Args:
12 | table (list[list[str]]): The table to remove the headers from.
13 | remove_rows_containing_any_of (list[str]): The list of strings to check for in the table, and remove the row if any of the strings are found.
14 |
15 | Returns:
16 | list[list[str]]: The table with the headers removed.
17 | """
18 | new_table: list[list[str]] = []
19 | for row in table:
20 | transfer: bool = True
21 | for string in remove_rows_containing_any_of:
22 | if string in row:
23 | transfer: bool = False
24 | break
25 | if transfer:
26 | new_table.append(row)
27 | return new_table
28 |
29 |
30 | def convert_timetable_to_csv(
31 | pages: list[pdfplumber.page.Page], headers: list[str]
32 | ) -> pd.DataFrame():
33 | """
34 | Function to convert the timetable to a pandas dataframe.
35 |
36 | Args:
37 | pages (list[pdfplumber.page.Page]): The pages to extract the timetable from.
38 | headers (list[str]): The headers to remove from the table.
39 |
40 | Returns:
41 | pd.DataFrame(): The timetable as a pandas dataframe.
42 | """
43 | df = pd.DataFrame()
44 | for page in pages:
45 | table = page.extract_table()
46 | table = remove_headers(
47 | table,
48 | headers,
49 | )
50 | df = pd.concat([df, pd.DataFrame(table)])
51 | return df
52 |
53 |
54 | if __name__ == "__main__":
55 | # headers to remove from the table
56 | headers: list[str] = ["COMP\nCODE", "DRAFT TIMETABLE II SEMESTER 2024 -25"]
57 |
58 | # page range to extract the timetable from
59 | # [from, to]
60 | page_range: list[int] = [1, 66]
61 |
62 | # path to the pdf file
63 | file: str = r"./files/timetable.pdf"
64 |
65 | pdf: pdfplumber.pdf.PDF = pdfplumber.open(file)
66 |
67 | # might need to play around with the +-1, depending on how the pdf is formatted and how pdfplumber extracts the pages
68 | pages: list[pdfplumber.page.Page] = pdf.pages[page_range[0] - 1 : page_range[1]]
69 |
70 | data: pd.DataFrame = convert_timetable_to_csv(pages, headers)
71 |
72 | # output the dataframe to csv
73 | data.to_csv("./files/output.csv", index=False)
74 |
--------------------------------------------------------------------------------
/src/create_json.py:
--------------------------------------------------------------------------------
1 | import pandas as pd
2 | import numpy as np
3 | import json
4 | from parse_times import parse_time, parse_compre_time
5 |
6 |
7 | def isnan(value):
8 | """
9 | Function to check if a value is NaN.
10 |
11 | Args:
12 | value: The value to check.
13 |
14 | Returns:
15 | bool: True if the value is NaN, False otherwise.
16 | """
17 | try:
18 | import math
19 |
20 | return math.isnan(float(value))
21 | except:
22 | return False
23 |
24 |
25 | def convert_all_sets_to_list_recursive(obj: dict) -> dict:
26 | """
27 | Function to convert all sets in a dictionary to lists recursively. This is done because sets are not serializable.
28 |
29 | Args:
30 | obj (dict): The dictionary to convert the sets in.
31 |
32 | Returns:
33 | dict: The dictionary with all sets converted to lists.
34 | """
35 | if isinstance(obj, dict):
36 | for key, value in obj.items():
37 | obj[key] = convert_all_sets_to_list_recursive(value)
38 | elif isinstance(obj, set):
39 | obj = list(obj)
40 | return obj
41 |
42 |
43 | def remove_duplicate_dicts(l: list[dict]) -> list[dict]:
44 | """
45 | Function to remove duplicate dictionaries from a list of dictionaries.
46 |
47 | Args:
48 | l (list[dict]): The list of dictionaries to remove duplicates from.
49 |
50 | Returns:
51 | list[dict]: The list of dictionaries with duplicates removed.
52 | """
53 | seen = set()
54 | new_l = []
55 | for d in l:
56 | t = tuple(sorted(d.items()))
57 | if t not in seen:
58 | seen.add(t)
59 | new_l.append(d)
60 |
61 | return new_l
62 |
63 |
64 | def null_empty_exams(course_json: dict) -> dict:
65 | """
66 | Function to nullify empty exams in a course json.
67 |
68 | Args:
69 | course_json (dict): The course json to nullify empty exams in.
70 |
71 | Returns:
72 | dict: The course json with empty exams nullified.
73 | """
74 | for course_code in course_json["courses"]:
75 | course = course_json["courses"][course_code]
76 | if len(course.get("exams")) == 0:
77 | course["exams"] = [{}]
78 | if len(course.get("exams_iso")) == 0:
79 | course["exams_iso"] = [{}]
80 | if course["exams"][0].get("midsem") == None:
81 | course["exams"][0]["midsem"] = None
82 | if course["exams"][0].get("compre") == None:
83 | course["exams"][0]["compre"] = None
84 | if course["exams_iso"][0].get("midsem") == None:
85 | course["exams_iso"][0]["midsem"] = None
86 | if course["exams_iso"][0].get("compre") == None:
87 | course["exams_iso"][0]["compre"] = None
88 |
89 | return course_json
90 |
91 |
92 | def create_json_file(
93 | timetable: pd.DataFrame,
94 | columns: list[str],
95 | output_file: str,
96 | year: int,
97 | academic_year: int,
98 | semester: int,
99 | ) -> None:
100 | """
101 | Function to create a json file from a timetable dataframe.
102 |
103 | Args:
104 | timetable (pd.DataFrame): The timetable dataframe to create the json file from.
105 | columns (list[str]): The columns of the dataframe.
106 | output_file (str): The name of the output json file.
107 | year (int): The academic year of the timetable. (example: 2023)
108 | academic_year (int): The academic year of the timetable. (example: 2021 is for acad year 2021-2022)
109 | semester (int): The semester of the timetable. (example: 1 is for odd semester, 2 is for even semester)
110 | """
111 | tt: pd.DataFrame = timetable
112 | course_json: dict = {}
113 | tt.columns = columns
114 | tt.drop(columns=["serial"], inplace=True)
115 |
116 | # Filling all empty rows with the previous row's value for simplicity
117 | # tt.fillna(method="ffill", inplace=True)
118 |
119 | cols = [
120 | "course_code",
121 | "course_name",
122 | "section",
123 | "instructor",
124 | ]
125 | tt.loc[:, cols] = tt.loc[:, cols].ffill()
126 |
127 | # fix for 2024-2025 sem 1 draft timetable
128 | # tt["compre"] = tt["midsem"] + " " + tt["compre"]
129 | # tt = tt.assign(midsem="NaN")
130 | # tt = tt[tt["course_code"] != "COURSE NO."]
131 | # tt = tt[tt["course_code"].notna()]
132 |
133 | # note that this automates the boring stuff, it does not automate the truly fascinating spliced fuckups
134 | # f = -1
135 | # for i, row in tt.iterrows():
136 | # if f == -1 or row["course_name"] in ["Lecture", "Tutorial", "Practical"] or prev_row["course_name"] in ["Lecture", "Tutorial", "Practical"]:
137 | # prev_row = row
138 | # f = 1
139 | # continue
140 | # if row["course_code"] == prev_row["course_code"] and row["course_name"].strip() != prev_row["course_name"].strip():
141 | # print(prev_row["course_name"], row["course_name"])
142 | # prev_row = row
143 |
144 | for _, row in tt.iterrows():
145 | course_code = row["course_code"]
146 |
147 | # initialize course and course details if not already initialized
148 | if course_json.get(course_code) is None:
149 | course_json[course_code] = {}
150 | course_json[course_code]["units"] = row["U"]
151 | course_json[course_code]["lecture units"] = row["L"]
152 | course_json[course_code]["practical units"] = row["P"]
153 | if course_json[course_code].get("course_name") is None:
154 | course_json[course_code]["course_name"] = row["course_name"]
155 | if course_json[course_code].get("sections") is None:
156 | course_json[course_code]["sections"] = {}
157 |
158 | # make sure sections of different kinds of classes (lecture, tutorial, practical) are not overwritten by each other
159 | # to make sure of that, and for common lingo, we add a prefix to the section number
160 |
161 | # section = int(row["section"])
162 | # if row["course_name"] == "Tutorial":
163 | # section = "T" + str(section)
164 | # elif (row["course_name"] == "Practical") or (
165 | # course_json[course_code]["lecture units"] == "-"
166 | # and course_json[course_code]["practical units"] != "-"
167 | # ):
168 | # section = "P" + str(section)
169 | # else:
170 | # section = "L" + str(section)
171 |
172 | # New 2024-25 Draft timetable for sem 2 already has the above part formatted
173 | section = row["section"]
174 |
175 | # initialize section and section details if not already initialized
176 | if course_json[course_code]["sections"].get(section) is None:
177 | course_json[course_code]["sections"][section] = {}
178 |
179 | if course_json[course_code]["sections"][section].get("instructor") is None:
180 | course_json[course_code]["sections"][section]["instructor"] = set()
181 |
182 | # add instructor to the set of instructors for the section
183 | course_json[course_code]["sections"][section]["instructor"].add(
184 | row["instructor"]
185 | )
186 |
187 | # initialize schedule if not already initialized
188 | if course_json[course_code]["sections"][section].get("schedule") is None:
189 | course_json[course_code]["sections"][section]["schedule"] = []
190 |
191 | # add schedule to the list of schedules for the section
192 | # list of schedules is a list of dictionaries, where each dictionary is a schedule
193 | # we kept it as a list, as a class may have multiple schedules (eg: "T Th @ 4" and "S @ 2")
194 | dictionary = {}
195 | if not isnan(row["room"]):
196 | dictionary["room"] = row["room"]
197 | else:
198 | dictionary["room"] = np.nan
199 |
200 | if not isnan(row["days"]):
201 | dictionary["days"] = tuple(row["days"].split())
202 | else:
203 | dictionary["days"] = np.nan
204 |
205 | if not isnan(row["hours"]):
206 | dictionary["hours"] = tuple([int(x) for x in list(row["hours"].split())])
207 | else:
208 | dictionary["hours"] = np.nan
209 |
210 | if not (
211 | isnan(dictionary["room"])
212 | and isnan(dictionary["days"])
213 | and isnan(dictionary["hours"])
214 | ):
215 | course_json[course_code]["sections"][section]["schedule"].append(dictionary)
216 |
217 | # remove duplicate schedules
218 | course_json[course_code]["sections"][section][
219 | "schedule"
220 | ] = remove_duplicate_dicts(
221 | course_json[course_code]["sections"][section]["schedule"]
222 | )
223 |
224 | # initialize exams if not already initialized
225 | if course_json[course_code].get("exams") is None:
226 | course_json[course_code]["exams"] = []
227 |
228 | exam_dict = {}
229 | # add exams to the list of exams for the course
230 | if not isnan(row["midsem"]):
231 | exam_dict["midsem"] = row["midsem"]
232 |
233 | if not isnan(row["compre"]):
234 | exam_dict["compre"] = row["compre"]
235 |
236 | if exam_dict:
237 | course_json[course_code]["exams"].append(exam_dict)
238 |
239 | # remove duplicate exams
240 | course_json[course_code]["exams"] = remove_duplicate_dicts(
241 | course_json[course_code]["exams"]
242 | )
243 |
244 | # parse exam times
245 | for course_code in course_json:
246 | # remove lecture units, practical units
247 | del course_json[course_code]["lecture units"]
248 | del course_json[course_code]["practical units"]
249 | exams_list = course_json[course_code]["exams"]
250 | exams_iso = []
251 | for exam in exams_list:
252 | exam_iso = {}
253 |
254 | if exam.get("midsem"):
255 | exam_iso["midsem"] = parse_time(exam["midsem"], year)
256 |
257 | if exam.get("compre"):
258 | exam_iso["compre"] = parse_compre_time(exam["compre"], year)
259 |
260 | if exam_iso:
261 | exams_iso.append(exam_iso)
262 | # remove duplicate exams
263 | course_json[course_code]["exams_iso"] = remove_duplicate_dicts(exams_iso)
264 |
265 | # convert file to serializable format
266 | convert_all_sets_to_list_recursive(course_json)
267 | final_json = {}
268 | final_json["metadata"] = {
269 | "acadYear": academic_year,
270 | "semester": semester,
271 | }
272 | final_json["courses"] = course_json
273 |
274 | final_json = null_empty_exams(final_json)
275 |
276 | # output the json file
277 | json.dump(final_json, open(output_file, "w"), indent=4)
278 |
279 |
280 | if __name__ == "__main__":
281 | # reorder the columns as and when needed
282 | columns = [
283 | "serial",
284 | "course_code",
285 | "course_name",
286 | "L",
287 | "P",
288 | "U",
289 | "section",
290 | "instructor",
291 | "room",
292 | "days",
293 | "hours",
294 | "midsem",
295 | "compre",
296 | ]
297 |
298 | timetable = pd.read_csv("./files/output.csv")
299 |
300 | create_json_file(timetable, columns, "./files/timetable.json", 2024, 2024, 1)
301 |
--------------------------------------------------------------------------------
/src/files/timetable.pdf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/crux-bphc/chronoscript/1141ea412b7c22dfaade51cfcfa6c77450dbeeb7/src/files/timetable.pdf
--------------------------------------------------------------------------------
/src/parse_times.py:
--------------------------------------------------------------------------------
1 | import pandas as pd
2 |
3 |
4 | def parse_time(time: str, year: int, midsem=True) -> str:
5 | """
6 | Function to parse the time from the string given by ttd, to ISO format for easier consumption in the web site.
7 |
8 | Args:
9 | time (str): The string given by ttd for the time. (Format: "13/03 11.30 - 1.00PM")
10 | year (int): The year of the timetable. (example: 2023)
11 |
12 | Returns:
13 | str: The time in ISO format. (example: "2023-03-13T11:30:00|2023-03-13T13:00:00")
14 | """
15 | if midsem:
16 | time = time.split()
17 |
18 | # New 2024-25 Draft timetable for sem 2 doesn't have an extra '-' to be removed
19 | #time.pop(1)
20 |
21 | time = " ".join(time)
22 |
23 | parts = time.split()
24 |
25 | date_in_year = parts[0].split("/")
26 |
27 | date = date_in_year[0] + "-" + date_in_year[1] + "-" + str(year)
28 |
29 | start = parts[1].split(".")
30 | end = parts[3].split(".")
31 |
32 | end_time = end[1][-2:]
33 | end[1] = end[1][:-2]
34 |
35 | start_pm = start.copy()
36 |
37 | if end_time == "PM":
38 | # as hours are from 0 to 23, we add 12 to the hours to get the correct time
39 | if end[0] != "12":
40 | end[0] = str(int(end[0]) + 12)
41 | if start_pm[0] != "12":
42 | start_pm[0] = str(int(start_pm[0]) + 12)
43 |
44 | # mostly unnecessary, but for the sake of completeness
45 | if end_time == "AM" and end[0] == "12":
46 | end[0] = "00"
47 |
48 | # consider both cases if end time is PM
49 | # assumption is exam doesn't last longer than 12 hours (sane)
50 | # so if end time is PM and start_pm is less than end, then start_pm is correct start
51 | # otherwise start/start_am is correct start
52 | start_date_am = date + "T" + start[0] + ":" + start[1] + ":00"
53 | start_date_pm = date + "T" + start_pm[0] + ":" + start_pm[1] + ":00"
54 | end_date = date + "T" + end[0] + ":" + end[1] + ":00"
55 |
56 | end_date = pd.to_datetime(end_date, dayfirst=True).isoformat()
57 | start_date_am = pd.to_datetime(start_date_am, dayfirst=True).isoformat()
58 | start_date_pm = pd.to_datetime(start_date_pm, dayfirst=True).isoformat()
59 |
60 | # print(start_date_am, start_date_pm, end_date)
61 |
62 | if end_time == "PM":
63 | if pd.Timestamp(start_date_pm) > pd.Timestamp(end_date):
64 | start_date_am = pd.Timestamp(start_date_am)
65 | return (
66 | (
67 | pd.Timestamp(start_date_am) - pd.Timedelta(hours=5, minutes=30)
68 | ).isoformat()
69 | + "|"
70 | + (
71 | pd.Timestamp(end_date) - pd.Timedelta(hours=5, minutes=30)
72 | ).isoformat()
73 | )
74 |
75 | else:
76 | start_date_pm = pd.Timestamp(start_date_pm)
77 | return (
78 | str(
79 | (
80 | pd.Timestamp(start_date_pm) - pd.Timedelta(hours=5, minutes=30)
81 | ).isoformat()
82 | )
83 | + "|"
84 | + (
85 | pd.Timestamp(end_date) - pd.Timedelta(hours=5, minutes=30)
86 | ).isoformat()
87 | )
88 |
89 | else:
90 | start_date_am = pd.Timestamp(start_date_am)
91 | return (
92 | (
93 | pd.Timestamp(start_date_am) - pd.Timedelta(hours=5, minutes=30)
94 | ).isoformat()
95 | + "|"
96 | + (pd.Timestamp(end_date) - pd.Timedelta(hours=5, minutes=30)).isoformat()
97 | )
98 |
99 |
100 | def parse_compre_time(compre_time: str, year: int):
101 | """
102 | Function to parse the compre time from the string given by ttd, to ISO format for easier consumption in the web site.
103 |
104 | Args:
105 | compre_time (str): The string given by ttd for the compre time. (Format: "19/05 FN")
106 | year (int): The year of the timetable. (example: 2023)
107 |
108 | Returns:
109 | str: The compre time in ISO format. (example: "2023-05-19T09:30:00|2023-05-19T12:30:00")
110 | """
111 | lookup = {"FN": "9.30 - 12.30PM", "AN": "2.00 - 5.00PM"}
112 | compre_time = compre_time[:5] + " " + compre_time[5:]
113 | time = compre_time.split()[0] + " " + lookup[compre_time.split()[1]]
114 | return parse_time(time, year, False)
115 |
116 |
117 | if __name__ == "__main__":
118 | print(parse_time("14/10 - 4.00 - 5.30PM", 2023))
119 | print(parse_compre_time("21/12 AN", 2023))
120 |
--------------------------------------------------------------------------------
/src/poetry.lock:
--------------------------------------------------------------------------------
1 | # This file is automatically @generated by Poetry 1.8.3 and should not be changed by hand.
2 |
3 | [[package]]
4 | name = "black"
5 | version = "23.12.1"
6 | description = "The uncompromising code formatter."
7 | optional = false
8 | python-versions = ">=3.8"
9 | files = [
10 | {file = "black-23.12.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:e0aaf6041986767a5e0ce663c7a2f0e9eaf21e6ff87a5f95cbf3675bfd4c41d2"},
11 | {file = "black-23.12.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:c88b3711d12905b74206227109272673edce0cb29f27e1385f33b0163c414bba"},
12 | {file = "black-23.12.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a920b569dc6b3472513ba6ddea21f440d4b4c699494d2e972a1753cdc25df7b0"},
13 | {file = "black-23.12.1-cp310-cp310-win_amd64.whl", hash = "sha256:3fa4be75ef2a6b96ea8d92b1587dd8cb3a35c7e3d51f0738ced0781c3aa3a5a3"},
14 | {file = "black-23.12.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:8d4df77958a622f9b5a4c96edb4b8c0034f8434032ab11077ec6c56ae9f384ba"},
15 | {file = "black-23.12.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:602cfb1196dc692424c70b6507593a2b29aac0547c1be9a1d1365f0d964c353b"},
16 | {file = "black-23.12.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9c4352800f14be5b4864016882cdba10755bd50805c95f728011bcb47a4afd59"},
17 | {file = "black-23.12.1-cp311-cp311-win_amd64.whl", hash = "sha256:0808494f2b2df923ffc5723ed3c7b096bd76341f6213989759287611e9837d50"},
18 | {file = "black-23.12.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:25e57fd232a6d6ff3f4478a6fd0580838e47c93c83eaf1ccc92d4faf27112c4e"},
19 | {file = "black-23.12.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:2d9e13db441c509a3763a7a3d9a49ccc1b4e974a47be4e08ade2a228876500ec"},
20 | {file = "black-23.12.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6d1bd9c210f8b109b1762ec9fd36592fdd528485aadb3f5849b2740ef17e674e"},
21 | {file = "black-23.12.1-cp312-cp312-win_amd64.whl", hash = "sha256:ae76c22bde5cbb6bfd211ec343ded2163bba7883c7bc77f6b756a1049436fbb9"},
22 | {file = "black-23.12.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:1fa88a0f74e50e4487477bc0bb900c6781dbddfdfa32691e780bf854c3b4a47f"},
23 | {file = "black-23.12.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:a4d6a9668e45ad99d2f8ec70d5c8c04ef4f32f648ef39048d010b0689832ec6d"},
24 | {file = "black-23.12.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b18fb2ae6c4bb63eebe5be6bd869ba2f14fd0259bda7d18a46b764d8fb86298a"},
25 | {file = "black-23.12.1-cp38-cp38-win_amd64.whl", hash = "sha256:c04b6d9d20e9c13f43eee8ea87d44156b8505ca8a3c878773f68b4e4812a421e"},
26 | {file = "black-23.12.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:3e1b38b3135fd4c025c28c55ddfc236b05af657828a8a6abe5deec419a0b7055"},
27 | {file = "black-23.12.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:4f0031eaa7b921db76decd73636ef3a12c942ed367d8c3841a0739412b260a54"},
28 | {file = "black-23.12.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:97e56155c6b737854e60a9ab1c598ff2533d57e7506d97af5481141671abf3ea"},
29 | {file = "black-23.12.1-cp39-cp39-win_amd64.whl", hash = "sha256:dd15245c8b68fe2b6bd0f32c1556509d11bb33aec9b5d0866dd8e2ed3dba09c2"},
30 | {file = "black-23.12.1-py3-none-any.whl", hash = "sha256:78baad24af0f033958cad29731e27363183e140962595def56423e626f4bee3e"},
31 | {file = "black-23.12.1.tar.gz", hash = "sha256:4ce3ef14ebe8d9509188014d96af1c456a910d5b5cbf434a09fef7e024b3d0d5"},
32 | ]
33 |
34 | [package.dependencies]
35 | click = ">=8.0.0"
36 | mypy-extensions = ">=0.4.3"
37 | packaging = ">=22.0"
38 | pathspec = ">=0.9.0"
39 | platformdirs = ">=2"
40 | tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""}
41 | typing-extensions = {version = ">=4.0.1", markers = "python_version < \"3.11\""}
42 |
43 | [package.extras]
44 | colorama = ["colorama (>=0.4.3)"]
45 | d = ["aiohttp (>=3.7.4)", "aiohttp (>=3.7.4,!=3.9.0)"]
46 | jupyter = ["ipython (>=7.8.0)", "tokenize-rt (>=3.2.0)"]
47 | uvloop = ["uvloop (>=0.15.2)"]
48 |
49 | [[package]]
50 | name = "cffi"
51 | version = "1.16.0"
52 | description = "Foreign Function Interface for Python calling C code."
53 | optional = false
54 | python-versions = ">=3.8"
55 | files = [
56 | {file = "cffi-1.16.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:6b3d6606d369fc1da4fd8c357d026317fbb9c9b75d36dc16e90e84c26854b088"},
57 | {file = "cffi-1.16.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:ac0f5edd2360eea2f1daa9e26a41db02dd4b0451b48f7c318e217ee092a213e9"},
58 | {file = "cffi-1.16.0-cp310-cp310-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:7e61e3e4fa664a8588aa25c883eab612a188c725755afff6289454d6362b9673"},
59 | {file = "cffi-1.16.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a72e8961a86d19bdb45851d8f1f08b041ea37d2bd8d4fd19903bc3083d80c896"},
60 | {file = "cffi-1.16.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5b50bf3f55561dac5438f8e70bfcdfd74543fd60df5fa5f62d94e5867deca684"},
61 | {file = "cffi-1.16.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:7651c50c8c5ef7bdb41108b7b8c5a83013bfaa8a935590c5d74627c047a583c7"},
62 | {file = "cffi-1.16.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e4108df7fe9b707191e55f33efbcb2d81928e10cea45527879a4749cbe472614"},
63 | {file = "cffi-1.16.0-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:32c68ef735dbe5857c810328cb2481e24722a59a2003018885514d4c09af9743"},
64 | {file = "cffi-1.16.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:673739cb539f8cdaa07d92d02efa93c9ccf87e345b9a0b556e3ecc666718468d"},
65 | {file = "cffi-1.16.0-cp310-cp310-win32.whl", hash = "sha256:9f90389693731ff1f659e55c7d1640e2ec43ff725cc61b04b2f9c6d8d017df6a"},
66 | {file = "cffi-1.16.0-cp310-cp310-win_amd64.whl", hash = "sha256:e6024675e67af929088fda399b2094574609396b1decb609c55fa58b028a32a1"},
67 | {file = "cffi-1.16.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:b84834d0cf97e7d27dd5b7f3aca7b6e9263c56308ab9dc8aae9784abb774d404"},
68 | {file = "cffi-1.16.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:1b8ebc27c014c59692bb2664c7d13ce7a6e9a629be20e54e7271fa696ff2b417"},
69 | {file = "cffi-1.16.0-cp311-cp311-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ee07e47c12890ef248766a6e55bd38ebfb2bb8edd4142d56db91b21ea68b7627"},
70 | {file = "cffi-1.16.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d8a9d3ebe49f084ad71f9269834ceccbf398253c9fac910c4fd7053ff1386936"},
71 | {file = "cffi-1.16.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:e70f54f1796669ef691ca07d046cd81a29cb4deb1e5f942003f401c0c4a2695d"},
72 | {file = "cffi-1.16.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:5bf44d66cdf9e893637896c7faa22298baebcd18d1ddb6d2626a6e39793a1d56"},
73 | {file = "cffi-1.16.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7b78010e7b97fef4bee1e896df8a4bbb6712b7f05b7ef630f9d1da00f6444d2e"},
74 | {file = "cffi-1.16.0-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:c6a164aa47843fb1b01e941d385aab7215563bb8816d80ff3a363a9f8448a8dc"},
75 | {file = "cffi-1.16.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:e09f3ff613345df5e8c3667da1d918f9149bd623cd9070c983c013792a9a62eb"},
76 | {file = "cffi-1.16.0-cp311-cp311-win32.whl", hash = "sha256:2c56b361916f390cd758a57f2e16233eb4f64bcbeee88a4881ea90fca14dc6ab"},
77 | {file = "cffi-1.16.0-cp311-cp311-win_amd64.whl", hash = "sha256:db8e577c19c0fda0beb7e0d4e09e0ba74b1e4c092e0e40bfa12fe05b6f6d75ba"},
78 | {file = "cffi-1.16.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:fa3a0128b152627161ce47201262d3140edb5a5c3da88d73a1b790a959126956"},
79 | {file = "cffi-1.16.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:68e7c44931cc171c54ccb702482e9fc723192e88d25a0e133edd7aff8fcd1f6e"},
80 | {file = "cffi-1.16.0-cp312-cp312-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:abd808f9c129ba2beda4cfc53bde801e5bcf9d6e0f22f095e45327c038bfe68e"},
81 | {file = "cffi-1.16.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:88e2b3c14bdb32e440be531ade29d3c50a1a59cd4e51b1dd8b0865c54ea5d2e2"},
82 | {file = "cffi-1.16.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:fcc8eb6d5902bb1cf6dc4f187ee3ea80a1eba0a89aba40a5cb20a5087d961357"},
83 | {file = "cffi-1.16.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b7be2d771cdba2942e13215c4e340bfd76398e9227ad10402a8767ab1865d2e6"},
84 | {file = "cffi-1.16.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e715596e683d2ce000574bae5d07bd522c781a822866c20495e52520564f0969"},
85 | {file = "cffi-1.16.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:2d92b25dbf6cae33f65005baf472d2c245c050b1ce709cc4588cdcdd5495b520"},
86 | {file = "cffi-1.16.0-cp312-cp312-win32.whl", hash = "sha256:b2ca4e77f9f47c55c194982e10f058db063937845bb2b7a86c84a6cfe0aefa8b"},
87 | {file = "cffi-1.16.0-cp312-cp312-win_amd64.whl", hash = "sha256:68678abf380b42ce21a5f2abde8efee05c114c2fdb2e9eef2efdb0257fba1235"},
88 | {file = "cffi-1.16.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:0c9ef6ff37e974b73c25eecc13952c55bceed9112be2d9d938ded8e856138bcc"},
89 | {file = "cffi-1.16.0-cp38-cp38-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a09582f178759ee8128d9270cd1344154fd473bb77d94ce0aeb2a93ebf0feaf0"},
90 | {file = "cffi-1.16.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e760191dd42581e023a68b758769e2da259b5d52e3103c6060ddc02c9edb8d7b"},
91 | {file = "cffi-1.16.0-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:80876338e19c951fdfed6198e70bc88f1c9758b94578d5a7c4c91a87af3cf31c"},
92 | {file = "cffi-1.16.0-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:a6a14b17d7e17fa0d207ac08642c8820f84f25ce17a442fd15e27ea18d67c59b"},
93 | {file = "cffi-1.16.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6602bc8dc6f3a9e02b6c22c4fc1e47aa50f8f8e6d3f78a5e16ac33ef5fefa324"},
94 | {file = "cffi-1.16.0-cp38-cp38-win32.whl", hash = "sha256:131fd094d1065b19540c3d72594260f118b231090295d8c34e19a7bbcf2e860a"},
95 | {file = "cffi-1.16.0-cp38-cp38-win_amd64.whl", hash = "sha256:31d13b0f99e0836b7ff893d37af07366ebc90b678b6664c955b54561fc36ef36"},
96 | {file = "cffi-1.16.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:582215a0e9adbe0e379761260553ba11c58943e4bbe9c36430c4ca6ac74b15ed"},
97 | {file = "cffi-1.16.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:b29ebffcf550f9da55bec9e02ad430c992a87e5f512cd63388abb76f1036d8d2"},
98 | {file = "cffi-1.16.0-cp39-cp39-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:dc9b18bf40cc75f66f40a7379f6a9513244fe33c0e8aa72e2d56b0196a7ef872"},
99 | {file = "cffi-1.16.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9cb4a35b3642fc5c005a6755a5d17c6c8b6bcb6981baf81cea8bfbc8903e8ba8"},
100 | {file = "cffi-1.16.0-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b86851a328eedc692acf81fb05444bdf1891747c25af7529e39ddafaf68a4f3f"},
101 | {file = "cffi-1.16.0-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c0f31130ebc2d37cdd8e44605fb5fa7ad59049298b3f745c74fa74c62fbfcfc4"},
102 | {file = "cffi-1.16.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8f8e709127c6c77446a8c0a8c8bf3c8ee706a06cd44b1e827c3e6a2ee6b8c098"},
103 | {file = "cffi-1.16.0-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:748dcd1e3d3d7cd5443ef03ce8685043294ad6bd7c02a38d1bd367cfd968e000"},
104 | {file = "cffi-1.16.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:8895613bcc094d4a1b2dbe179d88d7fb4a15cee43c052e8885783fac397d91fe"},
105 | {file = "cffi-1.16.0-cp39-cp39-win32.whl", hash = "sha256:ed86a35631f7bfbb28e108dd96773b9d5a6ce4811cf6ea468bb6a359b256b1e4"},
106 | {file = "cffi-1.16.0-cp39-cp39-win_amd64.whl", hash = "sha256:3686dffb02459559c74dd3d81748269ffb0eb027c39a6fc99502de37d501faa8"},
107 | {file = "cffi-1.16.0.tar.gz", hash = "sha256:bcb3ef43e58665bbda2fb198698fcae6776483e0c4a631aa5647806c25e02cc0"},
108 | ]
109 |
110 | [package.dependencies]
111 | pycparser = "*"
112 |
113 | [[package]]
114 | name = "charset-normalizer"
115 | version = "3.3.2"
116 | description = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet."
117 | optional = false
118 | python-versions = ">=3.7.0"
119 | files = [
120 | {file = "charset-normalizer-3.3.2.tar.gz", hash = "sha256:f30c3cb33b24454a82faecaf01b19c18562b1e89558fb6c56de4d9118a032fd5"},
121 | {file = "charset_normalizer-3.3.2-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:25baf083bf6f6b341f4121c2f3c548875ee6f5339300e08be3f2b2ba1721cdd3"},
122 | {file = "charset_normalizer-3.3.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:06435b539f889b1f6f4ac1758871aae42dc3a8c0e24ac9e60c2384973ad73027"},
123 | {file = "charset_normalizer-3.3.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:9063e24fdb1e498ab71cb7419e24622516c4a04476b17a2dab57e8baa30d6e03"},
124 | {file = "charset_normalizer-3.3.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6897af51655e3691ff853668779c7bad41579facacf5fd7253b0133308cf000d"},
125 | {file = "charset_normalizer-3.3.2-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1d3193f4a680c64b4b6a9115943538edb896edc190f0b222e73761716519268e"},
126 | {file = "charset_normalizer-3.3.2-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:cd70574b12bb8a4d2aaa0094515df2463cb429d8536cfb6c7ce983246983e5a6"},
127 | {file = "charset_normalizer-3.3.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8465322196c8b4d7ab6d1e049e4c5cb460d0394da4a27d23cc242fbf0034b6b5"},
128 | {file = "charset_normalizer-3.3.2-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a9a8e9031d613fd2009c182b69c7b2c1ef8239a0efb1df3f7c8da66d5dd3d537"},
129 | {file = "charset_normalizer-3.3.2-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:beb58fe5cdb101e3a055192ac291b7a21e3b7ef4f67fa1d74e331a7f2124341c"},
130 | {file = "charset_normalizer-3.3.2-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:e06ed3eb3218bc64786f7db41917d4e686cc4856944f53d5bdf83a6884432e12"},
131 | {file = "charset_normalizer-3.3.2-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:2e81c7b9c8979ce92ed306c249d46894776a909505d8f5a4ba55b14206e3222f"},
132 | {file = "charset_normalizer-3.3.2-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:572c3763a264ba47b3cf708a44ce965d98555f618ca42c926a9c1616d8f34269"},
133 | {file = "charset_normalizer-3.3.2-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:fd1abc0d89e30cc4e02e4064dc67fcc51bd941eb395c502aac3ec19fab46b519"},
134 | {file = "charset_normalizer-3.3.2-cp310-cp310-win32.whl", hash = "sha256:3d47fa203a7bd9c5b6cee4736ee84ca03b8ef23193c0d1ca99b5089f72645c73"},
135 | {file = "charset_normalizer-3.3.2-cp310-cp310-win_amd64.whl", hash = "sha256:10955842570876604d404661fbccbc9c7e684caf432c09c715ec38fbae45ae09"},
136 | {file = "charset_normalizer-3.3.2-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:802fe99cca7457642125a8a88a084cef28ff0cf9407060f7b93dca5aa25480db"},
137 | {file = "charset_normalizer-3.3.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:573f6eac48f4769d667c4442081b1794f52919e7edada77495aaed9236d13a96"},
138 | {file = "charset_normalizer-3.3.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:549a3a73da901d5bc3ce8d24e0600d1fa85524c10287f6004fbab87672bf3e1e"},
139 | {file = "charset_normalizer-3.3.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f27273b60488abe721a075bcca6d7f3964f9f6f067c8c4c605743023d7d3944f"},
140 | {file = "charset_normalizer-3.3.2-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1ceae2f17a9c33cb48e3263960dc5fc8005351ee19db217e9b1bb15d28c02574"},
141 | {file = "charset_normalizer-3.3.2-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:65f6f63034100ead094b8744b3b97965785388f308a64cf8d7c34f2f2e5be0c4"},
142 | {file = "charset_normalizer-3.3.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:753f10e867343b4511128c6ed8c82f7bec3bd026875576dfd88483c5c73b2fd8"},
143 | {file = "charset_normalizer-3.3.2-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4a78b2b446bd7c934f5dcedc588903fb2f5eec172f3d29e52a9096a43722adfc"},
144 | {file = "charset_normalizer-3.3.2-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:e537484df0d8f426ce2afb2d0f8e1c3d0b114b83f8850e5f2fbea0e797bd82ae"},
145 | {file = "charset_normalizer-3.3.2-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:eb6904c354526e758fda7167b33005998fb68c46fbc10e013ca97f21ca5c8887"},
146 | {file = "charset_normalizer-3.3.2-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:deb6be0ac38ece9ba87dea880e438f25ca3eddfac8b002a2ec3d9183a454e8ae"},
147 | {file = "charset_normalizer-3.3.2-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:4ab2fe47fae9e0f9dee8c04187ce5d09f48eabe611be8259444906793ab7cbce"},
148 | {file = "charset_normalizer-3.3.2-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:80402cd6ee291dcb72644d6eac93785fe2c8b9cb30893c1af5b8fdd753b9d40f"},
149 | {file = "charset_normalizer-3.3.2-cp311-cp311-win32.whl", hash = "sha256:7cd13a2e3ddeed6913a65e66e94b51d80a041145a026c27e6bb76c31a853c6ab"},
150 | {file = "charset_normalizer-3.3.2-cp311-cp311-win_amd64.whl", hash = "sha256:663946639d296df6a2bb2aa51b60a2454ca1cb29835324c640dafb5ff2131a77"},
151 | {file = "charset_normalizer-3.3.2-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:0b2b64d2bb6d3fb9112bafa732def486049e63de9618b5843bcdd081d8144cd8"},
152 | {file = "charset_normalizer-3.3.2-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:ddbb2551d7e0102e7252db79ba445cdab71b26640817ab1e3e3648dad515003b"},
153 | {file = "charset_normalizer-3.3.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:55086ee1064215781fff39a1af09518bc9255b50d6333f2e4c74ca09fac6a8f6"},
154 | {file = "charset_normalizer-3.3.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8f4a014bc36d3c57402e2977dada34f9c12300af536839dc38c0beab8878f38a"},
155 | {file = "charset_normalizer-3.3.2-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a10af20b82360ab00827f916a6058451b723b4e65030c5a18577c8b2de5b3389"},
156 | {file = "charset_normalizer-3.3.2-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8d756e44e94489e49571086ef83b2bb8ce311e730092d2c34ca8f7d925cb20aa"},
157 | {file = "charset_normalizer-3.3.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:90d558489962fd4918143277a773316e56c72da56ec7aa3dc3dbbe20fdfed15b"},
158 | {file = "charset_normalizer-3.3.2-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6ac7ffc7ad6d040517be39eb591cac5ff87416c2537df6ba3cba3bae290c0fed"},
159 | {file = "charset_normalizer-3.3.2-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:7ed9e526742851e8d5cc9e6cf41427dfc6068d4f5a3bb03659444b4cabf6bc26"},
160 | {file = "charset_normalizer-3.3.2-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:8bdb58ff7ba23002a4c5808d608e4e6c687175724f54a5dade5fa8c67b604e4d"},
161 | {file = "charset_normalizer-3.3.2-cp312-cp312-musllinux_1_1_ppc64le.whl", hash = "sha256:6b3251890fff30ee142c44144871185dbe13b11bab478a88887a639655be1068"},
162 | {file = "charset_normalizer-3.3.2-cp312-cp312-musllinux_1_1_s390x.whl", hash = "sha256:b4a23f61ce87adf89be746c8a8974fe1c823c891d8f86eb218bb957c924bb143"},
163 | {file = "charset_normalizer-3.3.2-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:efcb3f6676480691518c177e3b465bcddf57cea040302f9f4e6e191af91174d4"},
164 | {file = "charset_normalizer-3.3.2-cp312-cp312-win32.whl", hash = "sha256:d965bba47ddeec8cd560687584e88cf699fd28f192ceb452d1d7ee807c5597b7"},
165 | {file = "charset_normalizer-3.3.2-cp312-cp312-win_amd64.whl", hash = "sha256:96b02a3dc4381e5494fad39be677abcb5e6634bf7b4fa83a6dd3112607547001"},
166 | {file = "charset_normalizer-3.3.2-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:95f2a5796329323b8f0512e09dbb7a1860c46a39da62ecb2324f116fa8fdc85c"},
167 | {file = "charset_normalizer-3.3.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c002b4ffc0be611f0d9da932eb0f704fe2602a9a949d1f738e4c34c75b0863d5"},
168 | {file = "charset_normalizer-3.3.2-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a981a536974bbc7a512cf44ed14938cf01030a99e9b3a06dd59578882f06f985"},
169 | {file = "charset_normalizer-3.3.2-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:3287761bc4ee9e33561a7e058c72ac0938c4f57fe49a09eae428fd88aafe7bb6"},
170 | {file = "charset_normalizer-3.3.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:42cb296636fcc8b0644486d15c12376cb9fa75443e00fb25de0b8602e64c1714"},
171 | {file = "charset_normalizer-3.3.2-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0a55554a2fa0d408816b3b5cedf0045f4b8e1a6065aec45849de2d6f3f8e9786"},
172 | {file = "charset_normalizer-3.3.2-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:c083af607d2515612056a31f0a8d9e0fcb5876b7bfc0abad3ecd275bc4ebc2d5"},
173 | {file = "charset_normalizer-3.3.2-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:87d1351268731db79e0f8e745d92493ee2841c974128ef629dc518b937d9194c"},
174 | {file = "charset_normalizer-3.3.2-cp37-cp37m-musllinux_1_1_ppc64le.whl", hash = "sha256:bd8f7df7d12c2db9fab40bdd87a7c09b1530128315d047a086fa3ae3435cb3a8"},
175 | {file = "charset_normalizer-3.3.2-cp37-cp37m-musllinux_1_1_s390x.whl", hash = "sha256:c180f51afb394e165eafe4ac2936a14bee3eb10debc9d9e4db8958fe36afe711"},
176 | {file = "charset_normalizer-3.3.2-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:8c622a5fe39a48f78944a87d4fb8a53ee07344641b0562c540d840748571b811"},
177 | {file = "charset_normalizer-3.3.2-cp37-cp37m-win32.whl", hash = "sha256:db364eca23f876da6f9e16c9da0df51aa4f104a972735574842618b8c6d999d4"},
178 | {file = "charset_normalizer-3.3.2-cp37-cp37m-win_amd64.whl", hash = "sha256:86216b5cee4b06df986d214f664305142d9c76df9b6512be2738aa72a2048f99"},
179 | {file = "charset_normalizer-3.3.2-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:6463effa3186ea09411d50efc7d85360b38d5f09b870c48e4600f63af490e56a"},
180 | {file = "charset_normalizer-3.3.2-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:6c4caeef8fa63d06bd437cd4bdcf3ffefe6738fb1b25951440d80dc7df8c03ac"},
181 | {file = "charset_normalizer-3.3.2-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:37e55c8e51c236f95b033f6fb391d7d7970ba5fe7ff453dad675e88cf303377a"},
182 | {file = "charset_normalizer-3.3.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:fb69256e180cb6c8a894fee62b3afebae785babc1ee98b81cdf68bbca1987f33"},
183 | {file = "charset_normalizer-3.3.2-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ae5f4161f18c61806f411a13b0310bea87f987c7d2ecdbdaad0e94eb2e404238"},
184 | {file = "charset_normalizer-3.3.2-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b2b0a0c0517616b6869869f8c581d4eb2dd83a4d79e0ebcb7d373ef9956aeb0a"},
185 | {file = "charset_normalizer-3.3.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:45485e01ff4d3630ec0d9617310448a8702f70e9c01906b0d0118bdf9d124cf2"},
186 | {file = "charset_normalizer-3.3.2-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:eb00ed941194665c332bf8e078baf037d6c35d7c4f3102ea2d4f16ca94a26dc8"},
187 | {file = "charset_normalizer-3.3.2-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:2127566c664442652f024c837091890cb1942c30937add288223dc895793f898"},
188 | {file = "charset_normalizer-3.3.2-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:a50aebfa173e157099939b17f18600f72f84eed3049e743b68ad15bd69b6bf99"},
189 | {file = "charset_normalizer-3.3.2-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:4d0d1650369165a14e14e1e47b372cfcb31d6ab44e6e33cb2d4e57265290044d"},
190 | {file = "charset_normalizer-3.3.2-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:923c0c831b7cfcb071580d3f46c4baf50f174be571576556269530f4bbd79d04"},
191 | {file = "charset_normalizer-3.3.2-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:06a81e93cd441c56a9b65d8e1d043daeb97a3d0856d177d5c90ba85acb3db087"},
192 | {file = "charset_normalizer-3.3.2-cp38-cp38-win32.whl", hash = "sha256:6ef1d82a3af9d3eecdba2321dc1b3c238245d890843e040e41e470ffa64c3e25"},
193 | {file = "charset_normalizer-3.3.2-cp38-cp38-win_amd64.whl", hash = "sha256:eb8821e09e916165e160797a6c17edda0679379a4be5c716c260e836e122f54b"},
194 | {file = "charset_normalizer-3.3.2-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:c235ebd9baae02f1b77bcea61bce332cb4331dc3617d254df3323aa01ab47bd4"},
195 | {file = "charset_normalizer-3.3.2-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:5b4c145409bef602a690e7cfad0a15a55c13320ff7a3ad7ca59c13bb8ba4d45d"},
196 | {file = "charset_normalizer-3.3.2-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:68d1f8a9e9e37c1223b656399be5d6b448dea850bed7d0f87a8311f1ff3dabb0"},
197 | {file = "charset_normalizer-3.3.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:22afcb9f253dac0696b5a4be4a1c0f8762f8239e21b99680099abd9b2b1b2269"},
198 | {file = "charset_normalizer-3.3.2-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:e27ad930a842b4c5eb8ac0016b0a54f5aebbe679340c26101df33424142c143c"},
199 | {file = "charset_normalizer-3.3.2-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:1f79682fbe303db92bc2b1136016a38a42e835d932bab5b3b1bfcfbf0640e519"},
200 | {file = "charset_normalizer-3.3.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b261ccdec7821281dade748d088bb6e9b69e6d15b30652b74cbbac25e280b796"},
201 | {file = "charset_normalizer-3.3.2-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:122c7fa62b130ed55f8f285bfd56d5f4b4a5b503609d181f9ad85e55c89f4185"},
202 | {file = "charset_normalizer-3.3.2-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:d0eccceffcb53201b5bfebb52600a5fb483a20b61da9dbc885f8b103cbe7598c"},
203 | {file = "charset_normalizer-3.3.2-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:9f96df6923e21816da7e0ad3fd47dd8f94b2a5ce594e00677c0013018b813458"},
204 | {file = "charset_normalizer-3.3.2-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:7f04c839ed0b6b98b1a7501a002144b76c18fb1c1850c8b98d458ac269e26ed2"},
205 | {file = "charset_normalizer-3.3.2-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:34d1c8da1e78d2e001f363791c98a272bb734000fcef47a491c1e3b0505657a8"},
206 | {file = "charset_normalizer-3.3.2-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:ff8fa367d09b717b2a17a052544193ad76cd49979c805768879cb63d9ca50561"},
207 | {file = "charset_normalizer-3.3.2-cp39-cp39-win32.whl", hash = "sha256:aed38f6e4fb3f5d6bf81bfa990a07806be9d83cf7bacef998ab1a9bd660a581f"},
208 | {file = "charset_normalizer-3.3.2-cp39-cp39-win_amd64.whl", hash = "sha256:b01b88d45a6fcb69667cd6d2f7a9aeb4bf53760d7fc536bf679ec94fe9f3ff3d"},
209 | {file = "charset_normalizer-3.3.2-py3-none-any.whl", hash = "sha256:3e4d1f6587322d2788836a99c69062fbb091331ec940e02d12d179c1d53e25fc"},
210 | ]
211 |
212 | [[package]]
213 | name = "click"
214 | version = "8.1.7"
215 | description = "Composable command line interface toolkit"
216 | optional = false
217 | python-versions = ">=3.7"
218 | files = [
219 | {file = "click-8.1.7-py3-none-any.whl", hash = "sha256:ae74fb96c20a0277a1d615f1e4d73c8414f5a98db8b799a7931d1582f3390c28"},
220 | {file = "click-8.1.7.tar.gz", hash = "sha256:ca9853ad459e787e2192211578cc907e7594e294c7ccc834310722b41b9ca6de"},
221 | ]
222 |
223 | [package.dependencies]
224 | colorama = {version = "*", markers = "platform_system == \"Windows\""}
225 |
226 | [[package]]
227 | name = "colorama"
228 | version = "0.4.6"
229 | description = "Cross-platform colored terminal text."
230 | optional = false
231 | python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7"
232 | files = [
233 | {file = "colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6"},
234 | {file = "colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"},
235 | ]
236 |
237 | [[package]]
238 | name = "cryptography"
239 | version = "42.0.8"
240 | description = "cryptography is a package which provides cryptographic recipes and primitives to Python developers."
241 | optional = false
242 | python-versions = ">=3.7"
243 | files = [
244 | {file = "cryptography-42.0.8-cp37-abi3-macosx_10_12_universal2.whl", hash = "sha256:81d8a521705787afe7a18d5bfb47ea9d9cc068206270aad0b96a725022e18d2e"},
245 | {file = "cryptography-42.0.8-cp37-abi3-macosx_10_12_x86_64.whl", hash = "sha256:961e61cefdcb06e0c6d7e3a1b22ebe8b996eb2bf50614e89384be54c48c6b63d"},
246 | {file = "cryptography-42.0.8-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e3ec3672626e1b9e55afd0df6d774ff0e953452886e06e0f1eb7eb0c832e8902"},
247 | {file = "cryptography-42.0.8-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e599b53fd95357d92304510fb7bda8523ed1f79ca98dce2f43c115950aa78801"},
248 | {file = "cryptography-42.0.8-cp37-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:5226d5d21ab681f432a9c1cf8b658c0cb02533eece706b155e5fbd8a0cdd3949"},
249 | {file = "cryptography-42.0.8-cp37-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:6b7c4f03ce01afd3b76cf69a5455caa9cfa3de8c8f493e0d3ab7d20611c8dae9"},
250 | {file = "cryptography-42.0.8-cp37-abi3-musllinux_1_1_aarch64.whl", hash = "sha256:2346b911eb349ab547076f47f2e035fc8ff2c02380a7cbbf8d87114fa0f1c583"},
251 | {file = "cryptography-42.0.8-cp37-abi3-musllinux_1_1_x86_64.whl", hash = "sha256:ad803773e9df0b92e0a817d22fd8a3675493f690b96130a5e24f1b8fabbea9c7"},
252 | {file = "cryptography-42.0.8-cp37-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:2f66d9cd9147ee495a8374a45ca445819f8929a3efcd2e3df6428e46c3cbb10b"},
253 | {file = "cryptography-42.0.8-cp37-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:d45b940883a03e19e944456a558b67a41160e367a719833c53de6911cabba2b7"},
254 | {file = "cryptography-42.0.8-cp37-abi3-win32.whl", hash = "sha256:a0c5b2b0585b6af82d7e385f55a8bc568abff8923af147ee3c07bd8b42cda8b2"},
255 | {file = "cryptography-42.0.8-cp37-abi3-win_amd64.whl", hash = "sha256:57080dee41209e556a9a4ce60d229244f7a66ef52750f813bfbe18959770cfba"},
256 | {file = "cryptography-42.0.8-cp39-abi3-macosx_10_12_universal2.whl", hash = "sha256:dea567d1b0e8bc5764b9443858b673b734100c2871dc93163f58c46a97a83d28"},
257 | {file = "cryptography-42.0.8-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c4783183f7cb757b73b2ae9aed6599b96338eb957233c58ca8f49a49cc32fd5e"},
258 | {file = "cryptography-42.0.8-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a0608251135d0e03111152e41f0cc2392d1e74e35703960d4190b2e0f4ca9c70"},
259 | {file = "cryptography-42.0.8-cp39-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:dc0fdf6787f37b1c6b08e6dfc892d9d068b5bdb671198c72072828b80bd5fe4c"},
260 | {file = "cryptography-42.0.8-cp39-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:9c0c1716c8447ee7dbf08d6db2e5c41c688544c61074b54fc4564196f55c25a7"},
261 | {file = "cryptography-42.0.8-cp39-abi3-musllinux_1_1_aarch64.whl", hash = "sha256:fff12c88a672ab9c9c1cf7b0c80e3ad9e2ebd9d828d955c126be4fd3e5578c9e"},
262 | {file = "cryptography-42.0.8-cp39-abi3-musllinux_1_1_x86_64.whl", hash = "sha256:cafb92b2bc622cd1aa6a1dce4b93307792633f4c5fe1f46c6b97cf67073ec961"},
263 | {file = "cryptography-42.0.8-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:31f721658a29331f895a5a54e7e82075554ccfb8b163a18719d342f5ffe5ecb1"},
264 | {file = "cryptography-42.0.8-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:b297f90c5723d04bcc8265fc2a0f86d4ea2e0f7ab4b6994459548d3a6b992a14"},
265 | {file = "cryptography-42.0.8-cp39-abi3-win32.whl", hash = "sha256:2f88d197e66c65be5e42cd72e5c18afbfae3f741742070e3019ac8f4ac57262c"},
266 | {file = "cryptography-42.0.8-cp39-abi3-win_amd64.whl", hash = "sha256:fa76fbb7596cc5839320000cdd5d0955313696d9511debab7ee7278fc8b5c84a"},
267 | {file = "cryptography-42.0.8-pp310-pypy310_pp73-macosx_10_12_x86_64.whl", hash = "sha256:ba4f0a211697362e89ad822e667d8d340b4d8d55fae72cdd619389fb5912eefe"},
268 | {file = "cryptography-42.0.8-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:81884c4d096c272f00aeb1f11cf62ccd39763581645b0812e99a91505fa48e0c"},
269 | {file = "cryptography-42.0.8-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:c9bb2ae11bfbab395bdd072985abde58ea9860ed84e59dbc0463a5d0159f5b71"},
270 | {file = "cryptography-42.0.8-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:7016f837e15b0a1c119d27ecd89b3515f01f90a8615ed5e9427e30d9cdbfed3d"},
271 | {file = "cryptography-42.0.8-pp39-pypy39_pp73-macosx_10_12_x86_64.whl", hash = "sha256:5a94eccb2a81a309806027e1670a358b99b8fe8bfe9f8d329f27d72c094dde8c"},
272 | {file = "cryptography-42.0.8-pp39-pypy39_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:dec9b018df185f08483f294cae6ccac29e7a6e0678996587363dc352dc65c842"},
273 | {file = "cryptography-42.0.8-pp39-pypy39_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:343728aac38decfdeecf55ecab3264b015be68fc2816ca800db649607aeee648"},
274 | {file = "cryptography-42.0.8-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:013629ae70b40af70c9a7a5db40abe5d9054e6f4380e50ce769947b73bf3caad"},
275 | {file = "cryptography-42.0.8.tar.gz", hash = "sha256:8d09d05439ce7baa8e9e95b07ec5b6c886f548deb7e0f69ef25f64b3bce842f2"},
276 | ]
277 |
278 | [package.dependencies]
279 | cffi = {version = ">=1.12", markers = "platform_python_implementation != \"PyPy\""}
280 |
281 | [package.extras]
282 | docs = ["sphinx (>=5.3.0)", "sphinx-rtd-theme (>=1.1.1)"]
283 | docstest = ["pyenchant (>=1.6.11)", "readme-renderer", "sphinxcontrib-spelling (>=4.0.1)"]
284 | nox = ["nox"]
285 | pep8test = ["check-sdist", "click", "mypy", "ruff"]
286 | sdist = ["build"]
287 | ssh = ["bcrypt (>=3.1.5)"]
288 | test = ["certifi", "pretend", "pytest (>=6.2.0)", "pytest-benchmark", "pytest-cov", "pytest-xdist"]
289 | test-randomorder = ["pytest-randomly"]
290 |
291 | [[package]]
292 | name = "mypy-extensions"
293 | version = "1.0.0"
294 | description = "Type system extensions for programs checked with the mypy type checker."
295 | optional = false
296 | python-versions = ">=3.5"
297 | files = [
298 | {file = "mypy_extensions-1.0.0-py3-none-any.whl", hash = "sha256:4392f6c0eb8a5668a69e23d168ffa70f0be9ccfd32b5cc2d26a34ae5b844552d"},
299 | {file = "mypy_extensions-1.0.0.tar.gz", hash = "sha256:75dbf8955dc00442a438fc4d0666508a9a97b6bd41aa2f0ffe9d2f2725af0782"},
300 | ]
301 |
302 | [[package]]
303 | name = "numpy"
304 | version = "2.0.0"
305 | description = "Fundamental package for array computing in Python"
306 | optional = false
307 | python-versions = ">=3.9"
308 | files = [
309 | {file = "numpy-2.0.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:04494f6ec467ccb5369d1808570ae55f6ed9b5809d7f035059000a37b8d7e86f"},
310 | {file = "numpy-2.0.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:2635dbd200c2d6faf2ef9a0d04f0ecc6b13b3cad54f7c67c61155138835515d2"},
311 | {file = "numpy-2.0.0-cp310-cp310-macosx_14_0_arm64.whl", hash = "sha256:0a43f0974d501842866cc83471bdb0116ba0dffdbaac33ec05e6afed5b615238"},
312 | {file = "numpy-2.0.0-cp310-cp310-macosx_14_0_x86_64.whl", hash = "sha256:8d83bb187fb647643bd56e1ae43f273c7f4dbcdf94550d7938cfc32566756514"},
313 | {file = "numpy-2.0.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:79e843d186c8fb1b102bef3e2bc35ef81160ffef3194646a7fdd6a73c6b97196"},
314 | {file = "numpy-2.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6d7696c615765091cc5093f76fd1fa069870304beaccfd58b5dcc69e55ef49c1"},
315 | {file = "numpy-2.0.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:b4c76e3d4c56f145d41b7b6751255feefae92edbc9a61e1758a98204200f30fc"},
316 | {file = "numpy-2.0.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:acd3a644e4807e73b4e1867b769fbf1ce8c5d80e7caaef0d90dcdc640dfc9787"},
317 | {file = "numpy-2.0.0-cp310-cp310-win32.whl", hash = "sha256:cee6cc0584f71adefe2c908856ccc98702baf95ff80092e4ca46061538a2ba98"},
318 | {file = "numpy-2.0.0-cp310-cp310-win_amd64.whl", hash = "sha256:ed08d2703b5972ec736451b818c2eb9da80d66c3e84aed1deeb0c345fefe461b"},
319 | {file = "numpy-2.0.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:ad0c86f3455fbd0de6c31a3056eb822fc939f81b1618f10ff3406971893b62a5"},
320 | {file = "numpy-2.0.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:e7f387600d424f91576af20518334df3d97bc76a300a755f9a8d6e4f5cadd289"},
321 | {file = "numpy-2.0.0-cp311-cp311-macosx_14_0_arm64.whl", hash = "sha256:34f003cb88b1ba38cb9a9a4a3161c1604973d7f9d5552c38bc2f04f829536609"},
322 | {file = "numpy-2.0.0-cp311-cp311-macosx_14_0_x86_64.whl", hash = "sha256:b6f6a8f45d0313db07d6d1d37bd0b112f887e1369758a5419c0370ba915b3871"},
323 | {file = "numpy-2.0.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5f64641b42b2429f56ee08b4f427a4d2daf916ec59686061de751a55aafa22e4"},
324 | {file = "numpy-2.0.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a7039a136017eaa92c1848152827e1424701532ca8e8967fe480fe1569dae581"},
325 | {file = "numpy-2.0.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:46e161722e0f619749d1cd892167039015b2c2817296104487cd03ed4a955995"},
326 | {file = "numpy-2.0.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:0e50842b2295ba8414c8c1d9d957083d5dfe9e16828b37de883f51fc53c4016f"},
327 | {file = "numpy-2.0.0-cp311-cp311-win32.whl", hash = "sha256:2ce46fd0b8a0c947ae047d222f7136fc4d55538741373107574271bc00e20e8f"},
328 | {file = "numpy-2.0.0-cp311-cp311-win_amd64.whl", hash = "sha256:fbd6acc766814ea6443628f4e6751d0da6593dae29c08c0b2606164db026970c"},
329 | {file = "numpy-2.0.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:354f373279768fa5a584bac997de6a6c9bc535c482592d7a813bb0c09be6c76f"},
330 | {file = "numpy-2.0.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:4d2f62e55a4cd9c58c1d9a1c9edaedcd857a73cb6fda875bf79093f9d9086f85"},
331 | {file = "numpy-2.0.0-cp312-cp312-macosx_14_0_arm64.whl", hash = "sha256:1e72728e7501a450288fc8e1f9ebc73d90cfd4671ebbd631f3e7857c39bd16f2"},
332 | {file = "numpy-2.0.0-cp312-cp312-macosx_14_0_x86_64.whl", hash = "sha256:84554fc53daa8f6abf8e8a66e076aff6ece62de68523d9f665f32d2fc50fd66e"},
333 | {file = "numpy-2.0.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c73aafd1afca80afecb22718f8700b40ac7cab927b8abab3c3e337d70e10e5a2"},
334 | {file = "numpy-2.0.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:49d9f7d256fbc804391a7f72d4a617302b1afac1112fac19b6c6cec63fe7fe8a"},
335 | {file = "numpy-2.0.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:0ec84b9ba0654f3b962802edc91424331f423dcf5d5f926676e0150789cb3d95"},
336 | {file = "numpy-2.0.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:feff59f27338135776f6d4e2ec7aeeac5d5f7a08a83e80869121ef8164b74af9"},
337 | {file = "numpy-2.0.0-cp312-cp312-win32.whl", hash = "sha256:c5a59996dc61835133b56a32ebe4ef3740ea5bc19b3983ac60cc32be5a665d54"},
338 | {file = "numpy-2.0.0-cp312-cp312-win_amd64.whl", hash = "sha256:a356364941fb0593bb899a1076b92dfa2029f6f5b8ba88a14fd0984aaf76d0df"},
339 | {file = "numpy-2.0.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:e61155fae27570692ad1d327e81c6cf27d535a5d7ef97648a17d922224b216de"},
340 | {file = "numpy-2.0.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:4554eb96f0fd263041baf16cf0881b3f5dafae7a59b1049acb9540c4d57bc8cb"},
341 | {file = "numpy-2.0.0-cp39-cp39-macosx_14_0_arm64.whl", hash = "sha256:903703372d46bce88b6920a0cd86c3ad82dae2dbef157b5fc01b70ea1cfc430f"},
342 | {file = "numpy-2.0.0-cp39-cp39-macosx_14_0_x86_64.whl", hash = "sha256:3e8e01233d57639b2e30966c63d36fcea099d17c53bf424d77f088b0f4babd86"},
343 | {file = "numpy-2.0.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1cde1753efe513705a0c6d28f5884e22bdc30438bf0085c5c486cdaff40cd67a"},
344 | {file = "numpy-2.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:821eedb7165ead9eebdb569986968b541f9908979c2da8a4967ecac4439bae3d"},
345 | {file = "numpy-2.0.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:9a1712c015831da583b21c5bfe15e8684137097969c6d22e8316ba66b5baabe4"},
346 | {file = "numpy-2.0.0-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:9c27f0946a3536403efb0e1c28def1ae6730a72cd0d5878db38824855e3afc44"},
347 | {file = "numpy-2.0.0-cp39-cp39-win32.whl", hash = "sha256:63b92c512d9dbcc37f9d81b123dec99fdb318ba38c8059afc78086fe73820275"},
348 | {file = "numpy-2.0.0-cp39-cp39-win_amd64.whl", hash = "sha256:3f6bed7f840d44c08ebdb73b1825282b801799e325bcbdfa6bc5c370e5aecc65"},
349 | {file = "numpy-2.0.0-pp39-pypy39_pp73-macosx_10_9_x86_64.whl", hash = "sha256:9416a5c2e92ace094e9f0082c5fd473502c91651fb896bc17690d6fc475128d6"},
350 | {file = "numpy-2.0.0-pp39-pypy39_pp73-macosx_14_0_x86_64.whl", hash = "sha256:17067d097ed036636fa79f6a869ac26df7db1ba22039d962422506640314933a"},
351 | {file = "numpy-2.0.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:38ecb5b0582cd125f67a629072fed6f83562d9dd04d7e03256c9829bdec027ad"},
352 | {file = "numpy-2.0.0-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:cef04d068f5fb0518a77857953193b6bb94809a806bd0a14983a8f12ada060c9"},
353 | {file = "numpy-2.0.0.tar.gz", hash = "sha256:cf5d1c9e6837f8af9f92b6bd3e86d513cdc11f60fd62185cc49ec7d1aba34864"},
354 | ]
355 |
356 | [[package]]
357 | name = "packaging"
358 | version = "24.1"
359 | description = "Core utilities for Python packages"
360 | optional = false
361 | python-versions = ">=3.8"
362 | files = [
363 | {file = "packaging-24.1-py3-none-any.whl", hash = "sha256:5b8f2217dbdbd2f7f384c41c628544e6d52f2d0f53c6d0c3ea61aa5d1d7ff124"},
364 | {file = "packaging-24.1.tar.gz", hash = "sha256:026ed72c8ed3fcce5bf8950572258698927fd1dbda10a5e981cdf0ac37f4f002"},
365 | ]
366 |
367 | [[package]]
368 | name = "pandas"
369 | version = "2.2.2"
370 | description = "Powerful data structures for data analysis, time series, and statistics"
371 | optional = false
372 | python-versions = ">=3.9"
373 | files = [
374 | {file = "pandas-2.2.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:90c6fca2acf139569e74e8781709dccb6fe25940488755716d1d354d6bc58bce"},
375 | {file = "pandas-2.2.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:c7adfc142dac335d8c1e0dcbd37eb8617eac386596eb9e1a1b77791cf2498238"},
376 | {file = "pandas-2.2.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4abfe0be0d7221be4f12552995e58723c7422c80a659da13ca382697de830c08"},
377 | {file = "pandas-2.2.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8635c16bf3d99040fdf3ca3db669a7250ddf49c55dc4aa8fe0ae0fa8d6dcc1f0"},
378 | {file = "pandas-2.2.2-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:40ae1dffb3967a52203105a077415a86044a2bea011b5f321c6aa64b379a3f51"},
379 | {file = "pandas-2.2.2-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:8e5a0b00e1e56a842f922e7fae8ae4077aee4af0acb5ae3622bd4b4c30aedf99"},
380 | {file = "pandas-2.2.2-cp310-cp310-win_amd64.whl", hash = "sha256:ddf818e4e6c7c6f4f7c8a12709696d193976b591cc7dc50588d3d1a6b5dc8772"},
381 | {file = "pandas-2.2.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:696039430f7a562b74fa45f540aca068ea85fa34c244d0deee539cb6d70aa288"},
382 | {file = "pandas-2.2.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:8e90497254aacacbc4ea6ae5e7a8cd75629d6ad2b30025a4a8b09aa4faf55151"},
383 | {file = "pandas-2.2.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:58b84b91b0b9f4bafac2a0ac55002280c094dfc6402402332c0913a59654ab2b"},
384 | {file = "pandas-2.2.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6d2123dc9ad6a814bcdea0f099885276b31b24f7edf40f6cdbc0912672e22eee"},
385 | {file = "pandas-2.2.2-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:2925720037f06e89af896c70bca73459d7e6a4be96f9de79e2d440bd499fe0db"},
386 | {file = "pandas-2.2.2-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:0cace394b6ea70c01ca1595f839cf193df35d1575986e484ad35c4aeae7266c1"},
387 | {file = "pandas-2.2.2-cp311-cp311-win_amd64.whl", hash = "sha256:873d13d177501a28b2756375d59816c365e42ed8417b41665f346289adc68d24"},
388 | {file = "pandas-2.2.2-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:9dfde2a0ddef507a631dc9dc4af6a9489d5e2e740e226ad426a05cabfbd7c8ef"},
389 | {file = "pandas-2.2.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:e9b79011ff7a0f4b1d6da6a61aa1aa604fb312d6647de5bad20013682d1429ce"},
390 | {file = "pandas-2.2.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1cb51fe389360f3b5a4d57dbd2848a5f033350336ca3b340d1c53a1fad33bcad"},
391 | {file = "pandas-2.2.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:eee3a87076c0756de40b05c5e9a6069c035ba43e8dd71c379e68cab2c20f16ad"},
392 | {file = "pandas-2.2.2-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:3e374f59e440d4ab45ca2fffde54b81ac3834cf5ae2cdfa69c90bc03bde04d76"},
393 | {file = "pandas-2.2.2-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:43498c0bdb43d55cb162cdc8c06fac328ccb5d2eabe3cadeb3529ae6f0517c32"},
394 | {file = "pandas-2.2.2-cp312-cp312-win_amd64.whl", hash = "sha256:d187d355ecec3629624fccb01d104da7d7f391db0311145817525281e2804d23"},
395 | {file = "pandas-2.2.2-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:0ca6377b8fca51815f382bd0b697a0814c8bda55115678cbc94c30aacbb6eff2"},
396 | {file = "pandas-2.2.2-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:9057e6aa78a584bc93a13f0a9bf7e753a5e9770a30b4d758b8d5f2a62a9433cd"},
397 | {file = "pandas-2.2.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:001910ad31abc7bf06f49dcc903755d2f7f3a9186c0c040b827e522e9cef0863"},
398 | {file = "pandas-2.2.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:66b479b0bd07204e37583c191535505410daa8df638fd8e75ae1b383851fe921"},
399 | {file = "pandas-2.2.2-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:a77e9d1c386196879aa5eb712e77461aaee433e54c68cf253053a73b7e49c33a"},
400 | {file = "pandas-2.2.2-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:92fd6b027924a7e178ac202cfbe25e53368db90d56872d20ffae94b96c7acc57"},
401 | {file = "pandas-2.2.2-cp39-cp39-win_amd64.whl", hash = "sha256:640cef9aa381b60e296db324337a554aeeb883ead99dc8f6c18e81a93942f5f4"},
402 | {file = "pandas-2.2.2.tar.gz", hash = "sha256:9e79019aba43cb4fda9e4d983f8e88ca0373adbb697ae9c6c43093218de28b54"},
403 | ]
404 |
405 | [package.dependencies]
406 | numpy = [
407 | {version = ">=1.22.4", markers = "python_version < \"3.11\""},
408 | {version = ">=1.23.2", markers = "python_version == \"3.11\""},
409 | {version = ">=1.26.0", markers = "python_version >= \"3.12\""},
410 | ]
411 | python-dateutil = ">=2.8.2"
412 | pytz = ">=2020.1"
413 | tzdata = ">=2022.7"
414 |
415 | [package.extras]
416 | all = ["PyQt5 (>=5.15.9)", "SQLAlchemy (>=2.0.0)", "adbc-driver-postgresql (>=0.8.0)", "adbc-driver-sqlite (>=0.8.0)", "beautifulsoup4 (>=4.11.2)", "bottleneck (>=1.3.6)", "dataframe-api-compat (>=0.1.7)", "fastparquet (>=2022.12.0)", "fsspec (>=2022.11.0)", "gcsfs (>=2022.11.0)", "html5lib (>=1.1)", "hypothesis (>=6.46.1)", "jinja2 (>=3.1.2)", "lxml (>=4.9.2)", "matplotlib (>=3.6.3)", "numba (>=0.56.4)", "numexpr (>=2.8.4)", "odfpy (>=1.4.1)", "openpyxl (>=3.1.0)", "pandas-gbq (>=0.19.0)", "psycopg2 (>=2.9.6)", "pyarrow (>=10.0.1)", "pymysql (>=1.0.2)", "pyreadstat (>=1.2.0)", "pytest (>=7.3.2)", "pytest-xdist (>=2.2.0)", "python-calamine (>=0.1.7)", "pyxlsb (>=1.0.10)", "qtpy (>=2.3.0)", "s3fs (>=2022.11.0)", "scipy (>=1.10.0)", "tables (>=3.8.0)", "tabulate (>=0.9.0)", "xarray (>=2022.12.0)", "xlrd (>=2.0.1)", "xlsxwriter (>=3.0.5)", "zstandard (>=0.19.0)"]
417 | aws = ["s3fs (>=2022.11.0)"]
418 | clipboard = ["PyQt5 (>=5.15.9)", "qtpy (>=2.3.0)"]
419 | compression = ["zstandard (>=0.19.0)"]
420 | computation = ["scipy (>=1.10.0)", "xarray (>=2022.12.0)"]
421 | consortium-standard = ["dataframe-api-compat (>=0.1.7)"]
422 | excel = ["odfpy (>=1.4.1)", "openpyxl (>=3.1.0)", "python-calamine (>=0.1.7)", "pyxlsb (>=1.0.10)", "xlrd (>=2.0.1)", "xlsxwriter (>=3.0.5)"]
423 | feather = ["pyarrow (>=10.0.1)"]
424 | fss = ["fsspec (>=2022.11.0)"]
425 | gcp = ["gcsfs (>=2022.11.0)", "pandas-gbq (>=0.19.0)"]
426 | hdf5 = ["tables (>=3.8.0)"]
427 | html = ["beautifulsoup4 (>=4.11.2)", "html5lib (>=1.1)", "lxml (>=4.9.2)"]
428 | mysql = ["SQLAlchemy (>=2.0.0)", "pymysql (>=1.0.2)"]
429 | output-formatting = ["jinja2 (>=3.1.2)", "tabulate (>=0.9.0)"]
430 | parquet = ["pyarrow (>=10.0.1)"]
431 | performance = ["bottleneck (>=1.3.6)", "numba (>=0.56.4)", "numexpr (>=2.8.4)"]
432 | plot = ["matplotlib (>=3.6.3)"]
433 | postgresql = ["SQLAlchemy (>=2.0.0)", "adbc-driver-postgresql (>=0.8.0)", "psycopg2 (>=2.9.6)"]
434 | pyarrow = ["pyarrow (>=10.0.1)"]
435 | spss = ["pyreadstat (>=1.2.0)"]
436 | sql-other = ["SQLAlchemy (>=2.0.0)", "adbc-driver-postgresql (>=0.8.0)", "adbc-driver-sqlite (>=0.8.0)"]
437 | test = ["hypothesis (>=6.46.1)", "pytest (>=7.3.2)", "pytest-xdist (>=2.2.0)"]
438 | xml = ["lxml (>=4.9.2)"]
439 |
440 | [[package]]
441 | name = "pathspec"
442 | version = "0.12.1"
443 | description = "Utility library for gitignore style pattern matching of file paths."
444 | optional = false
445 | python-versions = ">=3.8"
446 | files = [
447 | {file = "pathspec-0.12.1-py3-none-any.whl", hash = "sha256:a0d503e138a4c123b27490a4f7beda6a01c6f288df0e4a8b79c7eb0dc7b4cc08"},
448 | {file = "pathspec-0.12.1.tar.gz", hash = "sha256:a482d51503a1ab33b1c67a6c3813a26953dbdc71c31dacaef9a838c4e29f5712"},
449 | ]
450 |
451 | [[package]]
452 | name = "pdfminer-six"
453 | version = "20221105"
454 | description = "PDF parser and analyzer"
455 | optional = false
456 | python-versions = ">=3.6"
457 | files = [
458 | {file = "pdfminer.six-20221105-py3-none-any.whl", hash = "sha256:1eaddd712d5b2732f8ac8486824533514f8ba12a0787b3d5fe1e686cd826532d"},
459 | {file = "pdfminer.six-20221105.tar.gz", hash = "sha256:8448ab7b939d18b64820478ecac5394f482d7a79f5f7eaa7703c6c959c175e1d"},
460 | ]
461 |
462 | [package.dependencies]
463 | charset-normalizer = ">=2.0.0"
464 | cryptography = ">=36.0.0"
465 |
466 | [package.extras]
467 | dev = ["black", "mypy (==0.931)", "nox", "pytest"]
468 | docs = ["sphinx", "sphinx-argparse"]
469 | image = ["Pillow"]
470 |
471 | [[package]]
472 | name = "pdfplumber"
473 | version = "0.10.4"
474 | description = "Plumb a PDF for detailed information about each char, rectangle, and line."
475 | optional = false
476 | python-versions = ">=3.8"
477 | files = [
478 | {file = "pdfplumber-0.10.4-py3-none-any.whl", hash = "sha256:c8f200259703324cd39a5c93b181a0d2370a6b2b6da670c117e75c3da6aca4a4"},
479 | {file = "pdfplumber-0.10.4.tar.gz", hash = "sha256:1c83a4e1fe75525ce1f161fa55a8142209a2da69b45542ce2c45be879e804fd6"},
480 | ]
481 |
482 | [package.dependencies]
483 | "pdfminer.six" = "20221105"
484 | Pillow = ">=9.1"
485 | pypdfium2 = ">=4.18.0"
486 |
487 | [[package]]
488 | name = "pillow"
489 | version = "10.4.0"
490 | description = "Python Imaging Library (Fork)"
491 | optional = false
492 | python-versions = ">=3.8"
493 | files = [
494 | {file = "pillow-10.4.0-cp310-cp310-macosx_10_10_x86_64.whl", hash = "sha256:4d9667937cfa347525b319ae34375c37b9ee6b525440f3ef48542fcf66f2731e"},
495 | {file = "pillow-10.4.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:543f3dc61c18dafb755773efc89aae60d06b6596a63914107f75459cf984164d"},
496 | {file = "pillow-10.4.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7928ecbf1ece13956b95d9cbcfc77137652b02763ba384d9ab508099a2eca856"},
497 | {file = "pillow-10.4.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e4d49b85c4348ea0b31ea63bc75a9f3857869174e2bf17e7aba02945cd218e6f"},
498 | {file = "pillow-10.4.0-cp310-cp310-manylinux_2_28_aarch64.whl", hash = "sha256:6c762a5b0997f5659a5ef2266abc1d8851ad7749ad9a6a5506eb23d314e4f46b"},
499 | {file = "pillow-10.4.0-cp310-cp310-manylinux_2_28_x86_64.whl", hash = "sha256:a985e028fc183bf12a77a8bbf36318db4238a3ded7fa9df1b9a133f1cb79f8fc"},
500 | {file = "pillow-10.4.0-cp310-cp310-musllinux_1_2_aarch64.whl", hash = "sha256:812f7342b0eee081eaec84d91423d1b4650bb9828eb53d8511bcef8ce5aecf1e"},
501 | {file = "pillow-10.4.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:ac1452d2fbe4978c2eec89fb5a23b8387aba707ac72810d9490118817d9c0b46"},
502 | {file = "pillow-10.4.0-cp310-cp310-win32.whl", hash = "sha256:bcd5e41a859bf2e84fdc42f4edb7d9aba0a13d29a2abadccafad99de3feff984"},
503 | {file = "pillow-10.4.0-cp310-cp310-win_amd64.whl", hash = "sha256:ecd85a8d3e79cd7158dec1c9e5808e821feea088e2f69a974db5edf84dc53141"},
504 | {file = "pillow-10.4.0-cp310-cp310-win_arm64.whl", hash = "sha256:ff337c552345e95702c5fde3158acb0625111017d0e5f24bf3acdb9cc16b90d1"},
505 | {file = "pillow-10.4.0-cp311-cp311-macosx_10_10_x86_64.whl", hash = "sha256:0a9ec697746f268507404647e531e92889890a087e03681a3606d9b920fbee3c"},
506 | {file = "pillow-10.4.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:dfe91cb65544a1321e631e696759491ae04a2ea11d36715eca01ce07284738be"},
507 | {file = "pillow-10.4.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5dc6761a6efc781e6a1544206f22c80c3af4c8cf461206d46a1e6006e4429ff3"},
508 | {file = "pillow-10.4.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5e84b6cc6a4a3d76c153a6b19270b3526a5a8ed6b09501d3af891daa2a9de7d6"},
509 | {file = "pillow-10.4.0-cp311-cp311-manylinux_2_28_aarch64.whl", hash = "sha256:bbc527b519bd3aa9d7f429d152fea69f9ad37c95f0b02aebddff592688998abe"},
510 | {file = "pillow-10.4.0-cp311-cp311-manylinux_2_28_x86_64.whl", hash = "sha256:76a911dfe51a36041f2e756b00f96ed84677cdeb75d25c767f296c1c1eda1319"},
511 | {file = "pillow-10.4.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:59291fb29317122398786c2d44427bbd1a6d7ff54017075b22be9d21aa59bd8d"},
512 | {file = "pillow-10.4.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:416d3a5d0e8cfe4f27f574362435bc9bae57f679a7158e0096ad2beb427b8696"},
513 | {file = "pillow-10.4.0-cp311-cp311-win32.whl", hash = "sha256:7086cc1d5eebb91ad24ded9f58bec6c688e9f0ed7eb3dbbf1e4800280a896496"},
514 | {file = "pillow-10.4.0-cp311-cp311-win_amd64.whl", hash = "sha256:cbed61494057c0f83b83eb3a310f0bf774b09513307c434d4366ed64f4128a91"},
515 | {file = "pillow-10.4.0-cp311-cp311-win_arm64.whl", hash = "sha256:f5f0c3e969c8f12dd2bb7e0b15d5c468b51e5017e01e2e867335c81903046a22"},
516 | {file = "pillow-10.4.0-cp312-cp312-macosx_10_10_x86_64.whl", hash = "sha256:673655af3eadf4df6b5457033f086e90299fdd7a47983a13827acf7459c15d94"},
517 | {file = "pillow-10.4.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:866b6942a92f56300012f5fbac71f2d610312ee65e22f1aa2609e491284e5597"},
518 | {file = "pillow-10.4.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:29dbdc4207642ea6aad70fbde1a9338753d33fb23ed6956e706936706f52dd80"},
519 | {file = "pillow-10.4.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bf2342ac639c4cf38799a44950bbc2dfcb685f052b9e262f446482afaf4bffca"},
520 | {file = "pillow-10.4.0-cp312-cp312-manylinux_2_28_aarch64.whl", hash = "sha256:f5b92f4d70791b4a67157321c4e8225d60b119c5cc9aee8ecf153aace4aad4ef"},
521 | {file = "pillow-10.4.0-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:86dcb5a1eb778d8b25659d5e4341269e8590ad6b4e8b44d9f4b07f8d136c414a"},
522 | {file = "pillow-10.4.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:780c072c2e11c9b2c7ca37f9a2ee8ba66f44367ac3e5c7832afcfe5104fd6d1b"},
523 | {file = "pillow-10.4.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:37fb69d905be665f68f28a8bba3c6d3223c8efe1edf14cc4cfa06c241f8c81d9"},
524 | {file = "pillow-10.4.0-cp312-cp312-win32.whl", hash = "sha256:7dfecdbad5c301d7b5bde160150b4db4c659cee2b69589705b6f8a0c509d9f42"},
525 | {file = "pillow-10.4.0-cp312-cp312-win_amd64.whl", hash = "sha256:1d846aea995ad352d4bdcc847535bd56e0fd88d36829d2c90be880ef1ee4668a"},
526 | {file = "pillow-10.4.0-cp312-cp312-win_arm64.whl", hash = "sha256:e553cad5179a66ba15bb18b353a19020e73a7921296a7979c4a2b7f6a5cd57f9"},
527 | {file = "pillow-10.4.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:8bc1a764ed8c957a2e9cacf97c8b2b053b70307cf2996aafd70e91a082e70df3"},
528 | {file = "pillow-10.4.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:6209bb41dc692ddfee4942517c19ee81b86c864b626dbfca272ec0f7cff5d9fb"},
529 | {file = "pillow-10.4.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bee197b30783295d2eb680b311af15a20a8b24024a19c3a26431ff83eb8d1f70"},
530 | {file = "pillow-10.4.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1ef61f5dd14c300786318482456481463b9d6b91ebe5ef12f405afbba77ed0be"},
531 | {file = "pillow-10.4.0-cp313-cp313-manylinux_2_28_aarch64.whl", hash = "sha256:297e388da6e248c98bc4a02e018966af0c5f92dfacf5a5ca22fa01cb3179bca0"},
532 | {file = "pillow-10.4.0-cp313-cp313-manylinux_2_28_x86_64.whl", hash = "sha256:e4db64794ccdf6cb83a59d73405f63adbe2a1887012e308828596100a0b2f6cc"},
533 | {file = "pillow-10.4.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:bd2880a07482090a3bcb01f4265f1936a903d70bc740bfcb1fd4e8a2ffe5cf5a"},
534 | {file = "pillow-10.4.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:4b35b21b819ac1dbd1233317adeecd63495f6babf21b7b2512d244ff6c6ce309"},
535 | {file = "pillow-10.4.0-cp313-cp313-win32.whl", hash = "sha256:551d3fd6e9dc15e4c1eb6fc4ba2b39c0c7933fa113b220057a34f4bb3268a060"},
536 | {file = "pillow-10.4.0-cp313-cp313-win_amd64.whl", hash = "sha256:030abdbe43ee02e0de642aee345efa443740aa4d828bfe8e2eb11922ea6a21ea"},
537 | {file = "pillow-10.4.0-cp313-cp313-win_arm64.whl", hash = "sha256:5b001114dd152cfd6b23befeb28d7aee43553e2402c9f159807bf55f33af8a8d"},
538 | {file = "pillow-10.4.0-cp38-cp38-macosx_10_10_x86_64.whl", hash = "sha256:8d4d5063501b6dd4024b8ac2f04962d661222d120381272deea52e3fc52d3736"},
539 | {file = "pillow-10.4.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:7c1ee6f42250df403c5f103cbd2768a28fe1a0ea1f0f03fe151c8741e1469c8b"},
540 | {file = "pillow-10.4.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b15e02e9bb4c21e39876698abf233c8c579127986f8207200bc8a8f6bb27acf2"},
541 | {file = "pillow-10.4.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7a8d4bade9952ea9a77d0c3e49cbd8b2890a399422258a77f357b9cc9be8d680"},
542 | {file = "pillow-10.4.0-cp38-cp38-manylinux_2_28_aarch64.whl", hash = "sha256:43efea75eb06b95d1631cb784aa40156177bf9dd5b4b03ff38979e048258bc6b"},
543 | {file = "pillow-10.4.0-cp38-cp38-manylinux_2_28_x86_64.whl", hash = "sha256:950be4d8ba92aca4b2bb0741285a46bfae3ca699ef913ec8416c1b78eadd64cd"},
544 | {file = "pillow-10.4.0-cp38-cp38-musllinux_1_2_aarch64.whl", hash = "sha256:d7480af14364494365e89d6fddc510a13e5a2c3584cb19ef65415ca57252fb84"},
545 | {file = "pillow-10.4.0-cp38-cp38-musllinux_1_2_x86_64.whl", hash = "sha256:73664fe514b34c8f02452ffb73b7a92c6774e39a647087f83d67f010eb9a0cf0"},
546 | {file = "pillow-10.4.0-cp38-cp38-win32.whl", hash = "sha256:e88d5e6ad0d026fba7bdab8c3f225a69f063f116462c49892b0149e21b6c0a0e"},
547 | {file = "pillow-10.4.0-cp38-cp38-win_amd64.whl", hash = "sha256:5161eef006d335e46895297f642341111945e2c1c899eb406882a6c61a4357ab"},
548 | {file = "pillow-10.4.0-cp39-cp39-macosx_10_10_x86_64.whl", hash = "sha256:0ae24a547e8b711ccaaf99c9ae3cd975470e1a30caa80a6aaee9a2f19c05701d"},
549 | {file = "pillow-10.4.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:298478fe4f77a4408895605f3482b6cc6222c018b2ce565c2b6b9c354ac3229b"},
550 | {file = "pillow-10.4.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:134ace6dc392116566980ee7436477d844520a26a4b1bd4053f6f47d096997fd"},
551 | {file = "pillow-10.4.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:930044bb7679ab003b14023138b50181899da3f25de50e9dbee23b61b4de2126"},
552 | {file = "pillow-10.4.0-cp39-cp39-manylinux_2_28_aarch64.whl", hash = "sha256:c76e5786951e72ed3686e122d14c5d7012f16c8303a674d18cdcd6d89557fc5b"},
553 | {file = "pillow-10.4.0-cp39-cp39-manylinux_2_28_x86_64.whl", hash = "sha256:b2724fdb354a868ddf9a880cb84d102da914e99119211ef7ecbdc613b8c96b3c"},
554 | {file = "pillow-10.4.0-cp39-cp39-musllinux_1_2_aarch64.whl", hash = "sha256:dbc6ae66518ab3c5847659e9988c3b60dc94ffb48ef9168656e0019a93dbf8a1"},
555 | {file = "pillow-10.4.0-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:06b2f7898047ae93fad74467ec3d28fe84f7831370e3c258afa533f81ef7f3df"},
556 | {file = "pillow-10.4.0-cp39-cp39-win32.whl", hash = "sha256:7970285ab628a3779aecc35823296a7869f889b8329c16ad5a71e4901a3dc4ef"},
557 | {file = "pillow-10.4.0-cp39-cp39-win_amd64.whl", hash = "sha256:961a7293b2457b405967af9c77dcaa43cc1a8cd50d23c532e62d48ab6cdd56f5"},
558 | {file = "pillow-10.4.0-cp39-cp39-win_arm64.whl", hash = "sha256:32cda9e3d601a52baccb2856b8ea1fc213c90b340c542dcef77140dfa3278a9e"},
559 | {file = "pillow-10.4.0-pp310-pypy310_pp73-macosx_10_15_x86_64.whl", hash = "sha256:5b4815f2e65b30f5fbae9dfffa8636d992d49705723fe86a3661806e069352d4"},
560 | {file = "pillow-10.4.0-pp310-pypy310_pp73-macosx_11_0_arm64.whl", hash = "sha256:8f0aef4ef59694b12cadee839e2ba6afeab89c0f39a3adc02ed51d109117b8da"},
561 | {file = "pillow-10.4.0-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9f4727572e2918acaa9077c919cbbeb73bd2b3ebcfe033b72f858fc9fbef0026"},
562 | {file = "pillow-10.4.0-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ff25afb18123cea58a591ea0244b92eb1e61a1fd497bf6d6384f09bc3262ec3e"},
563 | {file = "pillow-10.4.0-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:dc3e2db6ba09ffd7d02ae9141cfa0ae23393ee7687248d46a7507b75d610f4f5"},
564 | {file = "pillow-10.4.0-pp310-pypy310_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:02a2be69f9c9b8c1e97cf2713e789d4e398c751ecfd9967c18d0ce304efbf885"},
565 | {file = "pillow-10.4.0-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:0755ffd4a0c6f267cccbae2e9903d95477ca2f77c4fcf3a3a09570001856c8a5"},
566 | {file = "pillow-10.4.0-pp39-pypy39_pp73-macosx_10_15_x86_64.whl", hash = "sha256:a02364621fe369e06200d4a16558e056fe2805d3468350df3aef21e00d26214b"},
567 | {file = "pillow-10.4.0-pp39-pypy39_pp73-macosx_11_0_arm64.whl", hash = "sha256:1b5dea9831a90e9d0721ec417a80d4cbd7022093ac38a568db2dd78363b00908"},
568 | {file = "pillow-10.4.0-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9b885f89040bb8c4a1573566bbb2f44f5c505ef6e74cec7ab9068c900047f04b"},
569 | {file = "pillow-10.4.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:87dd88ded2e6d74d31e1e0a99a726a6765cda32d00ba72dc37f0651f306daaa8"},
570 | {file = "pillow-10.4.0-pp39-pypy39_pp73-manylinux_2_28_aarch64.whl", hash = "sha256:2db98790afc70118bd0255c2eeb465e9767ecf1f3c25f9a1abb8ffc8cfd1fe0a"},
571 | {file = "pillow-10.4.0-pp39-pypy39_pp73-manylinux_2_28_x86_64.whl", hash = "sha256:f7baece4ce06bade126fb84b8af1c33439a76d8a6fd818970215e0560ca28c27"},
572 | {file = "pillow-10.4.0-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:cfdd747216947628af7b259d274771d84db2268ca062dd5faf373639d00113a3"},
573 | {file = "pillow-10.4.0.tar.gz", hash = "sha256:166c1cd4d24309b30d61f79f4a9114b7b2313d7450912277855ff5dfd7cd4a06"},
574 | ]
575 |
576 | [package.extras]
577 | docs = ["furo", "olefile", "sphinx (>=7.3)", "sphinx-copybutton", "sphinx-inline-tabs", "sphinxext-opengraph"]
578 | fpx = ["olefile"]
579 | mic = ["olefile"]
580 | tests = ["check-manifest", "coverage", "defusedxml", "markdown2", "olefile", "packaging", "pyroma", "pytest", "pytest-cov", "pytest-timeout"]
581 | typing = ["typing-extensions"]
582 | xmp = ["defusedxml"]
583 |
584 | [[package]]
585 | name = "platformdirs"
586 | version = "4.2.2"
587 | description = "A small Python package for determining appropriate platform-specific dirs, e.g. a `user data dir`."
588 | optional = false
589 | python-versions = ">=3.8"
590 | files = [
591 | {file = "platformdirs-4.2.2-py3-none-any.whl", hash = "sha256:2d7a1657e36a80ea911db832a8a6ece5ee53d8de21edd5cc5879af6530b1bfee"},
592 | {file = "platformdirs-4.2.2.tar.gz", hash = "sha256:38b7b51f512eed9e84a22788b4bce1de17c0adb134d6becb09836e37d8654cd3"},
593 | ]
594 |
595 | [package.extras]
596 | docs = ["furo (>=2023.9.10)", "proselint (>=0.13)", "sphinx (>=7.2.6)", "sphinx-autodoc-typehints (>=1.25.2)"]
597 | test = ["appdirs (==1.4.4)", "covdefaults (>=2.3)", "pytest (>=7.4.3)", "pytest-cov (>=4.1)", "pytest-mock (>=3.12)"]
598 | type = ["mypy (>=1.8)"]
599 |
600 | [[package]]
601 | name = "pycparser"
602 | version = "2.22"
603 | description = "C parser in Python"
604 | optional = false
605 | python-versions = ">=3.8"
606 | files = [
607 | {file = "pycparser-2.22-py3-none-any.whl", hash = "sha256:c3702b6d3dd8c7abc1afa565d7e63d53a1d0bd86cdc24edd75470f4de499cfcc"},
608 | {file = "pycparser-2.22.tar.gz", hash = "sha256:491c8be9c040f5390f5bf44a5b07752bd07f56edf992381b05c701439eec10f6"},
609 | ]
610 |
611 | [[package]]
612 | name = "pypdfium2"
613 | version = "4.30.0"
614 | description = "Python bindings to PDFium"
615 | optional = false
616 | python-versions = ">=3.6"
617 | files = [
618 | {file = "pypdfium2-4.30.0-py3-none-macosx_10_13_x86_64.whl", hash = "sha256:b33ceded0b6ff5b2b93bc1fe0ad4b71aa6b7e7bd5875f1ca0cdfb6ba6ac01aab"},
619 | {file = "pypdfium2-4.30.0-py3-none-macosx_11_0_arm64.whl", hash = "sha256:4e55689f4b06e2d2406203e771f78789bd4f190731b5d57383d05cf611d829de"},
620 | {file = "pypdfium2-4.30.0-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4e6e50f5ce7f65a40a33d7c9edc39f23140c57e37144c2d6d9e9262a2a854854"},
621 | {file = "pypdfium2-4.30.0-py3-none-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:3d0dd3ecaffd0b6dbda3da663220e705cb563918249bda26058c6036752ba3a2"},
622 | {file = "pypdfium2-4.30.0-py3-none-manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:cc3bf29b0db8c76cdfaac1ec1cde8edf211a7de7390fbf8934ad2aa9b4d6dfad"},
623 | {file = "pypdfium2-4.30.0-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f1f78d2189e0ddf9ac2b7a9b9bd4f0c66f54d1389ff6c17e9fd9dc034d06eb3f"},
624 | {file = "pypdfium2-4.30.0-py3-none-musllinux_1_1_aarch64.whl", hash = "sha256:5eda3641a2da7a7a0b2f4dbd71d706401a656fea521b6b6faa0675b15d31a163"},
625 | {file = "pypdfium2-4.30.0-py3-none-musllinux_1_1_i686.whl", hash = "sha256:0dfa61421b5eb68e1188b0b2231e7ba35735aef2d867d86e48ee6cab6975195e"},
626 | {file = "pypdfium2-4.30.0-py3-none-musllinux_1_1_x86_64.whl", hash = "sha256:f33bd79e7a09d5f7acca3b0b69ff6c8a488869a7fab48fdf400fec6e20b9c8be"},
627 | {file = "pypdfium2-4.30.0-py3-none-win32.whl", hash = "sha256:ee2410f15d576d976c2ab2558c93d392a25fb9f6635e8dd0a8a3a5241b275e0e"},
628 | {file = "pypdfium2-4.30.0-py3-none-win_amd64.whl", hash = "sha256:90dbb2ac07be53219f56be09961eb95cf2473f834d01a42d901d13ccfad64b4c"},
629 | {file = "pypdfium2-4.30.0-py3-none-win_arm64.whl", hash = "sha256:119b2969a6d6b1e8d55e99caaf05290294f2d0fe49c12a3f17102d01c441bd29"},
630 | {file = "pypdfium2-4.30.0.tar.gz", hash = "sha256:48b5b7e5566665bc1015b9d69c1ebabe21f6aee468b509531c3c8318eeee2e16"},
631 | ]
632 |
633 | [[package]]
634 | name = "python-dateutil"
635 | version = "2.9.0.post0"
636 | description = "Extensions to the standard Python datetime module"
637 | optional = false
638 | python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7"
639 | files = [
640 | {file = "python-dateutil-2.9.0.post0.tar.gz", hash = "sha256:37dd54208da7e1cd875388217d5e00ebd4179249f90fb72437e91a35459a0ad3"},
641 | {file = "python_dateutil-2.9.0.post0-py2.py3-none-any.whl", hash = "sha256:a8b2bc7bffae282281c8140a97d3aa9c14da0b136dfe83f850eea9a5f7470427"},
642 | ]
643 |
644 | [package.dependencies]
645 | six = ">=1.5"
646 |
647 | [[package]]
648 | name = "pytz"
649 | version = "2024.1"
650 | description = "World timezone definitions, modern and historical"
651 | optional = false
652 | python-versions = "*"
653 | files = [
654 | {file = "pytz-2024.1-py2.py3-none-any.whl", hash = "sha256:328171f4e3623139da4983451950b28e95ac706e13f3f2630a879749e7a8b319"},
655 | {file = "pytz-2024.1.tar.gz", hash = "sha256:2a29735ea9c18baf14b448846bde5a48030ed267578472d8955cd0e7443a9812"},
656 | ]
657 |
658 | [[package]]
659 | name = "six"
660 | version = "1.16.0"
661 | description = "Python 2 and 3 compatibility utilities"
662 | optional = false
663 | python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*"
664 | files = [
665 | {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"},
666 | {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"},
667 | ]
668 |
669 | [[package]]
670 | name = "tabulate"
671 | version = "0.9.0"
672 | description = "Pretty-print tabular data"
673 | optional = false
674 | python-versions = ">=3.7"
675 | files = [
676 | {file = "tabulate-0.9.0-py3-none-any.whl", hash = "sha256:024ca478df22e9340661486f85298cff5f6dcdba14f3813e8830015b9ed1948f"},
677 | {file = "tabulate-0.9.0.tar.gz", hash = "sha256:0095b12bf5966de529c0feb1fa08671671b3368eec77d7ef7ab114be2c068b3c"},
678 | ]
679 |
680 | [package.extras]
681 | widechars = ["wcwidth"]
682 |
683 | [[package]]
684 | name = "tomli"
685 | version = "2.0.1"
686 | description = "A lil' TOML parser"
687 | optional = false
688 | python-versions = ">=3.7"
689 | files = [
690 | {file = "tomli-2.0.1-py3-none-any.whl", hash = "sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc"},
691 | {file = "tomli-2.0.1.tar.gz", hash = "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"},
692 | ]
693 |
694 | [[package]]
695 | name = "typing-extensions"
696 | version = "4.12.2"
697 | description = "Backported and Experimental Type Hints for Python 3.8+"
698 | optional = false
699 | python-versions = ">=3.8"
700 | files = [
701 | {file = "typing_extensions-4.12.2-py3-none-any.whl", hash = "sha256:04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d"},
702 | {file = "typing_extensions-4.12.2.tar.gz", hash = "sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8"},
703 | ]
704 |
705 | [[package]]
706 | name = "tzdata"
707 | version = "2024.1"
708 | description = "Provider of IANA time zone data"
709 | optional = false
710 | python-versions = ">=2"
711 | files = [
712 | {file = "tzdata-2024.1-py2.py3-none-any.whl", hash = "sha256:9068bc196136463f5245e51efda838afa15aaeca9903f49050dfa2679db4d252"},
713 | {file = "tzdata-2024.1.tar.gz", hash = "sha256:2674120f8d891909751c38abcdfd386ac0a5a1127954fbc332af6b5ceae07efd"},
714 | ]
715 |
716 | [metadata]
717 | lock-version = "2.0"
718 | python-versions = "^3.10"
719 | content-hash = "12501855e2805055077bdb951be60731bef927512aab09785b9e750f41fe1ef5"
720 |
--------------------------------------------------------------------------------
/src/pyproject.toml:
--------------------------------------------------------------------------------
1 | [tool.poetry]
2 | name = "chronoscript"
3 | version = "0.1.0"
4 | description = ""
5 | authors = ["majimearun "]
6 | readme = "README.md"
7 |
8 | [tool.poetry.dependencies]
9 | python = "^3.10"
10 | pdfplumber = "^0.10.2"
11 | pandas = "^2.2.2"
12 | black = "^23.7.0"
13 | tabulate = "^0.9.0"
14 |
15 |
16 | [build-system]
17 | requires = ["poetry-core"]
18 | build-backend = "poetry.core.masonry.api"
19 |
--------------------------------------------------------------------------------
/src/timetables.py:
--------------------------------------------------------------------------------
1 | import json
2 | from itertools import product, combinations
3 | from operator import itemgetter
4 | from typing import Annotated
5 |
6 |
7 | def get_filtered_json(
8 | json: Annotated[dict, "main timetable json file"],
9 | CDCs: Annotated[list[str], "list of BITS codes for CDCs selected"],
10 | DEls: Annotated[list[str], "list of BITS codes for DEls selected"],
11 | HUELs: Annotated[list[str], "list of BITS codes for HUELs selected"],
12 | OPELs: Annotated[list[str], "list of BITS codes for OPELs selected"],
13 | ) -> dict:
14 | """
15 | Function to filter the main timetable json file to only include the selected courses
16 |
17 | Args:
18 | json (dict): main timetable json file
19 | CDCs (list[str]): list of BITS codes for CDCs selected
20 | DEls (list[str]): list of BITS codes for DEls selected
21 | HUELs (list[str]): list of BITS codes for HUELs selected
22 | OPELs (list[str]): list of BITS codes for OPELs selected
23 |
24 | Returns:
25 | dict: filtered json file, i.e, with only courses selected
26 | """
27 | json = json["courses"]
28 | filtered_json = {"CDCs": {}, "DEls": {}, "HUELs": {}, "OPELs": {}}
29 | for CDC in CDCs:
30 | filtered_json["CDCs"][CDC] = json[CDC]
31 | for DEL in DEls:
32 | filtered_json["DEls"][DEL] = json[DEL]
33 | for HUEL in HUELs:
34 | filtered_json["HUELs"][HUEL] = json[HUEL]
35 | for OPEL in OPELs:
36 | filtered_json["OPELs"][OPEL] = json[OPEL]
37 | return filtered_json
38 |
39 |
40 | def separate_sections_into_types(
41 | filtered_json: Annotated[
42 | dict, "filtered json file, i.e, with only courses selected"
43 | ]
44 | ) -> dict:
45 | """
46 | Function to separate the sections into lectures, tutorials and practicals
47 |
48 | Args:
49 | filtered_json (dict): filtered json file, i.e, with only courses selected
50 |
51 | Returns:
52 | dict: dictionary of courses' sections separated into lectures, tutorials and practicals
53 | """
54 | sep = {}
55 |
56 | for type in filtered_json:
57 | sep[type] = {}
58 | for course in filtered_json[type]:
59 | lectures = []
60 | tutorials = []
61 | practicals = []
62 | # inner dictionary we'll be continuously referring to
63 | ref = filtered_json[type][course]
64 | for section in ref["sections"]:
65 | if section.startswith("L"):
66 | lectures.append(section)
67 | elif section.startswith("T"):
68 | tutorials.append(section)
69 | elif section.startswith("P"):
70 | practicals.append(section)
71 | sep[type][course] = {
72 | "L": lectures,
73 | "T": tutorials,
74 | "P": practicals,
75 | }
76 | # if list is empty remove the key-value pair
77 | # we need to remove it as it causes problems when using woth itertools.product()
78 | if not lectures:
79 | del sep[type][course]["L"]
80 | if not tutorials:
81 | del sep[type][course]["T"]
82 | if not practicals:
83 | del sep[type][course]["P"]
84 | return sep
85 |
86 |
87 | def generate_intra_combinations(
88 | filtered_json: Annotated[
89 | dict, "filtered json file, i.e, with only courses selected"
90 | ],
91 | ) -> dict:
92 | """
93 | Function that generates all possible combinations of sections within each course
94 |
95 | Args:
96 | filtered_json (dict): filtered json file, i.e, with only courses selected
97 |
98 | Returns:
99 | dict: dictionary of all possible combinations of sections within each course
100 | """
101 |
102 | sep = separate_sections_into_types(filtered_json)
103 | combs = {}
104 | for type in sep:
105 | combs[type] = {}
106 | for course in sep[type]:
107 | sections = []
108 | # first check is the type of section (L, T or P) is present in the course
109 | if sep[type][course].get("L") is not None:
110 | # list of lecture sections
111 | sections.append(sep[type][course]["L"])
112 | if sep[type][course].get("P") is not None:
113 | # list of practical sections
114 | sections.append(sep[type][course]["P"])
115 | if sep[type][course].get("T") is not None:
116 | # list of tutorial sections
117 | sections.append(sep[type][course]["T"])
118 | # generate all possible combinations of sections (exhaustive and inclusive of clashes)
119 | combs[type][course] = list(product(*sections))
120 | return combs
121 |
122 |
123 | def generate_exhaustive_timetables(
124 | filtered_json: Annotated[
125 | dict, "filtered json file, i.e, with only courses selected"
126 | ],
127 | n_dels: Annotated[int, "number of DELs selected"],
128 | n_opels: Annotated[int, "number of OPELs selected"],
129 | n_huels: Annotated[int, "number of HUELs selected"],
130 | ) -> list:
131 | """
132 | Function that generates all possible timetables (exhaustive and inclusive of clashes)
133 |
134 | Args:
135 | filtered_json (dict): filtered json file, i.e, with only courses selected
136 |
137 | Returns:
138 | list: list of all possible timetables (exhaustive and inclusive of clashes)
139 | """
140 |
141 | combs = generate_intra_combinations(filtered_json)
142 | timetables = []
143 | cdcs = []
144 | dels = []
145 | opels = []
146 | huels = []
147 | for type in combs:
148 | for course in combs[type]:
149 | # format (course, section combination for that course)
150 | if type == "CDCs":
151 | cdcs.append([(str(course), comb) for comb in combs[type][course]])
152 | elif type == "DEls":
153 | dels.append([(str(course), comb) for comb in combs[type][course]])
154 | elif type == "OPELs":
155 | opels.append([(str(course), comb) for comb in combs[type][course]])
156 | elif type == "HUELs":
157 | huels.append([(str(course), comb) for comb in combs[type][course]])
158 | else:
159 | raise Exception("Course type not found in any category")
160 |
161 | # choose n_dels from dels
162 | if dels:
163 | dels = list(combinations(dels, n_dels))
164 | dels = [[j[0] for j in i] for i in dels]
165 | if huels:
166 | huels = list(combinations(huels, n_huels))
167 | huels = [[j[0] for j in i] for i in huels]
168 | if opels:
169 | opels = list(combinations(opels, n_opels))
170 | opels = [[j[0] for j in i] for i in opels]
171 |
172 | required = [dels, huels, opels]
173 | required = [i for i in required if i]
174 | possible_combinations_temp = list(product(*required))
175 | possible_combinations = []
176 | for i in possible_combinations_temp:
177 | combination = []
178 | for j in i:
179 | combination.extend(j)
180 | possible_combinations.append(combination)
181 | courses = []
182 |
183 | for comb in possible_combinations:
184 | poss = []
185 | poss.extend(cdcs)
186 | poss.extend([[c] for c in comb])
187 | courses.append(poss)
188 |
189 | timetables = list(product(*courses))
190 | timetables = []
191 | for i in range(len(courses)):
192 | timetables.extend(list(product(*courses[i])))
193 | return timetables
194 |
195 | # timetables = list(product(cdcs, dels, huels, opels))
196 | # return timetables
197 |
198 |
199 | def remove_clashes(
200 | timetables: Annotated[list, "exhaustive list of all possible timetables"],
201 | json: Annotated[dict, "filtered json file"],
202 | ) -> list:
203 | """
204 | Function that filters out timetables with clashes
205 |
206 | Args:
207 | timetables (list): exhaustive list of all possible timetables
208 | json (dict): filtered json file
209 |
210 | Returns:
211 | list: list of timetables without clashes
212 | """
213 | filtered = []
214 | for timetable in timetables:
215 | # times currently held as "in use" by some course's section
216 | # format "DH" where D is the day and H is the hour
217 | times: dict[str, bool] = dict()
218 | clashes = False
219 | for course in timetable:
220 | # course[1] as that has the section details, course[0] hold course code
221 | for sec in course[1]:
222 | # the schedule of the section from the main json file
223 | if course[0] in json["CDCs"]:
224 | sched = json["CDCs"][course[0]]["sections"][sec]["schedule"]
225 | elif course[0] in json["DEls"]:
226 | sched = json["DEls"][course[0]]["sections"][sec]["schedule"]
227 | elif course[0] in json["HUELs"]:
228 | sched = json["HUELs"][course[0]]["sections"][sec]["schedule"]
229 | elif course[0] in json["OPELs"]:
230 | sched = json["OPELs"][course[0]]["sections"][sec]["schedule"]
231 | else:
232 | raise Exception("Course code not found in any category")
233 | # ts denotes all slots needed for the section
234 | ts = []
235 | for i in range(len(sched)):
236 | ts.extend(list(product(sched[i]["days"], sched[i]["hours"])))
237 | # converting it to the string of required format "DH"
238 | ts = [str(t[0]) + str(t[1]) for t in ts]
239 | # if any slot in ts is already in times, then there is a clash
240 | # if so, mark it as clashes and dont add it to the filtered list
241 | for t in ts:
242 | if times.get(t) is not None:
243 | clashes = True
244 | break
245 | else:
246 | times[t] = True
247 | if clashes:
248 | break
249 | if clashes:
250 | break
251 | # if no clashes, add it to the filtered list
252 | if not clashes:
253 | filtered.append(timetable)
254 |
255 | return filtered
256 |
257 |
258 | def remove_exam_clashes(
259 | timetables: Annotated[list, "list of timetables without any clashes (classes)"],
260 | json: Annotated[dict, "filtered json file"],
261 | ):
262 | """
263 | Function that filters out timetables with exam clashes.
264 |
265 | Args:
266 | timetables (list): list of timetables without any clashes (classes)
267 | json (dict): filtered json file
268 |
269 | Returns:
270 | list: list of timetables without any clashes (classes and exams)
271 | """
272 | no_exam_clashes = []
273 | for timetable in timetables:
274 | mids_times: dict[str, int] = dict()
275 | compres_times: dict[str, int] = dict()
276 | clashes = False
277 | for course in timetable:
278 | # get exam times
279 | if course[0] in json["CDCs"]:
280 | mid = json["CDCs"][course[0]]["exams"][0].get("midsem", "")
281 | compre = json["CDCs"][course[0]]["exams"][0].get("compre", "")
282 | elif course[0] in json["DEls"]:
283 | mid = json["DEls"][course[0]]["exams"][0].get("midsem", "")
284 | compre = json["DEls"][course[0]]["exams"][0].get("compre", "")
285 | elif course[0] in json["HUELs"]:
286 | mid = json["HUELs"][course[0]]["exams"][0].get("midsem", "")
287 | compre = json["HUELs"][course[0]]["exams"][0].get("compre", "")
288 | elif course[0] in json["OPELs"]:
289 | mid = json["OPELs"][course[0]]["exams"][0].get("midsem", "")
290 | compre = json["OPELs"][course[0]]["exams"][0].get("compre", "")
291 | else:
292 | raise Exception("Course code not found in any category")
293 | mids_times[mid] = mids_times.get(mid, 0) + 1
294 | compres_times[compre] = compres_times.get(compre, 0) + 1
295 | # see if more than one course has the same exam time
296 | for time in mids_times:
297 | if mids_times[time] > 1 and time != None:
298 | clashes = True
299 | break
300 | if not clashes:
301 | for time in compres_times:
302 | if compres_times[time] > 1 and time != None:
303 | clashes = True
304 | break
305 | # for i in range(len(mids_times)):
306 | # for j in range(i + 1, len(mids_times)):
307 | # if mids_times[i] == mids_times[j]:
308 | # clashes = True
309 | # break
310 | # if clashes:
311 | # break
312 | # if not clashes:
313 | # for i in range(len(compres_times)):
314 | # for j in range(i + 1, len(compres_times)):
315 | # if compres_times[i] == compres_times[j]:
316 | # clashes = True
317 | # break
318 | # if clashes:
319 | # break
320 | # add to filtered list only if no clashes
321 | if not clashes:
322 | no_exam_clashes.append(timetable)
323 | return no_exam_clashes
324 |
325 |
326 | def day_wise_filter(
327 | timetables: Annotated[list, "list of timetables without clashes"],
328 | json: Annotated[dict, "filtered json file"],
329 | free_days: Annotated[list[str], "list of days to be free if possible"],
330 | lite_order: Annotated[
331 | list[str],
332 | "increasing order of how lite you want days to be (earlier means more lite)",
333 | ],
334 | filter: Annotated[bool, "whether to filter or to just sort"] = False,
335 | strong: Annotated[bool, "whether to use strong filter or not"] = False,
336 | ) -> list:
337 | """
338 | Function that filters out timetables based on the number of free days and the lite order. Lite order is the order in which you want the days to be lite. For example, if you want Saturday to be the most lite day, then lite_order = ["S", "Su", "M", "T", "W", "Th", "F"] (set the order of the other 6 accordingly))
339 |
340 | Args:
341 | timetables (list): list of timetables without clashes
342 | json (dict): filtered json file, i.e, with only courses selected
343 | free_days (list): list of days to be free if possible
344 | lite_order (list): increasing order of how lite you want days to be (earlier means more lite)
345 | filter (bool, optional): whether to filter or to just sort. Defaults to False.
346 | strong (bool, optional): whether to use strong filter or not. Defaults to False.
347 |
348 | Returns:
349 | list: list of timetables after filtering. They are sorted based on how many of the free days they have and how lite the days are.
350 | """
351 | # format: (n days matched free, timetable)
352 | matches_free_days: list[tuple] = []
353 | # format: (daily scores in a list [0, 4, 5, ...], timetable)
354 | others: list[tuple] = []
355 |
356 | day_dict = {
357 | "M": 0,
358 | "T": 1,
359 | "W": 2,
360 | "Th": 3,
361 | "F": 4,
362 | "S": 5,
363 | "Su": 6,
364 | }
365 |
366 | for timetable in timetables:
367 | # will contain the hours of each day where there is a class
368 | # used for calculating the daily scores and if it matches the free days
369 | schedule = {
370 | "M": [],
371 | "T": [],
372 | "W": [],
373 | "Th": [],
374 | "F": [],
375 | "S": [],
376 | "Su": [],
377 | }
378 | for course in timetable:
379 | for sec in course[1]:
380 | # getting the schedule of the selected section
381 | if course[0] in json["CDCs"]:
382 | sched = json["CDCs"][course[0]]["sections"][sec]["schedule"]
383 | elif course[0] in json["DEls"]:
384 | sched = json["DEls"][course[0]]["sections"][sec]["schedule"]
385 | elif course[0] in json["HUELs"]:
386 | sched = json["HUELs"][course[0]]["sections"][sec]["schedule"]
387 | elif course[0] in json["OPELs"]:
388 | sched = json["OPELs"][course[0]]["sections"][sec]["schedule"]
389 | else:
390 | raise Exception("Course code not found in any category")
391 | # since no clashes, we can just append the hours to the schedule
392 | for i in range(len(sched)):
393 | for day in sched[i]["days"]:
394 | schedule[day].append(sched[i]["hours"])
395 | # calculating the daily scores
396 | daily_scores = [len(v) for k, v in schedule.items()]
397 | # reordering the daily scores to match the lite order
398 | daily_scores = [daily_scores[day_dict[day]] for day in lite_order]
399 |
400 | n_free = 0
401 | for day in free_days:
402 | if len(schedule[day]) == 0:
403 | n_free += 1
404 |
405 | # if not strong filter, then if atleast some of the required free days are free, then add it to the list
406 | if n_free > 0 and not strong:
407 | matches_free_days.append((n_free, daily_scores, timetable))
408 | elif n_free == len(free_days):
409 | matches_free_days.append((n_free, daily_scores, timetable))
410 | else:
411 | others.append((n_free, daily_scores, timetable))
412 |
413 | # sorting based on the number of free days (descending) and then the daily scores (ascending)
414 | matches_free_days = sorted(matches_free_days, key=itemgetter(0), reverse=True)
415 | matches_free_days = sorted(matches_free_days, key=itemgetter(1))
416 |
417 | others = sorted(others, key=itemgetter(0), reverse=True)
418 | others = sorted(others, key=itemgetter(1))
419 |
420 | # reorder back to original order (M, T, W, Th, F, S, Su)
421 | original_order = {
422 | "M": lite_order.index("M"),
423 | "T": lite_order.index("T"),
424 | "W": lite_order.index("W"),
425 | "Th": lite_order.index("Th"),
426 | "F": lite_order.index("F"),
427 | "S": lite_order.index("S"),
428 | "Su": lite_order.index("Su"),
429 | }
430 | for i in range(len(matches_free_days)):
431 | matches_free_days[i] = (
432 | matches_free_days[i][0],
433 | [matches_free_days[i][1][original_order[day]] for day in original_order],
434 | matches_free_days[i][2],
435 | )
436 |
437 | for i in range(len(others)):
438 | others[i] = (
439 | others[i][0],
440 | [others[i][1][original_order[day]] for day in original_order],
441 | others[i][2],
442 | )
443 |
444 | if filter:
445 | return [i for i in matches_free_days]
446 |
447 | else:
448 | return [i for i in matches_free_days] + [i for i in others]
449 |
450 |
451 | def export_to_json(timetables: list, filtered_json: dict, n_export: int = 100) -> None:
452 | """
453 | Function that exports your timetables to a json file (in the sorted order)
454 |
455 | Args:
456 | timetables (list): list of timetables
457 | filtered_json (dict): filtered json file, i.e, with only courses selected
458 | n_export (int, optional): number of timetables to export. Defaults to 100.
459 |
460 | Returns:
461 | None
462 | """
463 | export = []
464 | for timetable in timetables:
465 | export_tt = {}
466 | export_tt["free_matched"] = timetable[0]
467 | export_tt["daily_scores"] = timetable[1]
468 | export_tt["timetable"] = {}
469 | for course in timetable[2]:
470 | export_tt["timetable"][course[0]] = {}
471 | export_tt["timetable"][course[0]]["sections"] = {}
472 | for sec in course[1]:
473 | export_tt["timetable"][course[0]]["sections"][sec] = {}
474 | export_tt["timetable"][course[0]]["sections"][sec]["schedule"] = []
475 | if course[0] in filtered_json["CDCs"]:
476 | sched = filtered_json["CDCs"][course[0]]["sections"][sec][
477 | "schedule"
478 | ]
479 | elif course[0] in filtered_json["DEls"]:
480 | sched = filtered_json["DEls"][course[0]]["sections"][sec][
481 | "schedule"
482 | ]
483 | elif course[0] in filtered_json["HUELs"]:
484 | sched = filtered_json["HUELs"][course[0]]["sections"][sec][
485 | "schedule"
486 | ]
487 | elif course[0] in filtered_json["OPELs"]:
488 | sched = filtered_json["OPELs"][course[0]]["sections"][sec][
489 | "schedule"
490 | ]
491 | else:
492 | raise Exception("Course code not found in any category")
493 | for i in range(len(sched)):
494 | export_tt["timetable"][course[0]]["sections"][sec][
495 | "schedule"
496 | ].append(
497 | {
498 | "days": sched[i]["days"],
499 | "hours": sched[i]["hours"],
500 | }
501 | )
502 | if course[0] in filtered_json["CDCs"]:
503 | exam = filtered_json["CDCs"][course[0]]["exams"][0]
504 | elif course[0] in filtered_json["DEls"]:
505 | exam = filtered_json["DEls"][course[0]]["exams"][0]
506 | elif course[0] in filtered_json["HUELs"]:
507 | exam = filtered_json["HUELs"][course[0]]["exams"][0]
508 | elif course[0] in filtered_json["OPELs"]:
509 | exam = filtered_json["OPELs"][course[0]]["exams"][0]
510 | else:
511 | raise Exception("Course code not found in any category")
512 | export_tt["timetable"][course[0]]["exams"] = exam
513 | export.append(export_tt)
514 | if len(export) == n_export:
515 | break
516 | json.dump(export, open("./files/my_timetables.json", "w"), indent=4)
517 |
518 |
519 | if __name__ == "__main__":
520 | # need to get these as inputs
521 | CDCs = [
522 | "CS F213",
523 | "CS F214",
524 | "CS F215",
525 | "CS F222",
526 | "ECON F311",
527 | "ECON F312",
528 | "ECON F313",
529 | ]
530 |
531 | # Order the oreference of DELs, HUELs and OPELs
532 |
533 | DEls = []
534 |
535 | nDels = len(DEls)
536 |
537 | OPELs = []
538 |
539 | nOpels = len(OPELs)
540 |
541 | HUELs = []
542 |
543 | nHuels = len(HUELs)
544 |
545 | pref = ["DEls", "OPELs", "HUELs"]
546 |
547 | free_days = ["S"]
548 |
549 | lite_order = ["S", "Su", "M", "T", "W", "Th", "F"]
550 |
551 | # load the json file created
552 | tt_json = json.load(open("./files/timetable.json", "r"))
553 |
554 | filtered_json = get_filtered_json(tt_json, CDCs, DEls, HUELs, OPELs)
555 |
556 | exhaustive_list_of_timetables = generate_exhaustive_timetables(
557 | filtered_json, nDels, nOpels, nHuels
558 | )
559 |
560 | timetables_without_clashes = remove_clashes(
561 | exhaustive_list_of_timetables, filtered_json
562 | )
563 |
564 | print(
565 | "Number of timetables without clashes (classes):",
566 | len(timetables_without_clashes),
567 | )
568 |
569 | timetables_without_clashes = remove_exam_clashes(
570 | timetables_without_clashes, filtered_json
571 | )
572 |
573 | print(
574 | "Number of timetables without clashes (classes and exams):",
575 | len(timetables_without_clashes),
576 | )
577 |
578 | in_my_preference_order = day_wise_filter(
579 | timetables_without_clashes,
580 | filtered_json,
581 | free_days,
582 | lite_order,
583 | filter=False,
584 | strong=False,
585 | )
586 |
587 | print("Number of timetables after filter: ", len(in_my_preference_order))
588 |
589 | if len(in_my_preference_order) > 0:
590 | print(
591 | "-----------------------------------------------------",
592 | "\nHighest match:\n",
593 | in_my_preference_order[0],
594 | "\n\n",
595 | "-----------------------------------------------------",
596 | "\nLowest match:\n",
597 | in_my_preference_order[-1],
598 | )
599 | else:
600 | print("No timetables found")
601 |
602 | export_to_json(in_my_preference_order, filtered_json)
603 |
--------------------------------------------------------------------------------
/src/visualize.py:
--------------------------------------------------------------------------------
1 | import pandas as pd
2 | import json
3 | import tabulate
4 |
5 | conversion_dict = {
6 | 1: "8 - 8:50AM",
7 | 2: "9 - 9:50AM",
8 | 3: "10 - 10:50AM",
9 | 4: "11 - 11:50AM",
10 | 5: "12 - 12:50PM",
11 | 6: "1 - 1:50PM",
12 | 7: "2 - 2:50PM",
13 | 8: "3 - 3:50PM",
14 | 9: "4 - 4:50PM",
15 | 10: "5 - 5:50PM",
16 | 11: "6 - 6:50PM",
17 | 12: "7 - 7:50PM",
18 | 13: "8 - 8:50PM",
19 | 14: "9 - 9:50PM",
20 | }
21 |
22 |
23 | def convert_timetable_to_pandas_dataframe(
24 | timetables: list[dict], index: int, condensed: bool = True
25 | ):
26 | """
27 | Function to convert timetable to pandas dataframe for better visualization
28 |
29 | Args:
30 | timetables (list[dict]): List of timetables
31 | index (int): Index of timetable to be converted to pandas dataframe
32 | condensed (bool, optional): Whether to condense the dataframe or not. Defaults to True.
33 |
34 | Returns:
35 | class_df (pd.DataFrame): Dataframe containing class schedule
36 | midsem_df (pd.DataFrame): Dataframe containing midsem schedule
37 | compre_df (pd.DataFrame): Dataframe containing compre schedule
38 | """
39 | timetable = timetables[index]
40 | timetable = timetable["timetable"]
41 | if condensed:
42 | class_df = pd.DataFrame(columns=["Course", "Section", "Days", "Time"])
43 | else:
44 | class_df = pd.DataFrame(
45 | columns=[
46 | "8 - 8:50AM",
47 | "9 - 9:50AM",
48 | "10 - 10:50AM",
49 | "11 - 11:50AM",
50 | "12 - 12:50PM",
51 | "1 - 1:50PM",
52 | "2 - 2:50PM",
53 | "3 - 3:50PM",
54 | "4 - 4:50PM",
55 | ],
56 | index=["M", "T", "W", "Th", "F", "S"],
57 | )
58 | midsem_df = pd.DataFrame(columns=["Course", "Date", "Time"])
59 | compre_df = pd.DataFrame(columns=["Course", "Date", "Time"])
60 |
61 | for course in timetable:
62 | for section in timetable[course]["sections"]:
63 | for schedule in timetable[course]["sections"][section]["schedule"]:
64 | if condensed:
65 | temp = pd.DataFrame(
66 | {
67 | "Course": course,
68 | "Section": section,
69 | "Days": " ".join(schedule["days"]),
70 | "Time": ", ".join(
71 | [conversion_dict[i] for i in schedule["hours"]]
72 | ),
73 | },
74 | index=[0],
75 | )
76 | class_df = pd.concat([class_df, temp])
77 | else:
78 | for day in schedule["days"]:
79 | for hour in schedule["hours"]:
80 | class_df.loc[day, conversion_dict[hour]] = (
81 | course + " " + section
82 | )
83 | exam_details = timetable[course]["exams"]
84 |
85 | temp = pd.DataFrame(
86 | {
87 | "Course": course,
88 | "Date": exam_details["midsem"].split(" ")[0],
89 | "Time": " ".join(exam_details["midsem"].split(" ")[1:]),
90 | },
91 | index=[0],
92 | )
93 |
94 | midsem_df = pd.concat([midsem_df, temp])
95 |
96 | temp = pd.DataFrame(
97 | {
98 | "Course": course,
99 | "Date": exam_details["compre"].split(" ")[0],
100 | "Time": " ".join(exam_details["compre"].split(" ")[1:]),
101 | },
102 | index=[0],
103 | )
104 |
105 | compre_df = pd.concat([compre_df, temp])
106 | if condensed:
107 | class_df = class_df.sort_values(by=["Days", "Time"])
108 | class_df.reset_index(drop=True, inplace=True)
109 | class_df.index += 1
110 |
111 | else:
112 | class_df.fillna("", inplace=True)
113 |
114 | midsem_df = midsem_df.sort_values(by=["Date"])
115 | midsem_df.reset_index(drop=True, inplace=True)
116 | midsem_df.index += 1
117 |
118 | compre_df = compre_df.sort_values(by=["Date"])
119 | compre_df.reset_index(drop=True, inplace=True)
120 | compre_df.index += 1
121 |
122 | return class_df, midsem_df, compre_df
123 |
124 |
125 | if __name__ == "__main__":
126 | index = 0
127 | with open("./files/my_timetables.json", "r") as f:
128 | timetables = json.load(f)
129 | dfs = convert_timetable_to_pandas_dataframe(timetables, index, False)
130 | print("======================================================\n")
131 | print("Class Schedule:\n\n")
132 | print(tabulate.tabulate(dfs[0], headers="keys", tablefmt="fancy_grid"))
133 | print("------------------------------------------------------\n")
134 | print("\nMidsem Schedule:\n\n")
135 | print(tabulate.tabulate(dfs[1], headers="keys", tablefmt="fancy_grid"))
136 | print("------------------------------------------------------\n")
137 | print("\nCompre Schedule:\n\n")
138 | print(tabulate.tabulate(dfs[2], headers="keys", tablefmt="fancy_grid"))
139 | print("======================================================\n")
140 |
--------------------------------------------------------------------------------