importers package

Submodules

importers.e_trac_importer module

class importers.e_trac_importer.ETracImporter[source]

Bases: pepys_import.file.importer.Importer

can_load_this_file(file_contents)[source]

Whether this parser can handle this whole file

Parameters

file_contents (String) – Whole file contents

Returns

True/False

Return type

bool

can_load_this_filename(filename)[source]

Whether this importer can load a file with the provided filename

Parameters

filename (String) – Full filename

Returns

True/False

Return type

bool

can_load_this_header(header)[source]

Whether this importer can load a file with this first line of text

Parameters

header (String) – The initial line of text

Returns

True/False

Return type

bool

can_load_this_type(suffix)[source]

Whether this importer can load files with the specified suffix.

Parameters

suffix (String) – File suffix (e.g. “.doc”)

Returns

True/False

Return type

bool

static name_for(token)[source]
static parse_timestamp(date, time)[source]

importers.gpx_importer module

class importers.gpx_importer.GPXImporter[source]

Bases: pepys_import.file.importer.Importer

can_load_this_file(file_contents)[source]

Whether this parser can handle this whole file

Parameters

file_contents (String) – Whole file contents

Returns

True/False

Return type

bool

can_load_this_filename(filename)[source]

Whether this importer can load a file with the provided filename

Parameters

filename (String) – Full filename

Returns

True/False

Return type

bool

can_load_this_header(header)[source]

Whether this importer can load a file with this first line of text

Parameters

header (String) – The initial line of text

Returns

True/False

Return type

bool

can_load_this_type(suffix)[source]

Whether this importer can load files with the specified suffix.

Parameters

suffix (String) – File suffix (e.g. “.doc”)

Returns

True/False

Return type

bool

get_child_and_text_if_exists(element, search_string)[source]
parse_timestamp(s)[source]

importers.nmea_importer module

class importers.nmea_importer.NMEAImporter[source]

Bases: pepys_import.file.importer.Importer

can_load_this_file(file_contents)[source]

Whether this parser can handle this whole file

Parameters

file_contents (String) – Whole file contents

Returns

True/False

Return type

bool

can_load_this_filename(filename)[source]

Whether this importer can load a file with the provided filename

Parameters

filename (String) – Full filename

Returns

True/False

Return type

bool

can_load_this_header(header)[source]

Whether this importer can load a file with this first line of text

Parameters

header (String) – The initial line of text

Returns

True/False

Return type

bool

can_load_this_type(suffix)[source]

Whether this importer can load files with the specified suffix.

Parameters

suffix (String) – File suffix (e.g. “.doc”)

Returns

True/False

Return type

bool

static parse_timestamp(date, time)[source]

importers.replay_comment_importer module

class importers.replay_comment_importer.ReplayCommentImporter[source]

Bases: pepys_import.file.importer.Importer

can_load_this_file(file_contents)[source]

Whether this parser can handle this whole file

Parameters

file_contents (String) – Whole file contents

Returns

True/False

Return type

bool

can_load_this_filename(filename)[source]

Whether this importer can load a file with the provided filename

Parameters

filename (String) – Full filename

Returns

True/False

Return type

bool

can_load_this_header(header)[source]

Whether this importer can load a file with this first line of text

Parameters

header (String) – The initial line of text

Returns

True/False

Return type

bool

can_load_this_type(suffix)[source]

Whether this importer can load files with the specified suffix.

Parameters

suffix (String) – File suffix (e.g. “.doc”)

Returns

True/False

Return type

bool

importers.replay_contact_importer module

class importers.replay_contact_importer.ReplayContactImporter[source]

Bases: pepys_import.file.importer.Importer

can_load_this_file(file_contents)[source]

Whether this parser can handle this whole file

Parameters

file_contents (String) – Whole file contents

Returns

True/False

Return type

bool

can_load_this_filename(filename)[source]

Whether this importer can load a file with the provided filename

Parameters

filename (String) – Full filename

Returns

True/False

Return type

bool

can_load_this_header(header)[source]

Whether this importer can load a file with this first line of text

Parameters

header (String) – The initial line of text

Returns

True/False

Return type

bool

can_load_this_type(suffix)[source]

Whether this importer can load files with the specified suffix.

Parameters

suffix (String) – File suffix (e.g. “.doc”)

Returns

True/False

Return type

bool

importers.replay_importer module

class importers.replay_importer.ReplayImporter[source]

Bases: pepys_import.file.importer.Importer

can_load_this_file(file_contents)[source]

Whether this parser can handle this whole file

Parameters

file_contents (String) – Whole file contents

Returns

True/False

Return type

bool

can_load_this_filename(filename)[source]

Whether this importer can load a file with the provided filename

Parameters

filename (String) – Full filename

Returns

True/False

Return type

bool

can_load_this_header(header)[source]

Whether this importer can load a file with this first line of text

Parameters

header (String) – The initial line of text

Returns

True/False

Return type

bool

can_load_this_type(suffix)[source]

Whether this importer can load files with the specified suffix.

Parameters

suffix (String) – File suffix (e.g. “.doc”)

Returns

True/False

Return type

bool

static degrees_for(degs, mins, secs, hemi: str)[source]

Module contents