Beispiel #1
0
class PyRemoteCV:
    def __init__(self, host, port, db, password):
        from redis import Redis
        from pyremotecv.unique_queue import UniqueQueue
        redis = Redis(host=host, port=port, db=db, password=password)
        self.queue = UniqueQueue(server=redis)

    def async_detect(self, class_name, queue_name, args=[], key=None):
        self.queue.enqueue_unique_from_string(class_name,
                                              queue_name,
                                              args=args,
                                              key=key)
Beispiel #2
0
class PyRemoteCV:

    def __init__(self, host, port, db, password):
        from redis import Redis
        from pyremotecv.unique_queue import UniqueQueue
        redis = Redis(host=host, port=port, db=db, password=password)
        self.queue = UniqueQueue(server=redis)

    def async_detect(self, class_name, queue_name, args=[], key=None):
        self.queue.enqueue_unique_from_string(class_name, queue_name,
                args=args,
                key=key)
Beispiel #3
0
 def __init__(self, host, port, db, password):
     from redis import Redis
     from pyremotecv.unique_queue import UniqueQueue
     redis = Redis(host=host, port=port, db=db, password=password)
     self.queue = UniqueQueue(server=redis)
Beispiel #4
0
 def __init__(self, host, port, db, password):
     from redis import Redis
     from pyremotecv.unique_queue import UniqueQueue
     redis = Redis(host=host, port=port, db=db, password=password)
     self.queue = UniqueQueue(server=redis)