def get_datasets(app, package='.datasets', sufix='Data'):
    fixtures = []

    module = __import__(app + package, fromlist=[''])
    # add classes ending with 'Data' to the fixtures list
    for i in dir(module):
        if i.endswith(sufix):
            fixtures.append(getattr(module, i))
    return fixtures
Get list of dataset classes ending with ``sufix`` from ``package``
dataset/ETHPy150Open henriquebastos/django-fixturapp/src/fixturapp/management/commands/__init__.py/get_datasets