mc-host-manager 1.0.0b1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mc_host_manager-1.0.0b1/LICENSE.md +21 -0
- mc_host_manager-1.0.0b1/PKG-INFO +77 -0
- mc_host_manager-1.0.0b1/README.md +68 -0
- mc_host_manager-1.0.0b1/api_handler.py +1324 -0
- mc_host_manager-1.0.0b1/host_manager.py +352 -0
- mc_host_manager-1.0.0b1/mc_host_manager.egg-info/PKG-INFO +77 -0
- mc_host_manager-1.0.0b1/mc_host_manager.egg-info/SOURCES.txt +9 -0
- mc_host_manager-1.0.0b1/mc_host_manager.egg-info/dependency_links.txt +1 -0
- mc_host_manager-1.0.0b1/mc_host_manager.egg-info/top_level.txt +2 -0
- mc_host_manager-1.0.0b1/pyproject.toml +18 -0
- mc_host_manager-1.0.0b1/setup.cfg +4 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 MC Host Manager Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: mc-host-manager
|
|
3
|
+
Version: 1.0.0b1
|
|
4
|
+
Summary: Minecraft host manager
|
|
5
|
+
Requires-Python: >=3.10
|
|
6
|
+
Description-Content-Type: text/markdown
|
|
7
|
+
License-File: LICENSE.md
|
|
8
|
+
Dynamic: license-file
|
|
9
|
+
|
|
10
|
+
# MC Host Manager (Lightweight)
|
|
11
|
+
|
|
12
|
+
Fast local Minecraft host dashboard with safe lock + backup flow.
|
|
13
|
+
|
|
14
|
+
## What It Does
|
|
15
|
+
|
|
16
|
+
- Start / Stop / Restart server
|
|
17
|
+
- Safe stop flow: `save -> stop -> backup -> sync world -> unlock`
|
|
18
|
+
- Live status + console logs
|
|
19
|
+
- Real-time CPU/RAM/I/O bars (server process based)
|
|
20
|
+
- Backup list + download
|
|
21
|
+
- Download full current server files (ZIP)
|
|
22
|
+
- Open server/shared/backups folders from UI
|
|
23
|
+
|
|
24
|
+
## Lightweight Design
|
|
25
|
+
|
|
26
|
+
This build intentionally removes heavy multi-layer automation and keeps only core stable logic.
|
|
27
|
+
|
|
28
|
+
- Minimal background threads
|
|
29
|
+
- Minimal endpoints
|
|
30
|
+
- No large control-panel stack
|
|
31
|
+
- Fast polling with lightweight cached status snapshots
|
|
32
|
+
|
|
33
|
+
## Key Logic
|
|
34
|
+
|
|
35
|
+
- Lock is acquired **before** start sequence
|
|
36
|
+
- Lock heartbeat runs while hosting
|
|
37
|
+
- On crash while hosting, auto finalize flow runs to release lock safely
|
|
38
|
+
- Force clear is blocked if active lock exists
|
|
39
|
+
|
|
40
|
+
## Run (source)
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
bash launch.sh
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Open: `http://localhost:7842`
|
|
47
|
+
|
|
48
|
+
## Ready-to-use package
|
|
49
|
+
|
|
50
|
+
A packaged ready-to-use app is available in `release/` as `mc-host-manager-ready-to-use-*.zip`.
|
|
51
|
+
|
|
52
|
+
Unzip it and run:
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
bash launch.sh
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
The package already includes the app files, UI assets, and docs.
|
|
59
|
+
|
|
60
|
+
## Controls From Another Screen/PC
|
|
61
|
+
|
|
62
|
+
If dashboard is opened from another device, control actions require matching `project_key`.
|
|
63
|
+
|
|
64
|
+
- Project key is shown in Settings
|
|
65
|
+
- Same key on both screens allows control
|
|
66
|
+
|
|
67
|
+
## Build
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
bash build.sh
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Windows:
|
|
74
|
+
|
|
75
|
+
```bat
|
|
76
|
+
build.bat
|
|
77
|
+
```
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
# MC Host Manager (Lightweight)
|
|
2
|
+
|
|
3
|
+
Fast local Minecraft host dashboard with safe lock + backup flow.
|
|
4
|
+
|
|
5
|
+
## What It Does
|
|
6
|
+
|
|
7
|
+
- Start / Stop / Restart server
|
|
8
|
+
- Safe stop flow: `save -> stop -> backup -> sync world -> unlock`
|
|
9
|
+
- Live status + console logs
|
|
10
|
+
- Real-time CPU/RAM/I/O bars (server process based)
|
|
11
|
+
- Backup list + download
|
|
12
|
+
- Download full current server files (ZIP)
|
|
13
|
+
- Open server/shared/backups folders from UI
|
|
14
|
+
|
|
15
|
+
## Lightweight Design
|
|
16
|
+
|
|
17
|
+
This build intentionally removes heavy multi-layer automation and keeps only core stable logic.
|
|
18
|
+
|
|
19
|
+
- Minimal background threads
|
|
20
|
+
- Minimal endpoints
|
|
21
|
+
- No large control-panel stack
|
|
22
|
+
- Fast polling with lightweight cached status snapshots
|
|
23
|
+
|
|
24
|
+
## Key Logic
|
|
25
|
+
|
|
26
|
+
- Lock is acquired **before** start sequence
|
|
27
|
+
- Lock heartbeat runs while hosting
|
|
28
|
+
- On crash while hosting, auto finalize flow runs to release lock safely
|
|
29
|
+
- Force clear is blocked if active lock exists
|
|
30
|
+
|
|
31
|
+
## Run (source)
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
bash launch.sh
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Open: `http://localhost:7842`
|
|
38
|
+
|
|
39
|
+
## Ready-to-use package
|
|
40
|
+
|
|
41
|
+
A packaged ready-to-use app is available in `release/` as `mc-host-manager-ready-to-use-*.zip`.
|
|
42
|
+
|
|
43
|
+
Unzip it and run:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
bash launch.sh
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
The package already includes the app files, UI assets, and docs.
|
|
50
|
+
|
|
51
|
+
## Controls From Another Screen/PC
|
|
52
|
+
|
|
53
|
+
If dashboard is opened from another device, control actions require matching `project_key`.
|
|
54
|
+
|
|
55
|
+
- Project key is shown in Settings
|
|
56
|
+
- Same key on both screens allows control
|
|
57
|
+
|
|
58
|
+
## Build
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
bash build.sh
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Windows:
|
|
65
|
+
|
|
66
|
+
```bat
|
|
67
|
+
build.bat
|
|
68
|
+
```
|