wgc-core
Core package for the WGC QA framework. Provides configuration management, logging, exception hierarchy, and file templates.
Modules
Config (wgc_core.config)
YAML-based configuration system with Python property access:
from wgc_core.config import WGCConfig
# Access config properties
WGCConfig.application.folder # "C:\Wargaming Game Center\"
WGCConfig.application.binary_name # "wgc.exe"
WGCConfig.games.folder # "C:\Games\"
WGCConfig.mocks.http_port # 8888
WGCConfig.mocks.https_port # 7771
WGCConfig.wgc_publisher # "wargaming" | "qihoo" | "steam"
Config classes:
WGCConfig— main config (publisher, branch, arch, ports, paths)ApplicationConfig— WGC binary paths, registry keys, protocolsGamesConfig— game installation paths, metadata versionsMocksConfig— mock server ports and settingsTestDataConfig— test data source folders, dummy gamesJiraConfig— Jira integration settingsSteamConfig/FBConfig/GoogleConfig/MicrosoftConfig— external auth configs
Logger (wgc_core.logger)
JSON-configured logging with custom handlers:
from wgc_core.logger import get_logger
log = get_logger(__name__)
log.info("WGC started successfully")
Custom handlers:
TestDependentRotatingFileHandler— per-test log filesStepsToReproduceFileHandler— structured reproduction steps
Exceptions (wgc_core.exceptions)
Exception hierarchy for all framework error types:
from wgc_core.exceptions import WGCException, WGCCrash, WGCSanityCheckException
# Base: WGCException
# ├── AnotherInstanceRunning
# ├── WebSocketConnectionClosed
# ├── WGCCrash / ApplicationCrash
# ├── WGCDownloadTimeout
# ├── WGCSanityCheckException
# ├── WGCRunningTimeoutException
# └── ...
File Templates (wgc_core.file_templates)
XML/config template files for WGC configuration:
from wgc_core.file_templates import get_file_template, get_file_template_path
# Get template content as string
content = get_file_template('preferences.xml')
# Get absolute path to template file
path = get_file_template_path('wgc_info.1.58.xml')
Includes templates for: preferences.xml, game_info.xml, wgc_info.xml, service.xml, game metadata, Steam VDF files, and more.
Install
pip install wgc-core
Dependencies
wgc-clippy— low-level utilitiespyyaml,ruamel.yaml— YAML parsingpackaging— version comparison
Metadata
Release files for wgc-core 4.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wgc_core-4.0.5.tar.gz | 672.7 kB | Without provenance | Details for wgc_core-4.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wgc_core-4.0.5-py3-none-any.whl | Python 3 | none | any | Details for wgc_core-4.0.5-py3-none-any.whl |
Total release size: 1.4 MB
Release files / wgc_core-4.0.5.tar.gz
| Download URL | wgc_core-4.0.5.tar.gz |
|---|---|
| Size | 672.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d6dcf7fc6b40b426ee6e57cf4532f9e1af04edcf64b36dd5402f730e9142029c
|
|
BLAKE2b-256 checksum How to use checksums |
e734fadc90b965502a7b470cd6eef157f94ee7623317892521ce67c3a83f7b05
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / wgc_core-4.0.5-py3-none-any.whl
| Download URL | wgc_core-4.0.5-py3-none-any.whl |
|---|---|
| Size | 700.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fd489d29a065833f4b217dc38bae7d7a02d1314b1e656633bbaafa0624275cb2
|
|
BLAKE2b-256 checksum How to use checksums |
0c58123f04625fc9d3bc9536da1359e49b53a37e33ce81802192964f8abe3519
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Security for wgc-core 4.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.