|
ServerPortfolio
2.0
Python parsers and server
|
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... | |
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
| 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.
| stock | symbol |
| e_action | EAction to perform |
| option_post | post-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.
| stock | list of stock symbol |
| e_action | EAction to perform |
| option_post | option for the post_processing |
Definition at line 444 of file UpdateStocks.py.
1.8.6