Slightly more advanced document classes.

66 views
Skip to first unread message

Shane Spencer

unread,
Nov 5, 2012, 1:57:43 PM11/5/12
to mongo...@googlegroups.com
A looooong time ago I wrote a document class and named it MongoDict
because I wanted to add a few helper functions to the standard dict
class. It worked out really well and is now published as
https://github.com/whardier/indicted (needs love but works well)

Since it's so insanely helpful when dealing with sub-documents, by
indexing sub-document fields for a fast lookup, I'm curious if there
is already any momentum to create helpful document classes for python,
ruby, node, etc..

I understand it may be rather presumptuous of 10gen to suggest a
specific method to access generic structured objects. However it may
also spread some interesting schema design ideas that would be hard to
widely express without immediate functionality.

Not to mention add some fun support for document encoding (.to_json(), ...)

Just food for thought.

- Shane

Justin Dearing

unread,
Nov 5, 2012, 2:01:24 PM11/5/12
to mongo...@googlegroups.com
So this is python specific? I'm curious if this could be compiled into IronPython and called from C# and other .NET languages. 

Any Iron Python hackers on this list?

Justin


- Shane

--
You received this message because you are subscribed to the Google Groups "mongodb-dev" group.
To post to this group, send email to mongo...@googlegroups.com.
To unsubscribe from this group, send email to mongodb-dev...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/mongodb-dev?hl=en.


Bernie Hackett

unread,
Nov 5, 2012, 3:10:07 PM11/5/12
to mongo...@googlegroups.com
PyMongo doesn't currently support IronPython. I've worked on supporting it twice and have had a pretty horrible time. So much of what PyMongo uses just doesn't work right in IronPython. For instance, there are modules in IronPython that rely on the signal module, which doesn't actually exist in IronPython!

If anybody wants to spend some time trying to sort out IronPython support, I'm happy to work with you getting it into PyMongo. Good luck!

Justin Dearing

unread,
Nov 5, 2012, 3:26:42 PM11/5/12
to mongo...@googlegroups.com
Bernie,

Sounds like a lot of effort. If it "just worked" I'd consider setting up iron python build scripts and nunit tests.

It just seemed like something I'd like to have in .NET (or any other language I'd hack mongo in).

Justin
Reply all
Reply to author
Forward
0 new messages