Did I find the right examples for you? yes no

All Samples(39)  |  Call(0)  |  Derive(0)  |  Import(39)
An enum that defines the read preference modes supported by PyMongo.
Used in three cases:

:class:`~pymongo.mongo_client.MongoClient` connected to a single host:

* `PRIMARY`: Queries are allowed if the host is standalone or the replica
  set primary.
* All other modes allow queries to standalone servers, to the primary, or
  to secondaries.
(more...)

src/c/b/cbtop-1.0.1/lib/pymongo/replica_set_connection.py   cbtop(Download)
 
from bson.son import SON
from pymongo import (common,
                     database,
                     helpers,

src/i/m/imsto-HEAD/imsto/store.py   imsto(Download)
from hashlib import md5
from numbers import Integral
from pymongo import ASCENDING, DESCENDING, MongoClient, MongoReplicaSetClient, ReadPreference
from _config import Config
from _base import base_convert

src/p/y/pymongo-2.7/pymongo/master_slave_connection.py   pymongo(Download)
 
from pymongo import helpers, thread_util
from pymongo import ReadPreference
from pymongo.common import BaseObject
from pymongo.mongo_client import MongoClient

src/m/o/mongo-python-driver-HEAD/pymongo/master_slave_connection.py   mongo-python-driver(Download)
 
from pymongo import helpers, thread_util
from pymongo import ReadPreference
from pymongo.common import BaseObject
from pymongo.mongo_client import MongoClient

src/m/o/mongs-HEAD/env/lib/python2.7/site-packages/pymongo/master_slave_connection.py   mongs(Download)
 
from pymongo import helpers, thread_util
from pymongo import ReadPreference
from pymongo.common import BaseObject
from pymongo.mongo_client import MongoClient

src/c/b/cbtop-1.0.1/lib/pymongo/cursor.py   cbtop(Download)
from bson.code import Code
from bson.son import SON
from pymongo import (helpers,
                     message,
                     ReadPreference)

src/c/b/cbtop-1.0.1/lib/pymongo/master_slave_connection.py   cbtop(Download)
 
from pymongo import helpers
from pymongo import ReadPreference
from pymongo.common import BaseObject
from pymongo.connection import Connection

src/m/o/MongoDisco-HEAD/app/mongodb_input.py   MongoDisco(Download)
import warnings
from cStringIO import StringIO
from pymongo import Connection, uri_parser, ReadPreference
import bson.son as son
import json

src/p/y/pycourse-HEAD/modules/mod_05_pymongo.py   pycourse(Download)
# See https://github.com/pablito56/pycourse/wiki/Replicaset-Config to create locally 
 
from pymongo import ReadPreference
from pymongo.errors import AutoReconnect, ConnectionFailure, DuplicateKeyError
replica_client = pymongo.MongoClient(

src/m/o/mongodb-tools-HEAD/mongodbtools/redundant_indexes.py   mongodb-tools(Download)
"""
from pymongo import Connection
from pymongo import ReadPreference
from optparse import OptionParser
 

  1 | 2 | 3 | 4  Next