Top "Pymongo" questions

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

Get all documents of a collection using Pymongo

I want to write a function to return all the documents contained in mycollection in mongodb from pymongo import MongoClient …

python mongodb pymongo
How can I use 'Not Like' operator in MongoDB

I can use the SQL Like Operator using pymongo, db.test.find({'c':{'$regex':'ttt'}}) But how can I …

regex mongodb mongodb-query pymongo sql-like
search by ObjectId in mongodb with pymongo

I need to search an ObjectId with python using pymongo but I always get this error. Any ideas how to …

python mongodb pymongo
Pymongo keeps refusing the connection at 27017

I am trying to run a simple connection to pymongo but it keeps returning that the connection was refused Here …

python pymongo
Performing regex Queries with pymongo

I am trying to perform a regex query using pymongo against a mongodb server. The document structure is as follows { "…

mongodb pymongo
Flask - Bad Request The browser (or proxy) sent a request that this server could not understand

I'm trying to do a file upload & enter data task into my MongoDB using flask but I had this …

python mongodb flask pymongo
How to convert objectid to string

I want to get the string character from an ObjectId object. I use pymongo. eg: ObjectId("543b591d91b9e510…

pymongo objectid
Create an ISODate with pyMongo

I've been trying to find a way to create an ISODate object whith pyMongo client, but without any success so …

mongodb python-3.x pymongo isodate
Test empty string in mongodb and pymongo

Here is my data structure. [{ "name": "David", "lastname": "", }, { "name": "Angela" }] "lastname" is sometimes present and sometimes not and sometime is "". …

mongodb pymongo
Insert a Pandas Dataframe into mongodb using PyMongo

What is the quickest way to insert a pandas DataFrame into mongodb using PyMongo? Attempts db.myCollection.insert(df.to_…

python mongodb python-2.7 pandas pymongo