wininfparser 1.0
module that can create, open, save, edit Windows INF files (Driver Files).
|
Class WinINF - Can open INF files, allows you to get a section by its name, can save INF files, and allows you to walk through all sections of a file. More...
Public Member Functions | |
def | __init__ (self) |
Default constructor. More... | |
def | __iter__ (self) |
Lets go through the sections! More... | |
def | __next__ (self) |
Lets go through the sections! More... | |
def | Sections (self) |
Returns section names. More... | |
def | First (self) |
Returns first section. More... | |
def | Last (self) |
Returns last section. More... | |
def | GetFileName (self) |
Returns file name. More... | |
def | Count (self) |
Returns section count/. More... | |
def | __getitem__ (self, str k) |
Returns section by name. More... | |
def | GetSection (self, Name) |
Returns section by name. More... | |
def | AddSection (self, INFsection Section) |
Adds section. More... | |
def | RemoveSection (self, INFsection Section) |
Removes selected section! More... | |
def | ParseFile (self, Name, codec=None) |
Opens INF file. More... | |
def | Save (self, Name=None, codec=None) |
Saves INF file. More... | |
Class WinINF - Can open INF files, allows you to get a section by its name, can save INF files, and allows you to walk through all sections of a file.
def wininfparser.WinINF.__init__ | ( | self | ) |
Default constructor.
def wininfparser.WinINF.__getitem__ | ( | self, | |
str | k | ||
) |
Returns section by name.
If section not present None returned. ‘InfFile['Name’]`
k | (str) |
def wininfparser.WinINF.__iter__ | ( | self | ) |
Lets go through the sections!
def wininfparser.WinINF.__next__ | ( | self | ) |
Lets go through the sections!
def wininfparser.WinINF.AddSection | ( | self, | |
INFsection | Section | ||
) |
Adds section.
Section | (INFsection) |
def wininfparser.WinINF.Count | ( | self | ) |
Returns section count/.
def wininfparser.WinINF.First | ( | self | ) |
Returns first section.
def wininfparser.WinINF.GetFileName | ( | self | ) |
Returns file name.
def wininfparser.WinINF.GetSection | ( | self, | |
Name | |||
) |
Returns section by name.
If section not present None returned.
Name | (str) |
def wininfparser.WinINF.Last | ( | self | ) |
Returns last section.
def wininfparser.WinINF.ParseFile | ( | self, | |
Name, | |||
codec = None |
|||
) |
Opens INF file.
If Name Full faile path to inf file
Name | (str) |
codec | (str) for example can be "UTF-8" |
def wininfparser.WinINF.RemoveSection | ( | self, | |
INFsection | Section | ||
) |
Removes selected section!
Section | (INFsection) |
def wininfparser.WinINF.Save | ( | self, | |
Name = None , |
|||
codec = None |
|||
) |
Saves INF file.
If Name argument is None, then data saved to current file and overwrite information on it
Name | (str) |
codec | (str) for example can be "UTF-8" |
def wininfparser.WinINF.Sections | ( | self | ) |
Returns section names.