pyx12.map_index

Locate the correct xml map file given:
  • Interchange Control Version Number (ISA12)

  • Functional Identifier Code (GS01)

  • Version / Release / Industry Identifier Code (GS08)

  • Transaction Set Purpose Code (BHT02) (For 278 only)

Classes

map_index

Interface to the maps.xml file

Module Contents

class pyx12.map_index.map_index(base_path=None)[source]

Interface to the maps.xml file

Parameters:

base_path (string) – Override directory containing maps.xml. If None, uses package resource folder

maps: list[_MapEntry][source]
add_map(icvn, vriic, fic, tspc, map_file, abbr)[source]
Parameters:
  • icvn (str | None)

  • vriic (str | None)

  • fic (str | None)

  • tspc (str | None)

  • map_file (str | None)

  • abbr (str | None)

Return type:

None

get_filename(icvn, vriic, fic, tspc=None)[source]

Get the map filename associated with the given icvn, vriic, fic, and tspc values :rtype: string

Parameters:
  • icvn (str | None)

  • vriic (str | None)

  • fic (str | None)

  • tspc (str | None)

Return type:

str | None

get_abbr(icvn, vriic, fic, tspc=None)[source]

Get the informal abbreviation associated with the given icvn, vriic, fic, and tspc values :rtype: string

Parameters:
  • icvn (str | None)

  • vriic (str | None)

  • fic (str | None)

  • tspc (str | None)

Return type:

str | None

print_all()[source]
Return type:

None