cms.apps.control.lib.awstatsparser package¶
Submodules¶
cms.apps.control.lib.awstatsparser.defaults module¶
cms.apps.control.lib.awstatsparser.parser module¶
-
class
cms.apps.control.lib.awstatsparser.parser.Lookup(items=[])¶ Bases:
dicta dictionary which can lookup value by key, or keys by value
-
get_key(value)¶ find the key(s) as a list given a value
-
-
class
cms.apps.control.lib.awstatsparser.parser.ParsedMonth¶ Bases:
dictAn dict with integrated month parser. The key is the section name.
-
parse(data, sectiondefs)¶ parses data and build sections.
-
-
class
cms.apps.control.lib.awstatsparser.parser.ParsedSection(dict=None)¶ Bases:
cms.apps.control.lib.awstatsparser.parser.odictAn ordered dict with integrated section parser.
-
parse(rawdata, definition=None)¶
-
-
class
cms.apps.control.lib.awstatsparser.parser.ParsedStatistics(site, location, prefix='awstats', postfix='txt', sectiondefs={'ORIGIN': ['origin', 'pages', 'hits'], 'DOMAIN': ['domain', 'pages', 'hits', 'bandwidth'], 'SEREFERRALS': ['search engine referers id', 'pages', 'hits'], 'ROBOT': ['robot id', 'hits', 'bandwidth', 'last visit', 'hits on robots.txt'], 'FILETYPES': ['files type', 'hits', 'bandwidth', 'bandwidth without compression', 'bandwidth after compression'], 'BROWSER': ['browser id', 'hits', 'pages'], 'ERRORS': ['errors', 'hits', 'bandwidth'], 'GENERAL': ['key', None], 'SESSION': ['session range', 'number of visits'], 'TIME': ['hour', 'pages', 'hits', 'bandwidth', 'not viewed pages', 'not viewed hits', 'not viewed bandwidth'], 'OS': ['os id', 'hits', 'pages'], 'DAY': ['date', 'pages', 'hits', 'bandwidth', 'visits'], 'PAGEREFS': ['external page referers', 'pages', 'hits']}, absolutepath=True)¶ Bases:
dictAn dicts with integrated statistics parser. Keys are MMYYYY. it parses the file on-demand.
-
available¶ List of available parsed stats keys.
-
latest¶ Latest parsed stats key.
-
latest12¶ Latest parsed stats key.
-
latestyear(year)¶
-
parseLogFile(my)¶ Parse a logfile from location on disk.
@param my: month+year MMYYYY as string.
-