Registry / data / mapfile-parser

mapfile-parser

JSON →
library2.12.1pypypi✓ verified 34d ago

Map file parser library focused on decompilation projects. Supports GNU, mwld, and other map file formats. Current version: 2.12.1. Release cadence: frequent (multiple releases per month).

data
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

from mapfile_parser import MapFile
from mapfile_parser import SymbolTypes

Basic parsing of a map file and iterating over symbols.

from mapfile_parser import MapFile # Parse a map file (e.g., GNU .map or mwld .map) mf = MapFile() mf.readMapFile('path/to/mapfile.map') print(mf) # Access symbols for segment in mf.segments: for section in segment.sections: for symbol in section.symbols: if symbol.name and 'NON_MATCHING' not in symbol.name: print(symbol.name, hex(symbol.vram))
Debug
Known footguns
gotchaWhen using GNU mapfiles, the library may automatically infer ROM addresses for sections/segments even if not explicitly present. This can lead to incorrect addresses if the mapfile is incomplete. Always verify against original binary.
gotchaStatic symbols are inferred by default, which may cause false positives or missing symbols. The inference can be controlled via options.
breakingIn version 2.12.0, a CLI script `mapfile_parser` is installed via pip entry point. This may conflict with existing scripts named 'mapfile_parser' in the user's PATH.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
0 hits · last 30 days

No traffic data recorded yet.

Resources