ServerPortfolio  2.0
Python parsers and server
 All Classes Namespaces Files Functions Variables Properties Pages
Public Member Functions | Static Private Attributes | List of all members
serverportfolio.UpdateStocks.ParserFactory Class Reference

Helper functions, all the functions to create a specific parser from a given action. More...

Collaboration diagram for serverportfolio.UpdateStocks.ParserFactory:
Collaboration graph
[legend]

Public Member Functions

def create_parser
 Return a specific parser, according to the action. More...
 
def is_compatible
 

Static Private Attributes

dictionary _ACTION
 Possible action to perform and the associated parsers. More...
 
 _logger = None
 

Detailed Description

Helper functions, all the functions to create a specific parser from a given action.

Used only by UpdateStocks

Definition at line 510 of file UpdateStocks.py.

Member Function Documentation

def serverportfolio.UpdateStocks.ParserFactory.create_parser (   cls,
  e_action,
  option = {} 
)

Return a specific parser, according to the action.

Action determine the parser to use, the first one in the entry by default

Parameters
e_actionEAction to perform
optionoptional parser. By default the first in the list is chosen (not implemented)

Definition at line 534 of file UpdateStocks.py.

def serverportfolio.UpdateStocks.ParserFactory.is_compatible (   cls,
  actual_parser,
  new_action_name 
)

Definition at line 587 of file UpdateStocks.py.

Member Data Documentation

dictionary serverportfolio.UpdateStocks.ParserFactory._ACTION
staticprivate
Initial value:
1 = {
2  EAction.Info:['YQL'], # 'YHTML'
3  EAction.HistPrice:['YCSV'],
4  EAction.DatesIntro:['YCSV'], # use an HTML page, keep in same module YahooCSV, later maybe YHTML
5  EAction.DivSplit:['YCSV'], #['YQL'], #or YCSV with_x(seems better
6  EAction.InstValue:['BOURSO'], # Only boursorama, to extend to YHTML
7  EAction.Fundamental:['YCSV','YQL'] # YHTML or YCSV also
8  }

Possible action to perform and the associated parsers.

Definition at line 513 of file UpdateStocks.py.

serverportfolio.UpdateStocks.ParserFactory._logger = None
staticprivate

Definition at line 527 of file UpdateStocks.py.


The documentation for this class was generated from the following file: