Top "Pymongo" questions

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

How to make a query date in mongodb using pymongo?

I'm trying to perform a query date in mongodb, but the result is always empty. My query is as follows: //…

python mongodb pymongo nosql
Collection object is not callable error with PyMongo

Following along the PyMongo tutorial and am getting an error when calling the insert_one method on a collection. In [1]: …

python mongodb pymongo
JSON serializing Mongodb

I am using the python package pymongo to retrieve data from a mongodb database. >>> r = collection.find() # …

python mongodb pymongo
Remove multiple documents from mongo in a single query

I have a list of mongo '_id' which I want to delete. Currently I am doing this # inactive_users …

mongodb pymongo
How to close a mongodb python connection?

I'm doing a python script that writes some data to a mongodb. I need to close the connection and free …

python mongodb connection pymongo
In Flask convert form POST object into a representation suitable for mongodb

I am using Flask and MongoDB. I am trying to convert the content of request.form into something suitable for …

python mongodb post flask pymongo
How do I create a new database in MongoDB using PyMongo?

Can I create a new database simply by connecting to the MongoDB server, or is there another way to create …

python mongodb pymongo
Python - Pymongo Insert and Update Documents

Using PyMongo, I have a set of dict's in a list that I'd like to submit to my MongoDB. Some …

python mongodb pymongo
MongoDB return True if document exists

I want to return true if a userID already exists and false otherwise from my collection.I have this function …

python mongodb pymongo tornado-motor
PyMongo upsert throws "upsert must be an instance of bool" error

I'm running an update on my MongoDB from Python. I have this line: self.word_counts[source].update({'date':posttime},{"$…

python mongodb pymongo