xerparser.reader

This file starts the process of reading and parsing xer files

Classes

Reader

Reader class is the main parser for xer files. It takes a file path as a parameter.

Module Contents

class xerparser.reader.Reader(filename)[source]

Reader class is the main parser for xer files. It takes a file path as a parameter. The read records are parsed into classes depending on their types like activities, wbs,etc.

Parameters:

<file> – is an xer file that need to be parsed

Returns:

Reader object that contains collection of parsed records

Example:

from xerparser.reader import Reader file = Reader(‘file.xer’)

current_table = ''[source]
current_headers = [][source]
write(filename=None)[source]
create_object(object_type, params)[source]
Parameters:
  • object_type

  • params

Returns:

summary()[source]
property projects: xerparser.Projects[source]

Projects

Returns:

list of all projects contained in the xer file

todo:: text

property activities: xerparser.Tasks[source]

Property to retrieve list of tasks Returns: list of tasks

property wbss: xerparser.WBSs[source]

Property to return all wbs elements in the parsed file :returns: list of wbs elements

property relations: xerparser.Predecessors[source]

Property to retrieve relationships from parsed file :returns: list of relations

property resources: xerparser.Resources[source]

Property to return a list of resources from parsed file :returns: list of resources of type Resources

property accounts: xerparser.Accounts[source]

Property to return a list of accounts from parsed files :returns: list of accounts of type Accounts

property activitycodes: xerparser.ActivityCodes[source]

Property to return a list of activity codes from parsed files :returns: list of accounts of type ActivityCode

property actvcodes: xerparser.TaskActvs[source]
property acttypes: xerparser.ActTypes[source]
property calendars: xerparser.Calendars[source]
property currencies: xerparser.Currencies[source]
property obss: xerparser.OBSs[source]
property rcattypes: xerparser.RCatTypes[source]
property rcatvals: xerparser.RCatVals[source]
property rolerates: xerparser.RoleRates[source]
property roles: xerparser.Roles[source]
property resourcecurves: xerparser.ResourceCurves[source]
property resourcerates: xerparser.ResourceRates[source]
property resourcecategories: xerparser.ResourceCategories[source]
property scheduleoptions: xerparser.SchedOptions[source]
property activityresources: xerparser.ActivityResources[source]
property udfvalues: xerparser.UDFValues[source]
property udftypes: xerparser.UDFTypes[source]
property pcattypes: List[xerparser.PCatTypes][source]
property pcatvals: List[xerparser.PCatVals][source]
property projpcats: List[xerparser.ProjCat][source]
property taskprocs: List[xerparser.TaskProc][source]
property fintmpls: List[xerparser.FinTmpl][source]
property nonworks: List[xerparser.NonWork][source]
file[source]
get_num_lines(file_path)[source]