Top "Pymongo" questions

PyMongo is the official Python driver for MongoDB created and maintained by MongoDB, Inc.

limit() and sort() order pymongo and mongodb

Despite reading peoples answers stating that the sort is done first, evidence shows something different that the limit is done …

python mongodb pymongo
Flask: setting application and request-specific attributes?

I am writing an application which connects to a database. I want to create that db connection once, and then …

python mongodb flask pymongo
MongoDB/PyMongo: Querying multiple criteria - unexpected results

I have a collection where some of the objects feature an key foo. I now try to query for all …

python mongodb pymongo querying
Is there a way to store python objects directly in mongoDB without serializing them

I have read somewhere that you can store python objects (more specifically dictionaries) as binaries in MongoDB by using BSON. …

python mongodb pymongo bson
Can't get allowDiskUse:True to work with pymongo

I'm running into the aggregation result exceeds maximum document size (16MB) error with mongodb aggregation using pymongo. I was able …

mongodb aggregation-framework pymongo
pymongo: ImportError: No module named pymongo

I successfully installed pymongo using pip3 Aleeshas-MacBook-Air:project 2 aleesha$ sudo pip3 install pymongo The directory '/Users/aleesha/Library/Caches/…

python mongodb python-3.x pymongo pymongo-3.x
Mongo conditional for "key doesn't exist"?

I want to find a document using a conditional if the key == None or if the key doesn't exist. Something …

python mongodb pymongo key-value
Flask ImportError with bson on OS X

I'm having trouble getting a simple Hello World app to work using Flask, MongoDB, and Python. The app is bombing …

python mongodb pymongo bson
Pymongo $in Query Not Working

Seeing some strange behavior in Pymongo $in query. Looking for records that meet the following query: speciesCollection.find({"SPCOMNAME":{"$in":[…

python mongodb pymongo pymongo-3.x
Mongodb find all except from one or two criteria

Alright for one field matching I run: db.bios.find( { "Country":"Netherlands" } ) How can I bring all documents but not …

mongodb pymongo mongodb-query