app.backbone.entities

 1from sqlalchemy.orm import declarative_base
 2
 3Base = declarative_base()
 4
 5from .ticker import Ticker
 6from .category import Category
 7from .strategy import Strategy
 8from .timeframe import Timeframe
 9from .luck_test import LuckTest
10from .random_test import RandomTest
11from .bot_trade_performance import BotTradePerformance
12from .metric_wharehouse import MetricWharehouse
13from .trade import Trade
14from .bot import Bot
15from .montecarlo_test import MontecarloTest
16from .bot_performance import BotPerformance
17from .config import Config
class Base(sqlalchemy.orm.decl_api._DynamicAttributesType, sqlalchemy.inspection.Inspectable[sqlalchemy.orm.mapper.Mapper[typing.Any]]):

The base class of the class hierarchy.

When called, it accepts no arguments and returns a new featureless instance that has no instance attributes and cannot be given any.

Base(**kwargs: Any)
2165def _declarative_constructor(self: Any, **kwargs: Any) -> None:
2166    """A simple constructor that allows initialization from kwargs.
2167
2168    Sets attributes on the constructed instance using the names and
2169    values in ``kwargs``.
2170
2171    Only keys that are present as
2172    attributes of the instance's class are allowed. These could be,
2173    for example, any mapped columns or relationships.
2174    """
2175    cls_ = type(self)
2176    for k in kwargs:
2177        if not hasattr(cls_, k):
2178            raise TypeError(
2179                "%r is an invalid keyword argument for %s" % (k, cls_.__name__)
2180            )
2181        setattr(self, k, kwargs[k])

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in kwargs.

Only keys that are present as attributes of the instance's class are allowed. These could be, for example, any mapped columns or relationships.

registry: sqlalchemy.orm.decl_api.registry = <sqlalchemy.orm.decl_api.registry object>
metadata: sqlalchemy.sql.schema.MetaData = MetaData()