ServerPortfolio  2.0
Python parsers and server
 All Classes Namespaces Files Functions Variables Properties Pages
Classes
serverportfolio.UpdateStocks Namespace Reference

Define class UpdateStocks and ParserFactory. More...

Classes

class  UpdateStocks
 Update data of a list of Stock's (only one action by call is possible). More...
 
class  ParserFactory
 Helper functions, all the functions to create a specific parser from a given action. More...
 

Functions

Static functions dealing with thread creation, execution
def run_thread_pool_parser
 Create and run a pool of thread parsers. More...
 
def run_thread_parser
 Create and run the parsing of one action for an unique stock. More...
 

Detailed Description

Define class UpdateStocks and ParserFactory.

Regroup main functions to update stocks (call parsers to query web page and post-processing: save_to_file/save_to_xml/interactive mode)
Module made apart from DictionaryStocks and Stock to avoid circular/recursive import
Last Changed

Id:
UpdateStocks.py 29 2015-05-05 11:09:54Z michael

Function Documentation

def serverportfolio.UpdateStocks.run_thread_parser (   stock,
  e_action,
  option_post 
)

Create and run the parsing of one action for an unique stock.

Parsing includes pre and post-processing: validation and saving the data to file.

Parameters
stocksymbol
e_actionEAction to perform
option_postpost-processing option

Definition at line 475 of file UpdateStocks.py.

def serverportfolio.UpdateStocks.run_thread_pool_parser (   list_stock,
  e_action,
  option_post 
)

Create and run a pool of thread parsers.

In interactive session, assure the creation of a TkManager and its deletion.

Parameters
stocklist of stock symbol
e_actionEAction to perform
option_postoption for the post_processing

Definition at line 444 of file UpdateStocks.py.