scdatatools.forge package

class scdatatools.forge.DataCoreBinary(filename_or_data)[source]

Bases: object

dump_record_json(record, indent=2, *args, **kwargs)[source]
dump_record_xml(record, indent=2, *args, **kwargs)[source]
get_structure_instance(structure_index, instance)[source]
get_structure_instance_from_offset(structure_index, offset)[source]
record_to_dict(record, depth=100)[source]
record_to_etree(record, depth=100)[source]
search_filename(file_filter, ignore_case=True, mode='fnmatch')[source]

Search the datacore for objects by filename.

Parameters:
  • file_filter

  • ignore_case

  • mode – Method of performing a match. Valid values are: fnmatch: Compiles file_filters into a regular expression - re.match(filename) startswith: Uses the string startswith function - if any(filename.startswith(_) for _ in file_filters) endswith: Uses the string startswith function - if any(filename.endswith(_) for _ in file_filters) in: Performs and in check - filename in file_filters

Return type:

List[Record]

Returns:

List of Record objects that matched the filter

string_for_offset(offset, encoding='UTF-8')[source]
Return type:

str

Subpackages

Submodules