Credits to this post
Assume this is our project.
code/ # Repo root
mypkg/ # Package
__init__.py
| openapi: 3.0.1 | |
| info: | |
| title: API | |
| version: v1 | |
| servers: | |
| - url: /api/v1 | |
| security: | |
| - AccessToken: [] | |
| - ContentType: [] | |
| tags: |
| ! 2022-09-20 https://adfs.pjwstk.edu.pl | |
| ||adfs.pjwstk.edu.pl/adfs/portal/illustration/illustration.png$image | |
| ! 2022-09-20 https://gakko.pja.edu.pl | |
| ||gakko.pja.edu.pl/img/ue.png$image | |
| ! 2022-09-20 https://planzajec.pjwstk.edu.pl | |
| planzajec.pjwstk.edu.pl###header | |
| ||planzajec.pjwstk.edu.pl/adds/images/kaizen.PNG$image |
| import inspect | |
| import os | |
| from importlib.util import spec_from_file_location, module_from_spec | |
| from pathlib import Path | |
| from beanie import Document, init_beanie | |
| from motor.motor_asyncio import AsyncIOMotorClient | |
| class MongoInitializer: |
| import Foundation | |
| class GakkoTimetableFetcher: NSObject, URLSessionTaskDelegate { | |
| let login: String | |
| let password: String | |
| var session: URLSession? | |
| init(login: String, password: String) { | |
| self.login = login |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>ACPI</key> | |
| <dict> | |
| <key>Add</key> | |
| <array> | |
| <dict> | |
| <key>Comment</key> |
| // | |
| // Persistence.swift | |
| // | |
| // | |
| // Template from https://gist.github.com/kpostekk/1e7c22f68021f0fd07ce7b481c1ffb11 | |
| // | |
| import CoreData | |
| struct PersistenceController { |
Credits to this post
Assume this is our project.
code/ # Repo root
mypkg/ # Package
__init__.py
| import requests | |
| def do_login(login: str, password: str): | |
| session = requests.session() | |
| session.get('https://api.librus.pl/OAuth/Authorization?client_id=46&response_type=code&scope=mydata') | |
| session.post('https://api.librus.pl/OAuth/Authorization/Grant?client_id=46', data={ | |
| 'action': 'login', | |
| 'login': login, | |
| 'pass': password |
| import PIL | |
| import pytesseract | |
| import shutil | |
| import requests | |
| from discord import Client, Message | |
| client = Client() | |
| @client.event | |
| async def on_ready(): |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>ACPI</key> | |
| <dict> | |
| <key>DSDT</key> | |
| <dict> | |
| <key>Fixes</key> | |
| <dict> |