|
ServerPortfolio
2.0
Python parsers and server
|
| Main executable to run all tests in serverportfolio/unit_test | |
| Standalone program, implement all possible functions with or without the Server running | |
| Main executable for running the portfolio python service | |
| Module for updating the dictionary of stocks using independent threads every TIMEPARSER sec, and parsing data on demand from the server | |
| Independent thread parsing the web pages, consuming data from the queue | |
| Thread to handle the queueing system and create the thread_parsers | |
| Define singleton class DictionaryStocks, act as the main container of Stocks objects | |
| Define a metaclass Singleton object | |
| Container of all Stocks objects, it also reads the static stocks configuration file "dictstocks.txt" | |
| Global variables for configuration: paths, TCP ports and generic definitions | |
| Enumeration for the action to be performed by the parser | |
| Executable to test the module DictionaryStocks | |
| Make a class for sending new data to the server of ROOT_application | |
| Make a connection to the root application server to send directly new data | |
| Define an abstract base class for specific Parsers | |
| Define 2 abstract methods which need to be overridden by the Parsers and a generic algorithm (run_parser) for parsing the data | |
| Specific parser for querying the french Boursorama website | |
| Specific parser for querying the Boursorama website, only for instantaneous data | |
| Utilities functions specific to the parsers | |
| Define the class YahooCSV to use the 'old' Yahoo API | |
| Derived parser class for retrieving divers data from the 'old' Yahoo API | |
| Specific parser using Yahoo YQL interface | |
| Use the Yahoo YQL API | |
| Define custom and specific exceptions for the complete package | |
| Base class of the custom exceptions | |
| Derived class specific to the parsers | |
| Specific exception related to the web query (Utils.WebQuery) | |
| To communicate with the server | |
| Server of the application, wait for requests: provide data, force update, etc | |
| The thread Server | |
| Make a proper handler class to respond to the message | |
| Define the classes Stock and InvalidStock | |
| Store data and functions related to one stock | |
| Class template for invalid stocks, if a stock symbol is not found in the configuration file | |
| Define the global variable StockTemplates.StTmpl and dictionary templates | |
| Define template dictionaries to describe the data structure | |
| Define class UpdateStocks and ParserFactory | |
| Update data of a list of Stock's (only one action by call is possible) | |
| Helper functions, all the functions to create a specific parser from a given action | |
| Utility functions | |
| For graphical user validation before saving the data | |
| A pure Tkinter scrollable frame that actually works! | |
| GUI interface to validate the update and saving of data | |
| Manage and serialize the access to a ValidationTkinter application, necessary when UpdateStock is run with multiple threads | |
| Small GUI, specific for dealing with list_csv | |
| Define class ValidStockUpdate | |
| Extend class Stock with functions related to the validation and saving after a stock update: most of the post_process functionalities | |
1.8.6