|
ServerPortfolio
2.0
Python parsers and server
|
Independent thread parsing the web pages, consuming data from the queue. More...


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... | |
Independent thread parsing the web pages, consuming data from the queue.
Definition at line 44 of file AutoParser.py.
| def serverportfolio.AutoParser.thread_parser.__init__ | ( | self, | |
| queue, | |||
| name | |||
| ) |
Constructor for one thread_parser.
| queue | with Stock waiting to be parsed |
| dict_stock | ... |
| name | set 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.
| 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.
|
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().
|
private |
use to stop the threads __prefix with name class, safer or stupid ! needed ?? no just wait something in the queue, to check ?
Definition at line 77 of file AutoParser.py.
Referenced by serverportfolio.AutoParser.thread_parser.run().
|
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 |
Definition at line 58 of file AutoParser.py.
Referenced by serverportfolio.Validation.ValidationTkHP.__init__(), and serverportfolio.SocketServer_Server.MyHandler_Parser.handle().
1.8.6