def all_migrations(applications=None):
    if applications is None:
        applications = models.get_apps()
    for model_module in applications:
        # The app they've passed is the models module - go up one level
        app_path = ".".join(model_module.__name__.split(".")[:-1])
        app = ask_for_it_by_name(app_path)
        try:
            yield Migrations(app)
        except exceptions.NoMigrations:
            pass
Lazy SFTP connection
dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/South-1.0.2/south/migration/base.py/all_migrations--crossover with--dataset/ETHPy150Open jschneier/django-storages/storages/backends/sftpstorage.py/SFTPStorage.sftp