Share and Money Management 0.18devel
|
Base class of all quotation classes. More...
Static Public Attributes | |
list | properties = [] |
List of supported properties. More... | |
bool | check_robotfile = True |
Check and respect the robots.txt file. More... | |
bool | active = True |
Set False to deactivate a plugin. More... | |
int | interface_version = 2 |
Version number of the interface to access and convert the data. More... | |
string | logger_name = "smm.quote.base" |
Name of the instance logger. More... | |
string | name = "Override in derivated class!" |
Name of the data source. More... | |
provider_id = None | |
Unique provider ID. More... | |
string | dsep = "," |
Decimal separator for converting strings to decimal values. More... | |
tsep = None | |
Thousands separator for converting strings to decimal values. More... | |
logger = None | |
Instance logger. More... | |
int | max_retries = 3 |
Number of retries for temporary connection errors. More... | |
tuple | user_agent |
Define an own user agent string. More... | |
Static Private Attributes | |
list | _specific_properties = [] |
Property names. More... | |
list | _general_properties = ["errormsg", "success"] |
Name of the general properties. More... | |
Base class of all quotation classes.
This class provides often used functions e.g. to access remote resources or to convert date and time from strings into Python objects.
|
staticprivate |
Name of the general properties.
|
staticprivate |
Property names.
|
static |
Set False to deactivate a plugin.
|
static |
Check and respect the robots.txt file.
|
static |
Decimal separator for converting strings to decimal values.
|
static |
Version number of the interface to access and convert the data.
|
static |
Instance logger.
Referenced by smm.quote.onvista.OnvistaFetchPlugin._extractCertificateDetails(), smm.quote.onvista.OnvistaFetchPlugin._extractDetailsDesign2017(), smm.quote.onvista.OnvistaFetchPlugin._extractTime(), smm.quote.onvista.OnvistaFetchPlugin._extractWarrantDetails(), smm.quote.onvista.OnvistaFetchPlugin.getCurrent(), smm.quote.raiffeisen.RaiffeisenFetchPlugin.getCurrent(), smm.quote.vwd.VwdFetchPlugin.getCurrent(), smm.quote.yahoo.YahooCSVFetchPlugin.getCurrent(), smm.quote.yahoo.YahooWebFetchPlugin.getCurrent(), smm.quote.yahoo.YahooQueryFetchPlugin.getCurrent(), smm.quote.onvista.OnvistaFetchPlugin.getKind(), and smm.quote.onvista.OnvistaFetchPlugin.searchURL().
|
static |
Name of the instance logger.
|
static |
Number of retries for temporary connection errors.
|
static |
Name of the data source.
Referenced by smm.objects.Share.__str__(), and smm.quote.yahoo.YahooQueryFetchPlugin.getCurrent().
|
static |
List of supported properties.
Every class should provide a minimum set of properties
date
Time tuple with the date and time (if available) of the quote errormsg
As unicode string or None
quote.price
As ascii string source
Source of the data as unicode string success
Flag as boolean value Referenced by smm.quote.yahoo.YahooCSVFetchPlugin.__init__().
|
static |
Unique provider ID.
|
static |
Thousands separator for converting strings to decimal values.
|
static |
Define an own user agent string.
Set to None
for disable changing user agent