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

Independent thread parsing the web pages, consuming data from the queue. More...

Inheritance diagram for serverportfolio.AutoParser.thread_parser:
Inheritance graph
[legend]
Collaboration diagram for serverportfolio.AutoParser.thread_parser:
Collaboration graph
[legend]

Public Member Functions

def __init__
 Constructor for one thread_parser. More...
 
def __del__
 
def run
 Consume a stock and an action to perform form the queue Action implemented : InstValue
To extend to more
. More...
 

Public Attributes

 logger
 

Private Attributes

 _queue_jobs
 queue to read the jobs to do, what to put ? a Stock or the symbol ? More...
 
 _update_stock_th
 internal reference to the singleton DictionaryStocks should be an access to UpdateStocks now, one class for each parser certainly better self._dict_stocks = dict_stocks More...
 
 _update
 use to stop the threads __prefix with name class, safer or stupid ! needed ?? no just wait something in the queue, to check ? More...
 

Detailed Description

Independent thread parsing the web pages, consuming data from the queue.

Definition at line 44 of file AutoParser.py.

Constructor & Destructor Documentation

def serverportfolio.AutoParser.thread_parser.__init__ (   self,
  queue,
  name 
)

Constructor for one thread_parser.

Parameters
queuewith Stock waiting to be parsed
dict_stock...
nameset the name of the thread

Definition at line 53 of file AutoParser.py.

def serverportfolio.AutoParser.thread_parser.__del__ (   self)

Definition at line 80 of file AutoParser.py.

Member Function Documentation

def serverportfolio.AutoParser.thread_parser.run (   self)

Consume a stock and an action to perform form the queue Action implemented : InstValue
To extend to more
.

Definition at line 86 of file AutoParser.py.

References serverportfolio.AutoParser.thread_parser._update.

Member Data Documentation

serverportfolio.AutoParser.thread_parser._queue_jobs
private

queue to read the jobs to do, what to put ? a Stock or the symbol ?

Definition at line 62 of file AutoParser.py.

Referenced by serverportfolio.AutoParser.Thread_Handle_Queue.create_threads_parser().

serverportfolio.AutoParser.thread_parser._update
private

use to stop the threads __prefix with name class, safer or stupid ! needed ?? no just wait something in the queue, to check ?

Todo:
check if necessary

Definition at line 77 of file AutoParser.py.

Referenced by serverportfolio.AutoParser.thread_parser.run().

serverportfolio.AutoParser.thread_parser._update_stock_th
private

internal reference to the singleton DictionaryStocks should be an access to UpdateStocks now, one class for each parser certainly better self._dict_stocks = dict_stocks

Definition at line 68 of file AutoParser.py.

serverportfolio.AutoParser.thread_parser.logger

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