Top "Pymongo" questions

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

How can I create an index with pymongo

I want to enable text-search at a specific field in my Mongo DB. I want to implement this search in …

mongodb indexing pymongo fuzzy-search text-search
convert pymongo cursor to json

I know this is a fairly common problem. I'm writing a small Flask app and I'm trying to feed some …

pymongo
What is the correct way to query MongoDB for _id using string by using Python?

I am using pymongo driver. Supposedly, one can use a string to query the _id field of a document, like …

mongodb pymongo
Can you specify a key for $addToSet in Mongo?

I have a document: { 'profile_set' : [ { 'name' : 'nick', 'options' : 0 }, { 'name' : 'joe', 'options' : 2 }, { 'name' : 'burt', 'options' : 1 } ] } and would like to add …

mongodb pymongo
PyMongo query with projection

what is the PyMongo way for db.collection.find(criteria, projection).I cant find any doc for specifying projection to …

pymongo
Why does upsert a record using update_one raise ValueError?

I want to add a record to the collection if the key doesn't already exist. I understand [MongoDB][1] offers the …

python mongodb mongodb-query pymongo
How to know which version of PyMongo is running on my project

I'm developing a python project, in the requirements file I have three different types of PyMongo Flask-PyMongo==0.3.1 pymongo==2.7 flask-mongoengine==0.7.1 How …

python mongodb pymongo
How do I drop a MongoDB database using PyMongo?

I want to drop a database in MongoDB similarly to use <DBNAME> db.dropDatabase() in the Mongo shell. …

python mongodb pymongo
PyMongo vs MongoEngine for Django

For one of my projects I prefered using Django+Mongo. Why should I use MongoEngine, but not just PyMongo? What …

python django mongodb pymongo mongoengine
Getting Spark, Python, and MongoDB to work together

I'm having difficulty getting these components to knit together properly. I have Spark installed and working succesfully, I can run …

python mongodb hadoop apache-spark pymongo