trainerbase 4.1.1__tar.gz → 4.1.3__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.
- trainerbase-4.1.3/.gitignore +170 -0
- trainerbase-4.1.3/PKG-INFO +30 -0
- {trainerbase-4.1.1 → trainerbase-4.1.3}/pyproject.toml +69 -61
- trainerbase-4.1.3/trainerbase/config.py +30 -0
- {trainerbase-4.1.1 → trainerbase-4.1.3}/trainerbase/logger.py +4 -1
- {trainerbase-4.1.1 → trainerbase-4.1.3}/trainerbase/process.py +4 -4
- trainerbase-4.1.3/trainerbase/py.typed +0 -0
- trainerbase-4.1.1/PKG-INFO +0 -38
- trainerbase-4.1.1/trainerbase/config.py +0 -15
- {trainerbase-4.1.1 → trainerbase-4.1.3}/LICENSE +0 -0
- {trainerbase-4.1.1 → trainerbase-4.1.3}/README.md +0 -0
- {trainerbase-4.1.1 → trainerbase-4.1.3}/trainerbase/__init__.py +0 -0
- {trainerbase-4.1.1 → trainerbase-4.1.3}/trainerbase/abc.py +0 -0
- {trainerbase-4.1.1 → trainerbase-4.1.3}/trainerbase/codeinjection.py +0 -0
- {trainerbase-4.1.1 → trainerbase-4.1.3}/trainerbase/common/__init__.py +0 -0
- {trainerbase-4.1.1 → trainerbase-4.1.3}/trainerbase/common/abc.py +0 -0
- {trainerbase-4.1.1 → trainerbase-4.1.3}/trainerbase/common/helpers.py +0 -0
- {trainerbase-4.1.1 → trainerbase-4.1.3}/trainerbase/common/keyboard.py +0 -0
- {trainerbase-4.1.1 → trainerbase-4.1.3}/trainerbase/common/rainbow.py +0 -0
- {trainerbase-4.1.1 → trainerbase-4.1.3}/trainerbase/common/tapper.py +0 -0
- {trainerbase-4.1.1 → trainerbase-4.1.3}/trainerbase/common/teleport.py +0 -0
- {trainerbase-4.1.1 → trainerbase-4.1.3}/trainerbase/gameobject.py +0 -0
- {trainerbase-4.1.1 → trainerbase-4.1.3}/trainerbase/gui/__init__.py +0 -0
- {trainerbase-4.1.1 → trainerbase-4.1.3}/trainerbase/gui/helpers.py +0 -0
- {trainerbase-4.1.1 → trainerbase-4.1.3}/trainerbase/gui/injections.py +0 -0
- {trainerbase-4.1.1 → trainerbase-4.1.3}/trainerbase/gui/misc.py +0 -0
- {trainerbase-4.1.1 → trainerbase-4.1.3}/trainerbase/gui/objects.py +0 -0
- {trainerbase-4.1.1 → trainerbase-4.1.3}/trainerbase/gui/rainbow.py +0 -0
- {trainerbase-4.1.1 → trainerbase-4.1.3}/trainerbase/gui/scripts.py +0 -0
- {trainerbase-4.1.1 → trainerbase-4.1.3}/trainerbase/gui/speedhack.py +0 -0
- {trainerbase-4.1.1 → trainerbase-4.1.3}/trainerbase/gui/tapper.py +0 -0
- {trainerbase-4.1.1 → trainerbase-4.1.3}/trainerbase/gui/teleport.py +0 -0
- {trainerbase-4.1.1 → trainerbase-4.1.3}/trainerbase/gui/types.py +0 -0
- {trainerbase-4.1.1 → trainerbase-4.1.3}/trainerbase/main.py +0 -0
- {trainerbase-4.1.1 → trainerbase-4.1.3}/trainerbase/memory.py +0 -0
- {trainerbase-4.1.1 → trainerbase-4.1.3}/trainerbase/scriptengine.py +0 -0
- {trainerbase-4.1.1 → trainerbase-4.1.3}/trainerbase/speedhack.py +0 -0
- {trainerbase-4.1.1 → trainerbase-4.1.3}/trainerbase/tts.py +0 -0
- {trainerbase-4.1.1 → trainerbase-4.1.3}/trainerbase_vendor/FASM.EXE +0 -0
- {trainerbase-4.1.1 → trainerbase-4.1.3}/trainerbase_vendor/speedhack32.dll +0 -0
- {trainerbase-4.1.1 → trainerbase-4.1.3}/trainerbase_vendor/speedhack64.dll +0 -0
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
# Local
|
|
2
|
+
.vscode/
|
|
3
|
+
.idea/
|
|
4
|
+
|
|
5
|
+
# PDM
|
|
6
|
+
.pdm-python
|
|
7
|
+
__pypackages__/
|
|
8
|
+
|
|
9
|
+
# Byte-compiled / optimized / DLL files
|
|
10
|
+
__pycache__/
|
|
11
|
+
*.py[cod]
|
|
12
|
+
*$py.class
|
|
13
|
+
|
|
14
|
+
# C extensions
|
|
15
|
+
*.so
|
|
16
|
+
|
|
17
|
+
# Distribution / packaging
|
|
18
|
+
.Python
|
|
19
|
+
build/
|
|
20
|
+
develop-eggs/
|
|
21
|
+
dist/
|
|
22
|
+
downloads/
|
|
23
|
+
eggs/
|
|
24
|
+
.eggs/
|
|
25
|
+
lib/
|
|
26
|
+
lib64/
|
|
27
|
+
parts/
|
|
28
|
+
sdist/
|
|
29
|
+
var/
|
|
30
|
+
wheels/
|
|
31
|
+
share/python-wheels/
|
|
32
|
+
*.egg-info/
|
|
33
|
+
.installed.cfg
|
|
34
|
+
*.egg
|
|
35
|
+
MANIFEST
|
|
36
|
+
|
|
37
|
+
# PyInstaller
|
|
38
|
+
# Usually these files are written by a python script from a template
|
|
39
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
40
|
+
*.manifest
|
|
41
|
+
*.spec
|
|
42
|
+
|
|
43
|
+
# Installer logs
|
|
44
|
+
pip-log.txt
|
|
45
|
+
pip-delete-this-directory.txt
|
|
46
|
+
|
|
47
|
+
# Unit test / coverage reports
|
|
48
|
+
htmlcov/
|
|
49
|
+
.tox/
|
|
50
|
+
.nox/
|
|
51
|
+
.coverage
|
|
52
|
+
.coverage.*
|
|
53
|
+
.cache
|
|
54
|
+
nosetests.xml
|
|
55
|
+
coverage.xml
|
|
56
|
+
*.cover
|
|
57
|
+
*.py,cover
|
|
58
|
+
.hypothesis/
|
|
59
|
+
.pytest_cache/
|
|
60
|
+
cover/
|
|
61
|
+
|
|
62
|
+
# Translations
|
|
63
|
+
*.mo
|
|
64
|
+
*.pot
|
|
65
|
+
|
|
66
|
+
# Django stuff:
|
|
67
|
+
*.log
|
|
68
|
+
local_settings.py
|
|
69
|
+
db.sqlite3
|
|
70
|
+
db.sqlite3-journal
|
|
71
|
+
|
|
72
|
+
# Flask stuff:
|
|
73
|
+
instance/
|
|
74
|
+
.webassets-cache
|
|
75
|
+
|
|
76
|
+
# Scrapy stuff:
|
|
77
|
+
.scrapy
|
|
78
|
+
|
|
79
|
+
# Sphinx documentation
|
|
80
|
+
docs/_build/
|
|
81
|
+
|
|
82
|
+
# PyBuilder
|
|
83
|
+
.pybuilder/
|
|
84
|
+
target/
|
|
85
|
+
|
|
86
|
+
# Jupyter Notebook
|
|
87
|
+
.ipynb_checkpoints
|
|
88
|
+
|
|
89
|
+
# IPython
|
|
90
|
+
profile_default/
|
|
91
|
+
ipython_config.py
|
|
92
|
+
|
|
93
|
+
# pyenv
|
|
94
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
95
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
96
|
+
# .python-version
|
|
97
|
+
|
|
98
|
+
# pipenv
|
|
99
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
100
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
101
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
102
|
+
# install all needed dependencies.
|
|
103
|
+
#Pipfile.lock
|
|
104
|
+
|
|
105
|
+
# poetry
|
|
106
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
107
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
108
|
+
# commonly ignored for libraries.
|
|
109
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
110
|
+
#poetry.lock
|
|
111
|
+
|
|
112
|
+
# pdm
|
|
113
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
114
|
+
#pdm.lock
|
|
115
|
+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
|
|
116
|
+
# in version control.
|
|
117
|
+
# https://pdm.fming.dev/#use-with-ide
|
|
118
|
+
.pdm.toml
|
|
119
|
+
.pdm-python
|
|
120
|
+
.pdm-build/
|
|
121
|
+
|
|
122
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
123
|
+
__pypackages__/
|
|
124
|
+
|
|
125
|
+
# Celery stuff
|
|
126
|
+
celerybeat-schedule
|
|
127
|
+
celerybeat.pid
|
|
128
|
+
|
|
129
|
+
# SageMath parsed files
|
|
130
|
+
*.sage.py
|
|
131
|
+
|
|
132
|
+
# Environments
|
|
133
|
+
.env
|
|
134
|
+
.venv
|
|
135
|
+
env/
|
|
136
|
+
venv/
|
|
137
|
+
ENV/
|
|
138
|
+
env.bak/
|
|
139
|
+
venv.bak/
|
|
140
|
+
|
|
141
|
+
# Spyder project settings
|
|
142
|
+
.spyderproject
|
|
143
|
+
.spyproject
|
|
144
|
+
|
|
145
|
+
# Rope project settings
|
|
146
|
+
.ropeproject
|
|
147
|
+
|
|
148
|
+
# mkdocs documentation
|
|
149
|
+
/site
|
|
150
|
+
|
|
151
|
+
# mypy
|
|
152
|
+
.mypy_cache/
|
|
153
|
+
.dmypy.json
|
|
154
|
+
dmypy.json
|
|
155
|
+
|
|
156
|
+
# Pyre type checker
|
|
157
|
+
.pyre/
|
|
158
|
+
|
|
159
|
+
# pytype static type analyzer
|
|
160
|
+
.pytype/
|
|
161
|
+
|
|
162
|
+
# Cython debug symbols
|
|
163
|
+
cython_debug/
|
|
164
|
+
|
|
165
|
+
# PyCharm
|
|
166
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
167
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
168
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
169
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
170
|
+
#.idea/
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: trainerbase
|
|
3
|
+
Version: 4.1.3
|
|
4
|
+
Summary: Framework for creating game trainers/mods
|
|
5
|
+
Author-email: v01d <v01d@v01d.ru>, doomayka <zd@doomayka.ru>
|
|
6
|
+
License-File: LICENSE
|
|
7
|
+
Requires-Python: >=3.13
|
|
8
|
+
Requires-Dist: dearpygui>=2.0.0
|
|
9
|
+
Requires-Dist: keyboard>=0.13.5
|
|
10
|
+
Requires-Dist: mouse>=0.7.1
|
|
11
|
+
Requires-Dist: psutil>=6.1.0
|
|
12
|
+
Requires-Dist: pyinjector>=1.3.0
|
|
13
|
+
Requires-Dist: pymem>=1.14.0
|
|
14
|
+
Requires-Dist: pyttsx3>=2.98
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
|
|
17
|
+
# Trainer Base
|
|
18
|
+
|
|
19
|
+
[](https://badge.fury.io/py/TrainerBase)
|
|
20
|
+
[](https://pepy.tech/project/trainerbase)
|
|
21
|
+
|
|
22
|
+
## To create project from template using cookiecutter
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
cookiecutter https://gitlab.com/v01d-gl/basic-project-template.git --checkout trainerbase
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Examples
|
|
29
|
+
|
|
30
|
+
[Python Trainers](https://gitlab.com/python-trainers)
|
|
@@ -1,61 +1,69 @@
|
|
|
1
|
-
[
|
|
2
|
-
name = "trainerbase"
|
|
3
|
-
version = "4.1.
|
|
4
|
-
description = "Framework for creating game trainers/mods"
|
|
5
|
-
authors = [
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
1
|
+
[project]
|
|
2
|
+
name = "trainerbase"
|
|
3
|
+
version = "4.1.3"
|
|
4
|
+
description = "Framework for creating game trainers/mods"
|
|
5
|
+
authors = [
|
|
6
|
+
{ name = "v01d", email = "v01d@v01d.ru" },
|
|
7
|
+
{ name = "doomayka", email = "zd@doomayka.ru" },
|
|
8
|
+
]
|
|
9
|
+
requires-python = ">=3.13"
|
|
10
|
+
readme = "README.md"
|
|
11
|
+
homepage = "https://gitlab.com/python-trainers/trainer-base"
|
|
12
|
+
repository = "https://gitlab.com/python-trainers/trainer-base"
|
|
13
|
+
dependencies = [
|
|
14
|
+
"dearpygui>=2.0.0",
|
|
15
|
+
"keyboard>=0.13.5",
|
|
16
|
+
"mouse>=0.7.1",
|
|
17
|
+
"psutil>=6.1.0",
|
|
18
|
+
"pyinjector>=1.3.0",
|
|
19
|
+
"pymem>=1.14.0",
|
|
20
|
+
"pyttsx3>=2.98",
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
[tool.ruff]
|
|
24
|
+
src = ["trainerbase"]
|
|
25
|
+
line-length = 120
|
|
26
|
+
|
|
27
|
+
[tool.ruff.lint]
|
|
28
|
+
select = [
|
|
29
|
+
"E", # pycodestyle
|
|
30
|
+
"F", # Pyflakes
|
|
31
|
+
"UP", # pyupgrade
|
|
32
|
+
"B", # flake8-bugbear
|
|
33
|
+
"SIM", # flake8-simplify
|
|
34
|
+
"I", # isort
|
|
35
|
+
"N", # pep8-naming
|
|
36
|
+
"FIX",
|
|
37
|
+
"FBT",
|
|
38
|
+
"ARG",
|
|
39
|
+
"PTH",
|
|
40
|
+
"ERA",
|
|
41
|
+
"RUF",
|
|
42
|
+
]
|
|
43
|
+
|
|
44
|
+
[tool.ruff.lint.isort]
|
|
45
|
+
lines-after-imports = 2
|
|
46
|
+
|
|
47
|
+
[tool.ruff.format]
|
|
48
|
+
line-ending = "lf"
|
|
49
|
+
|
|
50
|
+
[tool.hatch.build.targets.sdist]
|
|
51
|
+
include = [
|
|
52
|
+
"trainerbase/",
|
|
53
|
+
"trainerbase_vendor/",
|
|
54
|
+
]
|
|
55
|
+
|
|
56
|
+
[tool.hatch.build.targets.wheel]
|
|
57
|
+
include = [
|
|
58
|
+
"trainerbase/",
|
|
59
|
+
"trainerbase_vendor/",
|
|
60
|
+
]
|
|
61
|
+
|
|
62
|
+
[build-system]
|
|
63
|
+
requires = ["hatchling"]
|
|
64
|
+
build-backend = "hatchling.build"
|
|
65
|
+
|
|
66
|
+
[dependency-groups]
|
|
67
|
+
dev = [
|
|
68
|
+
"ruff>=0.7.2",
|
|
69
|
+
]
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
from pathlib import Path
|
|
2
|
+
from typing import Final
|
|
3
|
+
|
|
4
|
+
from tomllib import load as load_toml
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
CONFIG_FILE: Final[Path] = Path("./trainerbase.toml")
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
with CONFIG_FILE.resolve().open("rb") as trainerbase_toml:
|
|
11
|
+
trainerbase_config = load_toml(trainerbase_toml)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
config_warnings = []
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
try:
|
|
18
|
+
process_config = trainerbase_config["process"]
|
|
19
|
+
except KeyError:
|
|
20
|
+
# Legacy section support
|
|
21
|
+
process_config = trainerbase_config["pymem"]
|
|
22
|
+
process_config["names"] = process_config["process_names"]
|
|
23
|
+
del trainerbase_config["pymem"]
|
|
24
|
+
|
|
25
|
+
config_warnings.append(
|
|
26
|
+
"Deprecated config! Use [process] section with field `name` instead of [pymem] with `process_names`"
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
logging_config = trainerbase_config.get("logging")
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
from logging import ERROR, getLogger
|
|
2
2
|
from logging.config import dictConfig
|
|
3
3
|
|
|
4
|
-
from trainerbase.config import CONFIG_FILE, logging_config
|
|
4
|
+
from trainerbase.config import CONFIG_FILE, config_warnings, logging_config
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
if logging_config is None:
|
|
@@ -38,3 +38,6 @@ logger = getLogger("TrainerBase")
|
|
|
38
38
|
|
|
39
39
|
if using_default_config:
|
|
40
40
|
logger.debug(f"No logging config in {CONFIG_FILE}! Using default one.")
|
|
41
|
+
|
|
42
|
+
for warning_message in config_warnings:
|
|
43
|
+
logger.warning(warning_message)
|
|
@@ -7,7 +7,7 @@ from typing import cast
|
|
|
7
7
|
from psutil import Process, pid_exists, process_iter
|
|
8
8
|
from pymem import Pymem
|
|
9
9
|
|
|
10
|
-
from trainerbase.config import
|
|
10
|
+
from trainerbase.config import process_config
|
|
11
11
|
from trainerbase.logger import logger
|
|
12
12
|
|
|
13
13
|
|
|
@@ -59,9 +59,9 @@ def get_target_pid(process_names: Iterable[str], *, exact_match: bool, ignore_ca
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
def attach_to_process() -> Pymem:
|
|
62
|
-
process_names =
|
|
63
|
-
exact_match =
|
|
64
|
-
ignore_case =
|
|
62
|
+
process_names = process_config["names"]
|
|
63
|
+
exact_match = process_config["exact_match"]
|
|
64
|
+
ignore_case = process_config["ignore_case"]
|
|
65
65
|
|
|
66
66
|
if not process_names:
|
|
67
67
|
raise ValueError("Empty process name list")
|
|
File without changes
|
trainerbase-4.1.1/PKG-INFO
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: trainerbase
|
|
3
|
-
Version: 4.1.1
|
|
4
|
-
Summary: Framework for creating game trainers/mods
|
|
5
|
-
Home-page: https://gitlab.com/python-trainers/trainer-base
|
|
6
|
-
License: MIT
|
|
7
|
-
Author: v01d
|
|
8
|
-
Author-email: v01d@v01d.ru
|
|
9
|
-
Requires-Python: >=3.12,<4.0
|
|
10
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
11
|
-
Classifier: Programming Language :: Python :: 3
|
|
12
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
13
|
-
Classifier: Programming Language :: Python :: 3.13
|
|
14
|
-
Requires-Dist: dearpygui (>=2.0.0,<3.0.0)
|
|
15
|
-
Requires-Dist: keyboard (>=0.13.5,<0.14.0)
|
|
16
|
-
Requires-Dist: mouse (>=0.7.1,<0.8.0)
|
|
17
|
-
Requires-Dist: psutil (>=6.1.0,<7.0.0)
|
|
18
|
-
Requires-Dist: pyinjector (>=1.3.0,<2.0.0)
|
|
19
|
-
Requires-Dist: pymem (>=1.14.0,<2.0.0)
|
|
20
|
-
Requires-Dist: pyttsx3 (>=2.98,<3.0)
|
|
21
|
-
Project-URL: Repository, https://gitlab.com/python-trainers/trainer-base
|
|
22
|
-
Description-Content-Type: text/markdown
|
|
23
|
-
|
|
24
|
-
# Trainer Base
|
|
25
|
-
|
|
26
|
-
[](https://badge.fury.io/py/TrainerBase)
|
|
27
|
-
[](https://pepy.tech/project/trainerbase)
|
|
28
|
-
|
|
29
|
-
## To create project from template using cookiecutter
|
|
30
|
-
|
|
31
|
-
```bash
|
|
32
|
-
cookiecutter https://gitlab.com/v01d-gl/basic-project-template.git --checkout trainerbase
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
## Examples
|
|
36
|
-
|
|
37
|
-
[Python Trainers](https://gitlab.com/python-trainers)
|
|
38
|
-
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
from pathlib import Path
|
|
2
|
-
from typing import Final
|
|
3
|
-
|
|
4
|
-
from tomllib import load as load_toml
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
CONFIG_FILE: Final[Path] = Path("./trainerbase.toml")
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
with CONFIG_FILE.resolve().open("rb") as trainerbase_toml:
|
|
11
|
-
trainerbase_config = load_toml(trainerbase_toml)
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
pymem_config = trainerbase_config["pymem"]
|
|
15
|
-
logging_config = trainerbase_config.get("logging")
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|