lib.sources

This is package provides the minimum requirements on the classes which can be used as a source.

Package Contents

Classes

Base() The basic source class. This is not meant to be used directly as a source at runtime. But more as a basic
BaseDatabaseSource(self,**kwargs) The plug for addresses which uses a database as source.
class Base

The basic source class. This is not meant to be used directly as a source at runtime. But more as a basic class for inherit in special designed classes.

Attributes:
records (list): The list which will be filled up with records in the process.
class BaseDatabaseSource(**kwargs)

The plug for addresses which uses a database as source.

__init__(**kwargs)

Keyword Args: db_connection (str): A rfc1738 conform database connection string in the form of:

<driver_name>://<username>:<password>@<database_host>:<port>/<database_name>
model (str): A valid dotted name string which leads to an importable representation of
sqlalchemy.ext.declarative.DeclarativeMeta or the real class itself.