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