d2a/__init__.py
def transfer(models, exports, db_type=AUTO_DETECTED_DB_TYPE, back_type='backref', as_table=False, name_formatter=NAME_FORMATTER):
    """It makes sqlalchemy model objects from django models.

    :param module models: Django `models.py` or equivalent object.
    :param dict exports: Namespace which you want to put the models into. In most case, that is ``globals()``.
    :param str db_type: Database type, for example `postgresql`. If omitted this option, it will be detected from django settings.
    :param str back_type: Back relation type, `backref` or ``None`` (it does not support `back_populates`).
    :param bool as_table: Whether outputting as `SQL Expression` schema (``orm.__table__``) or not.
    :param function name_formatter: It receives an argument (model name) as ``str``, and returns formetted model name.
    """

    for model in parse_models(models).values():
        declare(model, db_type=db_type, back_type=back_type)

    for django_model, alchemy_model in existing.items():
        if models.__name__ == django_model.__module__:
            key = name_formatter(django_model._meta.object_name)
            exports[key] = alchemy_model.__table__ if as_table else alchemy_model
It makes sqlalchemy model objects from django models.

    :param module models: Django `models.py` or equivalent object.
    :param dict exports: Namespace which you want to put the models into. In most case, that is ``globals()``.
    :param str db_type: Database type, for example `postgresql`. If omitted this option, it will be detected from django settings.
    :param str back_type: Back relation type, `backref` or ``None`` (it does not support `back_populates`).
    :param bool as_table: Whether outputting as `SQL Expression` schema (``orm.__table__``) or not.
    :param function name_formatter: It receives an argument (model name) as ``str``, and returns formetted model name.
    
It makes sqlalchemy model objects from django models.
It makes sqlalchemy model objects from django models .
def transfer(models, exports, db_type=AUTO_DETECTED_DB_TYPE, back_type='backref', as_table=False, name_formatter=NAME_FORMATTER):
    for model in parse_models(models).values():
        declare(model, db_type=db_type, back_type=back_type)
    for django_model, alchemy_model in existing.items():
        if models.__name__ == django_model.__module__:
            key = name_formatter(django_model._meta.object_name)
            exports[key] = alchemy_model.__table__ if as_table else alchemy_model
def transfer ( models , exports , db_type = AUTO_DETECTED_DB_TYPE , back_type = 'backref' , as_table = False , name_formatter = NAME_FORMATTER ) : for model in parse_models ( models ) . values ( ) : declare ( model , db_type = db_type , back_type = back_type ) for django_model , alchemy_model in existing . items ( ) : if models . __name__ == django_model . __module__ : key = name_formatter ( django_model . _meta . object_name ) exports [ key ] = alchemy_model . __table__ if as_table else alchemy_model
It makes sqlalchemy model objects from django models.
It makes sqlalchemy model objects from django models .
"""It makes sqlalchemy model objects from django models.

    :param module models: Django `models.py` or equivalent object.
    :param dict exports: Namespace which you want to put the models into. In most case, that is ``globals()``.
    :param str db_type: Database type, for example `postgresql`. If omitted this option, it will be detected from django settings.
    :param str back_type: Back relation type, `backref` or ``None`` (it does not support `back_populates`).
    :param bool as_table: Whether outputting as `SQL Expression` schema (``orm.__table__``) or not.
    :param function name_formatter: It receives an argument (model name) as ``str``, and returns formetted model name.
    """
models
Django `models.py` or equivalent object.
Django ` models . py ` or equivalent object .
exports
Namespace which you want to put the models into. In most case, that is ``globals()``.
Namespace which you want to put the models into . In most case that is ` ` globals () ` ` .
db_type
Database type, for example `postgresql`. If omitted this option, it will be detected from django settings.
Database type for example ` postgresql ` . If omitted this option it will be detected from django settings .
back_type
Back relation type, `backref` or ``None`` (it does not support `back_populates`).
Back relation type ` backref ` or ` ` None ` ` ( it does not support ` back_populates ` ) .
as_table
Whether outputting as `SQL Expression` schema (``orm.__table__``) or not.
Whether outputting as ` SQL Expression ` schema ( ` ` orm . __table__ ` ` ) or not .
name_formatter
It receives an argument (model name) as ``str``, and returns formetted model name.
It receives an argument ( model name ) as ` ` str ` ` and returns formetted model name .