Commit Graph

149 Commits

Author SHA1 Message Date
Charles Le Maux
07696572aa [-] 👀 2024-09-14 16:34:44 +02:00
Charles Le Maux
89145b15a4 [~] Moved get_sdk_version on main server_mc_manager scope 2024-09-14 16:34:00 +02:00
Charles Le Maux
f62c5fc856 [+] Masterclass conditional minecraft version checker
- Added version parameter to 'start_server' function in MinecraftManager class

- Implemented a version checker that uses a pointer of Tuples, each of them containing a lower and upper bound, as well as the associated sdk

- Used currying method to concatenate 'version_range_checker' into the fastest and most efficient code

This system will allow easy versioning, as well as easy future sdk implementations.
It will also now be easy to fetch a server's version directly in the backend.

Co-authored-by: charleslemaux <charles@le-maux.dev>
2024-09-13 04:14:37 +02:00
Charles Le Maux
11fcb0f89c [+] Now include the server's version before launching 2024-09-13 04:02:07 +02:00
Charles Le Maux
9756697420 [+] Useful minecraft servers organizer :) 2024-09-13 04:00:51 +02:00
Charles Le Maux
dec704f3c5 [+] Standard server field getter 2024-09-13 04:00:14 +02:00
Charles Le Maux
8b90dc2c3d [-] log_error -> synchronous 2024-09-12 14:10:14 +02:00
Charles Le Maux
a935792c24 Merge branch 'master' into plugin-management-system 2024-09-12 12:37:18 +02:00
charleslemaux
b36fb239ac
[+] FetchDirContent API call
[+] Corrected NewFetchfile branch PR
2024-09-11 04:20:56 +02:00
Charles Le Maux
142dff547f [+] Local testing successful 2024-09-11 04:16:26 +02:00
Charles Le Maux
984a2a9acd [+] Implemented new FetchDirContent API call :) 2024-09-11 04:16:14 +02:00
Charles Le Maux
0fc0c1cdd2 [-] Stopped async testing 2024-09-11 04:15:56 +02:00
Charles Le Maux
6832b05230 [+] filter_directory_content
Allows a user to extract the files having a specific extension
2024-09-11 04:15:40 +02:00
Charles Le Maux
b558b02711 [+] FetchDirContent 2024-09-11 04:15:09 +02:00
charleslemaux
3f154b93e4
Merge pull request #29
+fetch file names function added
2024-09-11 00:43:55 +02:00
AntoninoP
a5d9ff716d +fetch file names function added 2024-09-10 21:22:58 +02:00
charleslemaux
72b48c960b
[+] Mentioning parameters 2024-09-10 19:13:29 +02:00
charleslemaux
65e36ba9d9
[+] Parameters description 2024-09-10 19:11:54 +02:00
Charles Le Maux
4daf2ed654 [-] Removed var narrowing (from the main scope) 2024-09-10 13:29:00 +02:00
Charles Le Maux
a5ab9a0caa [-] Optimized error handling & imports
[~] Reordered functions
2024-09-10 13:26:39 +02:00
Charles Le Maux
315acec4a2 [+] Reordered generic_executor.py 2024-09-10 13:26:12 +02:00
Charles Le Maux
1b1df35a14 [+] Added server closing log 2024-09-10 13:16:16 +02:00
Charles Le Maux
88eaf0b4d8 [+] Added interval parameter for easier scheduler management.
Scheduler will default to 10 minutes, meaning a server will take 20 to automatically close.

The input interval shouldn't be lower than 5 minutes except when high load expected
2024-09-10 13:13:31 +02:00
Charles Le Maux
fe2ad4e0a1 [+] Updated Docker config 2024-09-10 02:38:24 +02:00
charleslemaux
29aa5a40e3
[+] Upload route
New upload route for the servii API
Now it only allows the user to send jar and zip files as this:
- Jar files are considered as plugins and are stored in the plugins folder of the server
- zip files are considered as datapacks and are therefore stored in the datapacks folder within the defaults world folder on the server
2024-09-10 01:10:31 +02:00
Charles Le Maux
2fe31596c0 [+] Corrected exception handling syntax 2024-09-10 01:06:56 +02:00
Charles Le Maux
8a282012e3 [+] Updated testing page 2024-09-10 01:05:36 +02:00
Charles Le Maux
c46e04f7f1 [+] Upload route 2024-09-10 01:05:25 +02:00
Charles Le Maux
a7decf8dac [+] File extension parser 2024-09-10 01:05:15 +02:00
Charles Le Maux
f74d1cf937 [~] Simple async tests 2024-09-10 00:54:14 +02:00
Charles Le Maux
1123b7f60d [+] Fixed positional argument in Firestore query 2024-09-09 23:16:30 +02:00
Charles Le Maux
9042bae61e [+] Werkzeug utils for filename safety 2024-09-07 16:41:56 +02:00
charleslemaux
3b6cd9e901
[-] Did not add async engine 2024-09-06 19:05:12 +02:00
Charles Le Maux
c5c630a35c [-] Abandonning this :) 2024-09-06 19:04:03 +02:00
Charles Le Maux
620936f1b3 [+] Updated mail in readme.md 2024-09-06 18:00:54 +02:00
Charles Le Maux
46dcb39495 [+] Added exception handling to query 2024-09-06 17:56:56 +02:00
Charles Le Maux
c9c542dcbc [+] Fixed query problem 2024-09-06 17:54:04 +02:00
Charles Le Maux
a0a2a8cf43 [+] Optimized async test 2024-09-06 17:37:41 +02:00
Charles Le Maux
aa792183ab [+] Regular async test 2024-09-06 17:33:46 +02:00
Charles Le Maux
bcf096cda2 [~] No production printing. 2024-09-06 12:55:09 +02:00
Charles Le Maux
f52696d38a [~] Scheduler's interval is now 10 minutes. 2024-09-06 12:51:13 +02:00
charleslemaux
a9512014e8
[+] Idle servers are now automatically stopped.
[~] Reverted testing id
[~] Tested classical python errors
[+] Added task scheduler
[+] Updated requirements.txt
2024-09-06 12:47:57 +02:00
Charles Le Maux
bd568f6356 [+] Idle servers are now automatically stopped. 2024-09-06 12:44:05 +02:00
Charles Le Maux
afdb356220 [+] Updated requirements.txt 2024-09-06 12:43:46 +02:00
Charles Le Maux
6fd8cf73e6 [+] Added task scheduler 2024-09-06 12:43:28 +02:00
Charles Le Maux
7ff1d726cc [~] Tested classical python errors 2024-09-06 12:42:25 +02:00
Charles Le Maux
0001a78a51 [~] Reverted testing id 2024-09-06 12:42:07 +02:00
charleslemaux
683a72cad5
[~] JMV Arguments validated.
Co-authored-by: Antoninop <antoninopiraino70@gmail.com>
2024-08-24 16:38:19 +02:00
Charles Le Maux
ef3d907984 [~] JMV Arguments validated. 2024-08-24 16:35:46 +02:00
Antoninop
a1caa719bf
Merge pull request #16 from hubHarmony/12-fix-jvms-ram-arguments
[+] Servii API V1.1
2024-08-24 13:44:02 +02:00