Share and Money Management  0.16
Namespaces | Functions | Variables
smm.quote Namespace Reference

Namespaces

 base
 
 onvista
 
 raiffeisen
 
 vwd
 
 yahoo
 

Functions

def search_and_register ()
 Search, import and register FetchPlugins. More...
 
def _modules_from_zip (filename)
 Extract a list of plugins from a module zip archive. More...
 
def _modules_from_filesystem ()
 Search in the installation directory for plugings. More...
 
def fetchQuote (klass, share_list)
 Generic function to fetch quotes using a FetchPlugin. More...
 

Variables

dictionary source2class = {}
 Mapping of source id to a FetchPlugin. More...
 
dictionary source2name = {}
 Mapping of the source id to the name of the data fetcher. More...
 

Detailed Description

Functions to import and register data tracker modules

Author
Carsten Grohmann <mail (at) carstengrohmann (dot) de>

Function Documentation

◆ _modules_from_filesystem()

def smm.quote._modules_from_filesystem ( )
private

Search in the installation directory for plugings.

Returns
List of module names

References smm.quote.base.toUnicode().

Referenced by smm.quote.search_and_register().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ _modules_from_zip()

def smm.quote._modules_from_zip (   filename)
private

Extract a list of plugins from a module zip archive.

Parameters
filenamePath and Name of the module zip archive
Returns
List of module names

Referenced by smm.quote.search_and_register().

Here is the caller graph for this function:

◆ fetchQuote()

def smm.quote.fetchQuote (   klass,
  share_list 
)

Generic function to fetch quotes using a FetchPlugin.

The quotations are fetched and converted to daily quotes automatically.

Parameters
klassClass of the FetchPlugin
share_listList of Shares

References smm.math.round_and_remove_exponent(), and smm.quote.base.toUnicode().

Here is the call graph for this function:

◆ search_and_register()

def smm.quote.search_and_register ( )

Search, import and register FetchPlugins.

See also
_modules_from_zip()
_modules_from_filesystem()
source2class
source2name

References smm.quote._modules_from_filesystem(), smm.quote._modules_from_zip(), and smm.quote.base.toUnicode().

Referenced by tests.test_misc.TestMisc.setUp().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ source2class

dictionary smm.quote.source2class = {}

Mapping of source id to a FetchPlugin.

See also
getPrimarySourceID()
source2name

◆ source2name

dictionary smm.quote.source2name = {}

Mapping of the source id to the name of the data fetcher.

See also
source2class