restapi.utilities.meta.Meta

class restapi.utilities.meta.Meta[source]

Utilities with meta in mind

__init__()

Methods

__init__()

get_celery_tasks(package_name)

Extract all celery tasks from a module.

get_class(module_relpath, class_name)

get_classes_from_module(module)

Find classes inside a python module file.

get_module_from_string(modulestring[, ...])

Getting a module import when your module is stored as a string in a variable

get_new_classes_from_module(module)

Skip classes not originated inside the module.

get_self_reference_from_args(*args)

Useful in decorators: being able to call the internal method by getting the 'self' reference from the decorated method (when it's there)

import_models(name, package[, mandatory])