Questions tagged [mongokit]

MongoKit framework try to keep its simplicity when you manage mongodb in python. MongoKit was developed to be fast and light with KISS and DRY in mind. MongoKit brings structured schema and validation layer on top of the great pymongo driver.

Documentation: https://github.com/namlook/mongokit/wiki

Source at github: https://github.com/namlook/mongokit

56 questions
17
votes
2 answers

Flask and Mongo

Thinking of a web service entirely built on top of MongoDB, while I am pretty confortable with PyMongo, I would like to know if you guys have any positive or negative experiences/stories about either of these ODMs: MongoKit, MongoEngine and…
arturhoo
  • 2,492
  • 1
  • 21
  • 22
9
votes
3 answers

Using WTForms' populate_obj( ) method with Flask micro framework

I have a template which allows the user to edit their user information.
Username: {{user['username']}}
New…
consumer
  • 709
  • 3
  • 7
  • 19
8
votes
2 answers

Django-nonrel vs Django-mongodb vs Mongokit vs pymongo native

Working on a Django project that requires a NoSQL store and I believe I've settled on Mongo. I've seen a lot of topics that talk about Mongo and Django, but none that mentioned Django-nonrel, and I can't see why it might have been disqualified, but…
bmelton
  • 982
  • 1
  • 9
  • 23
7
votes
2 answers

MongoKit "ImportError: No module named objectid " error

I get some very strange error using MongoKit: >>> from mongokit import * Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.7/dist-packages/mongokit/__init__.py", line 35, in from…
Zelid
  • 6,905
  • 11
  • 52
  • 76
6
votes
1 answer

How to close cursor in MongoKit

I'm using MongoKit to perform iteration over a huge amount of data. During this process my cursor becomes invalid, and I'm getting OperationFailure: cursor id '369397057360964334' not valid at server I've read in mailing lists that I can pass…
cleg
  • 4,862
  • 5
  • 35
  • 52
5
votes
1 answer

How to authenticate to a remote db host with MongoKit?

I am attempting to connect and authenticate to a remote database host (dotcloud, mongolabs, etc) using MongoKit within Flask. Connecting to the server seems to work fine. However I am unable to authenticate to the database. Presumably this should…
detour
  • 123
  • 1
  • 1
  • 7
4
votes
1 answer

What is the relationship between flask, mongokit, pymongo, flask-pymongo?

I am really new to Flask and MongoDB. I read the Flask documentation about MongoDB, and turns out I felt so confused that I did not know which one I need to install. In Flask document, it says if you want to operate MongoDB, you should install…
Wallace
  • 151
  • 1
  • 9
4
votes
1 answer

Implementing MVC in Python? (using Flask and MongoKit)

I'm coming from a spaghetti code PHP background. I'm trying to learn MVC by cutting my teeth on Python with Flask and MongoDB. I think this question could apply to other situations. It's more of a newbie Python question. But this is where I'm…
Tish 56
  • 43
  • 1
  • 4
4
votes
3 answers

mongokit index does not work

I am developing a Web application using Flask and MongoDB. And I use (Flask-)MongoKit to define a schema to validate my data. In my database, there is a collection called "users" (see below) that contains a field "email". I try to create a unique…
Julien Ribon
  • 265
  • 3
  • 9
3
votes
1 answer

Django & Mongo ORM mapping

I have a Django project with a MongoDB, connecting through pymongo. I've looked into several ORM(-like) layers, but none of them seem well maintained or supporting the Django 1.8 (mongo-engine only supports Django 1.5, mongokit is no longer…
Kemeia
  • 826
  • 2
  • 9
  • 24
2
votes
2 answers

Download MongoKit "devel" branch from Git using Buildout?

Any solid examples of using buildout to download a tarball from a specific branch in Git into my eggs directory? All the answers i've tried seem to keep grabbing the version from PyPi instead. I'm trying to grab the development branch of…
KJQ
  • 447
  • 1
  • 7
  • 28
2
votes
1 answer

Cannot get Pylons to work with mongokit

I've tried following the guide for intergrating mongokit into pylons thats here: http://namlook.github.com/mongokit/pylons.html When I go to serve with paster it throws the error: File…
ciferkey
  • 2,064
  • 3
  • 20
  • 28
2
votes
2 answers

Cannot connect to mongodb instance from docker: Connection refused

I am using docker-compose to create a multi-container environment where I have one mongodb instance and two python applications. The problem is, the first application is able to establish a connection to mongodb whereas the second application fails…
SouvikMaji
  • 1,088
  • 3
  • 22
  • 39
2
votes
1 answer

Do you use data mappers with MongoDB?

I've been diving into MongoDB with kind help of MongoKit and MongoEngine, but then I started thinking whether the data mappers are necessary here. Both mappers I mentioned enable one to do simple things without any effort. But is any effort required…
ak.
  • 3,329
  • 3
  • 38
  • 50
2
votes
0 answers

Multiple database (PG and Mongo) Python model package

I'm running into an architectural issue in regards to how to organize a certain project. The project is to create a package of models and relative database connections to be used in multiple different web applications. I wish to create a model…
Rohan Panchal
  • 1,211
  • 1
  • 11
  • 28
1
2 3 4