New Package for Integrating Mongodb

43 views
Skip to first unread message

Jonathan Mackenzie

unread,
Jul 26, 2018, 10:26:16 PM7/26/18
to pylons-discuss
After being dissatisfied with existing mongodb projects:

* pyramid_mongo
* pyramid_mongodb
* pyramid_mongoengine

These only allow a single database to be integrated and don't offer a debugtoolbar and are very simple to setup and configure.

I extracted the code I made for my own projects and made it into a pair of packages:


I apologise for the poor naming, but I hope someone finds these useful, especially the debugtoolbar which took a while to get right.

Any feature suggestions or feedback (except for that fact that they lack tests) would be greatly appreciated. If you're interested in a database layout for your application, I also wrote:


Which allows you to export a schema from an existing application (or you could hand write it), so you don't have to write scripts that setup collections, indexes and validators whenever you deploy your application!

Jonathan Vanasco

unread,
Jul 27, 2018, 10:12:01 AM7/27/18
to pylons-discuss
any reason why you decided to split the toolbar into a separate package, instead of including it?

Jonathan Mackenzie

unread,
Jul 28, 2018, 2:05:05 AM7/28/18
to pylons-discuss
Lack of thought I guess, I should probably merge them and use a config variable to turn debugging on..

Jonathan Vanasco

unread,
Jul 28, 2018, 1:18:14 PM7/28/18
to pylons-discuss


On Saturday, July 28, 2018 at 2:05:05 AM UTC-4, Jonathan Mackenzie wrote:
Lack of thought I guess, I should probably merge them and use a config variable to turn debugging on..

IMHO I really like the idea of Pyramid packages that ship with a built-in debug_toolbar support.

Michael Merickel

unread,
Jul 28, 2018, 4:37:45 PM7/28/18
to Pylons
You don't really need a config variable if done correctly, other than what pyramid_debugtoolbar already supports. The panel should be enabled only if a user does something like `debugtoolbar.includes = pyramid_mongodb.debugtoolbar`.

--
You received this message because you are subscribed to the Google Groups "pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pylons-discus...@googlegroups.com.
To post to this group, send email to pylons-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/b3bde938-0ce6-4e3a-91fd-f10d1d2c44b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jonathan Mackenzie

unread,
Jul 28, 2018, 10:43:35 PM7/28/18
to pylons-discuss
Cool, I'll do that.

Jonathan Mackenzie

unread,
Aug 1, 2018, 3:41:39 AM8/1/18
to pylons-discuss
I've updated the package now, 


Everything is integrated into a single package. And now you can alias database names to make testing easier.

Jonathan Vanasco

unread,
Aug 1, 2018, 1:38:37 PM8/1/18
to pylons-discuss


On Wednesday, August 1, 2018 at 3:41:39 AM UTC-4, Jonathan Mackenzie wrote:
I've updated the package now, 


Everything is integrated into a single package. And now you can alias database names to make testing easier.


wow, the toolbar features are amazingly useful! 
Reply all
Reply to author
Forward
0 new messages