pymunge package

Subpackages

Submodules

pymunge module

pymunge

pymunge.config module

class pymunge.config.Default

Bases: object

CACHE_FILE = '.pymunge.cache'
GRAPH_FILE = '.pymunge.graph'
LOG_FILE = '.pymunge.log'
STYLE_FILE = '.style.py'
pymunge.config.File(arg: str) Path
class pymunge.config.GameVersion

Bases: Enum

enumerators = [('_1', '1'), ('_2', '2')]
class pymunge.config.MungeFlags

Bases: Enum

Test1 = 'Test1'
Test2 = 'Test2'
enumerators = [('Test1', 'Test1'), ('Test2', 'Test2')]
class pymunge.config.MungeMode

Bases: Enum

Full = 'full'
Side = 'side'
Sound = 'sound'
World = 'world'
enumerators = [('Side', 'side'), ('Sound', 'sound'), ('World', 'world'), ('Full', 'full')]
pymunge.config.MungePath(arg: str) Path
class pymunge.config.MungePlatform

Bases: Enum

PC = 'pc'
PS2 = 'ps2'
XBOX = 'xbox'
enumerators = [('PC', 'pc'), ('PS2', 'ps2'), ('XBOX', 'xbox')]
class pymunge.config.MungeTool

Bases: Enum

If specified the munge tool filters the input of the munging process.

AnimationMunge = 'AnimationMunge'
BinMunge = 'BinMunge'
ConfigMunge = 'ConfigMunge'
LevelPack = 'LevelPack'
LocalizeMunge = 'LocalizeMunge'
ModelMunge = 'ModelMunge'
MovieMunge = 'MovieMunge'
OdfMunge = 'OdfMunge'
PathMunge = 'PathMunge'
PathPlanningMunge = 'PathPlanningMunge'
ScriptMunge = 'ScriptMunge'
SoundFLMunge = 'SoundFLMunge'
TerrainMunge = 'TerrainMunge'
TextureMunge = 'TextureMunge'
WorldMunge = 'WorldMunge'
enumerators = [('AnimationMunge', 'AnimationMunge'), ('BinMunge', 'BinMunge'), ('ConfigMunge', 'ConfigMunge'), ('LevelPack', 'LevelPack'), ('LocalizeMunge', 'LocalizeMunge'), ('ModelMunge', 'ModelMunge'), ('MovieMunge', 'MovieMunge'), ('OdfMunge', 'OdfMunge'), ('PathMunge', 'PathMunge'), ('PathPlanningMunge', 'PathPlanningMunge'), ('ScriptMunge', 'ScriptMunge'), ('SoundFLMunge', 'SoundFLMunge'), ('TerrainMunge', 'TerrainMunge'), ('TextureMunge', 'TextureMunge'), ('WorldMunge', 'WorldMunge'), ('_FILTER', {'BinMunge': ['zaa', 'zaf'], 'ConfigMunge': ['cfg', 'ffx', 'fx', 'mcfg', 'mus', 'sky', 'snd', 'tsr'], 'LevelPack': ['req'], 'LocalizeMunge': ['cfg'], 'ModelMunge': ['msh'], 'MovieMunge': ['mlst'], 'OdfMunge': ['odf'], 'PathMunge': ['pth'], 'PathPlanningMunge': ['pln'], 'ScriptMunge': ['lua'], 'SoundFLMunge': ['asfx', 'sfx', 'st4', 'stm'], 'TerrainMunge': ['ter'], 'TextureMunge': ['tga', 'pic'], 'WorldMunge': ['wld']})]
class pymunge.config.Run

Bases: Enum

Cache = 'cache'
Format = 'format'
Munge = 'munge'
enumerators = [('Cache', 'cache'), ('Format', 'format'), ('Munge', 'munge')]
pymunge.config.build_args(parser: ArgumentParser, args: Namespace)

Build nested Namespace objects recursively from subparsers.

pymunge.config.merge_namespace(default: Namespace, file: Namespace, cli: Namespace) Namespace

Fills args in this order: DEFAULT CONFIG -> CONFIG FILE -> COMMAND LINE

pymunge.config.parse_config(file: Path) Namespace
pymunge.config.populate_config(parser: ArgumentParser)

pymunge.make module

Helper script that manages several aspects of the project. Each topic is put into a separate action.

class pymunge.make.Git(path: Path = PosixPath('/home/runner/work/pymunge/pymunge'))

Bases: object

add(*files: str) str
branch() str
commit(msg: str) str
commits(source: str, target: str) int
hash(short: bool = True) str
push(remote: str) str
tag(tag: str, remote: str) tuple[str, str]
pymunge.make.run(args, cwd: Path = PosixPath('/home/runner/work/pymunge/pymunge'))

pymunge.munge module

pymunge.version module

Module contents

pymunge