qw (QueueWorker) - python library for processing a redis list as a work queue
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

7 lines
236 B

def dynamic_import(name):
module, _, function = name.rpartition(".")
mod = __import__(module, fromlist=[function])
components = name.split(".")
for comp in components[1:]:
mod = getattr(mod, comp)
return mod