Version 1.0
Copyright © 2022 Lowell D. Thomas
Python APG
 … an ABNF Parser Generator
Public Member Functions | List of all members
examples.ini_file.ini_file.IniFile Class Reference

Public Member Functions

def __init__ (self)
 
def help (self)
 
def parse_ini_file (self, fname)
 
def get_keys (self)
 Get a list of the global key names. More...
 
def get_values (self, key)
 Get the list of values for an global key name. More...
 
def get_sections (self)
 Get a list of the section names. More...
 
def get_section_keys (self, section)
 Get a list of key names in the named section. More...
 
def get_section_values (self, section, key)
 Get a list of values for the named key in the named section. More...
 

Detailed Description

Definition at line 24 of file ini_file.py.

Constructor & Destructor Documentation

◆ __init__()

def examples.ini_file.ini_file.IniFile.__init__ (   self)

Definition at line 26 of file ini_file.py.

Member Function Documentation

◆ get_keys()

def examples.ini_file.ini_file.IniFile.get_keys (   self)

Get a list of the global key names.

Returns
Returns a list, possibly empty, of global key names.

Definition at line 130 of file ini_file.py.

◆ get_section_keys()

def examples.ini_file.ini_file.IniFile.get_section_keys (   self,
  section 
)

Get a list of key names in the named section.

Parameters
sectionThe section name to find the key names in.
Returns
Returns a list, possibly empty, of key names.

Definition at line 166 of file ini_file.py.

◆ get_section_values()

def examples.ini_file.ini_file.IniFile.get_section_values (   self,
  section,
  key 
)

Get a list of values for the named key in the named section.

Parameters
sectionThe section name to find the key in.
keyThe key name to find the list of values for.
Returns
Returns a list, possibly empty, of values.

Definition at line 179 of file ini_file.py.

◆ get_sections()

def examples.ini_file.ini_file.IniFile.get_sections (   self)

Get a list of the section names.

Returns
Returns a list, possibly empty, of section names.

Definition at line 155 of file ini_file.py.

◆ get_values()

def examples.ini_file.ini_file.IniFile.get_values (   self,
  key 
)

Get the list of values for an global key name.

Parameters
keyThe name of the key to get values for.
Returns
Returns a list, possibly empty, of values.

Definition at line 141 of file ini_file.py.

◆ help()

def examples.ini_file.ini_file.IniFile.help (   self)

Definition at line 30 of file ini_file.py.

◆ parse_ini_file()

def examples.ini_file.ini_file.IniFile.parse_ini_file (   self,
  fname 
)

Definition at line 87 of file ini_file.py.


The documentation for this class was generated from the following file:
Python APG, Version 1.0, is licensed under the 2-Clause BSD License,
an Open Source Initiative Approved License.