Pcf API (How it starts)

class valvepcf.Pcf(path=None)[source]

Bases: PcfRootNode

This is the basic class to interact with pcf files. To interact with the data, consult PcfRootNode which this class inherits

__init__(path=None)[source]

initalize a pcf file.

Parameters:

path (str) – The location of the pcf file to be parsed

source_path
Type:

(str) - The location of the parsed file.

save(destination=None)[source]

Saves the current instance of the Pcf. Overwrites original pcf file if no destination is provided.

Parameters:

destination (str, optional) – A path (directory + filename) to determine where to save the pcf file.