<reponame>Serbel97/django_api_forms<filename>django_api_forms/utils.py<gh_stars>10-100
from importlib import import_module


def resolve_from_path(path: str):
    module_path, class_name = path.rsplit('.', 1)
    module = import_module(module_path)
    return getattr(module, class_name)

from importlib import import_module


def resolve_from_path(path: str):
    module_path, class_name = path.rsplit('.', 1)
    module = import_module(module_path)
    return getattr(module, class_name)