about summary refs log tree commit diff
path: root/src/APIv1.py
AgeCommit message (Collapse)Author
2024-08-24Move stuff in APIUltraQbik
2024-08-24Update to data streamsUltraQbik
Instead of sending full files, and therefore storing them in ram (which is not always possible), send data in chunks of 64KiB
2024-08-23Update API and response classUltraQbik
2024-08-23Update APIUltraQbik
2024-08-23Update API to give responseUltraQbik
2024-08-23Ditch asyncio, threading actually works much betterUltraQbik
Problem was that I wanted to do things actually in parallel, and wanted to launch a task but without blocking the thread, asyncio was for whatever reason blocking the thread which was causing issues when 1 user was downloading a file and trying to do something else on the page (like load a new page or something) Threading ACTUALLY does do exactly what I want via `threading.Thread(...).start()`, so that will be used going forward Also, it seems to 3x faster that way, because with asyncio the page took 1 sec to load, with threading it takes 280 ms, which is weird even if we are doing things one at a time
2024-08-22Update things slightlyUltraQbik
2024-08-22Kind of working API I guess?UltraQbik
2024-08-22Update API thingUltraQbik
2024-08-22API seems to workUltraQbik
2024-08-22Massive refactoring addition of APIUltraQbik