hungernet-oxide 1.dev13__py3-none-any.whl
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.
- hungernet_oxide-1.dev13.dist-info/METADATA +78 -0
- hungernet_oxide-1.dev13.dist-info/RECORD +26 -0
- hungernet_oxide-1.dev13.dist-info/WHEEL +5 -0
- hungernet_oxide-1.dev13.dist-info/entry_points.txt +2 -0
- hungernet_oxide-1.dev13.dist-info/licenses/LICENSE +674 -0
- hungernet_oxide-1.dev13.dist-info/top_level.txt +1 -0
- oxide/__init__.py +4 -0
- oxide/__main__.py +5 -0
- oxide/actionperformer.py +105 -0
- oxide/app.py +136 -0
- oxide/configclasses/__init__.py +13 -0
- oxide/configclasses/config.py +24 -0
- oxide/configclasses/evaluation.py +52 -0
- oxide/configclasses/logging.py +20 -0
- oxide/configclasses/messages.py +37 -0
- oxide/configclasses/watcher.py +18 -0
- oxide/connection.py +62 -0
- oxide/defaultconfigs/config.yaml +22 -0
- oxide/defaultconfigs/evaluation.yaml +45 -0
- oxide/defaultconfigs/logging.yaml +16 -0
- oxide/defaultconfigs/messages.yaml +63 -0
- oxide/defaultconfigs/watcher.yaml +12 -0
- oxide/evaluator.py +71 -0
- oxide/metricfetcher.py +88 -0
- oxide/router.py +69 -0
- oxide/settings.py +23 -0
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: hungernet-oxide
|
|
3
|
+
Version: 1.dev13
|
|
4
|
+
Summary: A HungerCore-powered Minecraft server automation engine.
|
|
5
|
+
Author: iFamished
|
|
6
|
+
License: GPL-3.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/HungerNet/Oxide
|
|
8
|
+
Project-URL: Documentation, https://github.com/HungerNet/Oxide
|
|
9
|
+
Project-URL: Source, https://github.com/HungerNet/Oxide
|
|
10
|
+
Project-URL: Issues, https://github.com/HungerNet/Oxide/issues
|
|
11
|
+
Keywords: pterodactyl,minecraft,automation,server-management,hungercore,hungernet
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
|
|
17
|
+
Classifier: Operating System :: OS Independent
|
|
18
|
+
Classifier: Development Status :: 4 - Beta
|
|
19
|
+
Classifier: Intended Audience :: Developers
|
|
20
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
21
|
+
Classifier: Topic :: System :: Systems Administration
|
|
22
|
+
Requires-Python: >=3.14
|
|
23
|
+
Description-Content-Type: text/markdown
|
|
24
|
+
License-File: LICENSE
|
|
25
|
+
Requires-Dist: calagoapi
|
|
26
|
+
Requires-Dist: calagoapi-minecraft
|
|
27
|
+
Requires-Dist: hungerbridge
|
|
28
|
+
Requires-Dist: hungercore
|
|
29
|
+
Requires-Dist: mapres
|
|
30
|
+
Dynamic: license-file
|
|
31
|
+
|
|
32
|
+
# Oxide
|
|
33
|
+
A highly configurable Minecraft server monitoring and restart engine for HungerBridge / Pterodactyl-based Minecraft servers.
|
|
34
|
+
|
|
35
|
+
## System requirements
|
|
36
|
+
| | **Minimum** | **Recommended** |
|
|
37
|
+
| ----------- | ----------- | --------------- |
|
|
38
|
+
| **RAM** | 128 MB | 256 MB |
|
|
39
|
+
| **Storage** | 256 MB | 1 GB |
|
|
40
|
+
|
|
41
|
+
## Prerequisites
|
|
42
|
+
**Pterodactyl Panel / API credentials**
|
|
43
|
+
- You must have the server on a Pterodactyl Panel
|
|
44
|
+
- You need a valid client API token
|
|
45
|
+
**HungerBridge**
|
|
46
|
+
- Install [HungerBridge from Modrinth](https://modrinth.com/project/hungerbridge) on the Minecraft server you wish to monitor
|
|
47
|
+
- HungerBridge supports `Fabric`, `Quilt`, `Paper`, `Purpur`, and `Folia`
|
|
48
|
+
**A dedicated Python environment**
|
|
49
|
+
- Oxide requires a Python 3.14+ environment to run
|
|
50
|
+
*HungerNet Bot*
|
|
51
|
+
- Optional. Configure its webhook endpoint and shared token in `config/config.yaml`.
|
|
52
|
+
*Logging directory*
|
|
53
|
+
- Optional. Only necessary if you want to use file logging.
|
|
54
|
+
|
|
55
|
+
## Installation
|
|
56
|
+
- Import the [Oxide Pterodactyl egg](https://github.com/HungerNet/Oxide/blob/main/eggs/egg-oxide.json) into your panel and create a server with Python 3.14.
|
|
57
|
+
- Run the installer. It checks out the configured Git branch and installs `uv`; Python dependencies are synced on startup.
|
|
58
|
+
- Start the server once to generate the runtime YAML files in `/home/container/config/`. Set the required panel/server credentials in `/home/container/config/config.yaml`, then restart.
|
|
59
|
+
- Missing runtime files are copied from packaged defaults without overwriting existing files. The example panel and API credentials are placeholders, so valid credentials are required before the watcher can connect.
|
|
60
|
+
- Subsequent starts update the checkout when `AUTO_UPDATE` is enabled, sync the Python environment, and run Oxide.
|
|
61
|
+
|
|
62
|
+
The egg defaults to the `main` branch and enables startup auto-updates. Set `AUTO_UPDATE` to `0` to keep the installed checkout fixed, or change `GIT_BRANCH` to use another branch.
|
|
63
|
+
|
|
64
|
+
`HUNGERLIB_DEV`, `MAPRES_DEV`, and `C2E_DEV` each upgrade their package to the latest prerelease with `uv` on every startup; C2E is optional and is not required by Oxide itself. Choose the Oxide source branch with `GIT_BRANCH`.
|
|
65
|
+
|
|
66
|
+
The YAML files in `src/oxide/defaultconfigs/` are the packaged defaults. MapRes copies each one into `/home/container/config/` on first startup and fills missing keys with defaults without replacing overrides. The runtime files are not committed as duplicate defaults: `config.yaml` contains server/API/webhook settings, `logging.yaml` contains logging and terminal settings, and `evaluation.yaml`, `messages.yaml`, and `watcher.yaml` contain their matching settings. `OXIDE_CONFIG_DIR` can override this path for non-container installs.
|
|
67
|
+
|
|
68
|
+
## HungerNet Bot Webhook
|
|
69
|
+
Set `hungernetbot.enabled` to `True`, `hungernetbot.url` to the Bot's `/webhook` endpoint, and `hungernetbot.token` to the same secret configured as `BRIDGE_WEBHOOK_TOKEN` in HungerNet Bot. For example:
|
|
70
|
+
|
|
71
|
+
```yaml
|
|
72
|
+
hungernetbot:
|
|
73
|
+
enabled: True
|
|
74
|
+
url: 'https://bot.example.com/webhook'
|
|
75
|
+
token: 'replace-with-the-shared-webhook-token'
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
The webhook reports restart scheduling and outcomes, sampling failures, and startup validation or unexpected errors. Leave it disabled if no HungerNet Bot receiver is configured.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
hungernet_oxide-1.dev13.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
2
|
+
oxide/__init__.py,sha256=8Zbjr7nr7YvkGYSGo7YrDBSwBDWe0MJ-7kwKdBNSTps,59
|
|
3
|
+
oxide/__main__.py,sha256=0GGlvDUxdGolvIqo82N8a7QeJqTNQX-7M_WeylmPUIw,62
|
|
4
|
+
oxide/actionperformer.py,sha256=54Uj99e23s-frisroMY2eGlXq3BwR_wLtnb7_rQ4rUc,4232
|
|
5
|
+
oxide/app.py,sha256=mH4qT_lpfCRoxiBH9WFfKSUr8ntChredOcQG6knaa1c,4564
|
|
6
|
+
oxide/connection.py,sha256=RDAdReV-Sc2fA5oJR-XJ-l2E_ldat0JZsYIgEMYruxw,2080
|
|
7
|
+
oxide/evaluator.py,sha256=K-fKSvYmTDNxAqimTTwsd-N2yLqIKOGU9T7YmJKcwGY,2932
|
|
8
|
+
oxide/metricfetcher.py,sha256=lf5JL1IIWr1OdoIubVydDAbxeFLZpP_YaHAJ7w2nT-M,2789
|
|
9
|
+
oxide/router.py,sha256=XyOJoviq6fiB-GGjgzBMHz5U8cPCKPPR0w4Bmtt9HtQ,2207
|
|
10
|
+
oxide/settings.py,sha256=5krAkNy8xcnFeaCYsBwztZPYCt7VYevPiEl-FvHajIo,1086
|
|
11
|
+
oxide/configclasses/__init__.py,sha256=PLLzlldBbriJlzPvzCQhne9WVoKOu0qCv4QzMqpg0hE,312
|
|
12
|
+
oxide/configclasses/config.py,sha256=D0aoQMxXmJNT7q15GxQm29BD3G0lxrkZBWMoWCww-lY,779
|
|
13
|
+
oxide/configclasses/evaluation.py,sha256=6CkAQFSvL04BfL_E0tUM-aWjQXyZGrR0G_nJKsFMKfQ,1744
|
|
14
|
+
oxide/configclasses/logging.py,sha256=mXFpcSeFqKLup9fy90kk6v2H_sEcfTGrdpPkpSo5NvU,646
|
|
15
|
+
oxide/configclasses/messages.py,sha256=OfKoYXPrNi3PYvQ1n8xsofTUFOQe84p8eafPpCSbViE,1487
|
|
16
|
+
oxide/configclasses/watcher.py,sha256=75T8AlCFOMXtfv4veGQhqnrNc_guKi0-cALKAO6CmeQ,669
|
|
17
|
+
oxide/defaultconfigs/config.yaml,sha256=gTO_d6L3BxImJI0G7qbEVACH0qTMU_4oZ7RvZwWGzpQ,382
|
|
18
|
+
oxide/defaultconfigs/evaluation.yaml,sha256=sULgvfsybQumDrWE7bNeRmvWp6kcwkJLOrYDuqXAWPw,661
|
|
19
|
+
oxide/defaultconfigs/logging.yaml,sha256=-xYxHWNsh6R90nDeAKN8TTnxteedc6eNPNiRde6nJf4,400
|
|
20
|
+
oxide/defaultconfigs/messages.yaml,sha256=qjz9oW78r8xpi_Tf-ZQlGuwZ4tvzFJiZiwuAkdW1Y18,3220
|
|
21
|
+
oxide/defaultconfigs/watcher.yaml,sha256=iev4whdLrGBWE9zcmuMrUNnZc89iaxujKjUWqdWKGv0,189
|
|
22
|
+
hungernet_oxide-1.dev13.dist-info/METADATA,sha256=3wkxY7bW-gAaQKrkEWAt2GrGDQ1m8dUQKOEzjhhUdp4,4534
|
|
23
|
+
hungernet_oxide-1.dev13.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
24
|
+
hungernet_oxide-1.dev13.dist-info/entry_points.txt,sha256=MhC7rrjg7vvI6QlHKK0Z1dE5fPVQVyRyAqXMNwVzgMk,51
|
|
25
|
+
hungernet_oxide-1.dev13.dist-info/top_level.txt,sha256=MW0DCNgadOdEFKslLUfOf9ezPShzsIuPHAbuFAPAauw,6
|
|
26
|
+
hungernet_oxide-1.dev13.dist-info/RECORD,,
|