Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/p/y/python-superfastmatch-HEAD/superfastmatch/federated.py   python-superfastmatch(Download)
from .client import SuperFastMatchError
from .iterators import FederatedDocumentIterator
from .util import merge_doctype_mappings
 
class FederatedClient(object):
        self.client_mapping = client_mapping
        """ `search_mapping`: maps doctype range strings (e.g. 1:2:7) to client objects."""
        self.search_mapping = dict(merge_doctype_mappings(client_mapping))
        self.pool = gevent.pool.Pool(len(self.search_mapping))
 

src/p/y/python-superfastmatch-HEAD/superfastmatch/iterators.py   python-superfastmatch(Download)
import logging
from copy import deepcopy
from .util import merge_doctype_mappings
from .client import SuperFastMatchError
 
 
        self.client_mapping = client_mapping
        self.search_mapping = dict(merge_doctype_mappings(client_mapping))
 
        self.iterators = [PeekableIterator(DocumentIterator(client, order_by, doctype or cldoctype, chunksize, start_at))