Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 2521D404961 for ; Thu, 18 Mar 2010 01:59:06 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.722 X-Spam-Level: X-Spam-Status: No, score=-0.722 tagged_above=-999 required=5 tests=[AWL=-0.723, BAYES_50=0.001] autolearn=ham Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zd1qtil3Abf8 for ; Thu, 18 Mar 2010 01:59:05 -0700 (PDT) Received: from homiemail-a22.g.dreamhost.com (caiajhbdcahe.dreamhost.com [208.97.132.74]) by olra.theworths.org (Postfix) with ESMTP id 3FBBD40495E for ; Thu, 18 Mar 2010 01:59:05 -0700 (PDT) Received: from sspaeth.de (mtec-hg-docking-1-dhcp-204.ethz.ch [129.132.133.204]) by homiemail-a22.g.dreamhost.com (Postfix) with ESMTPA id 6CCAB1A8076 for ; Thu, 18 Mar 2010 01:59:03 -0700 (PDT) Received: by sspaeth.de (sSMTP sendmail emulation); Thu, 18 Mar 2010 09:59:01 +0100 From: "Sebastian Spaeth" To: Notmuch development list Date: Thu, 18 Mar 2010 09:59:01 +0100 Message-ID: <87634u3t0q.fsf@SSpaeth.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [notmuch] Yet another python binding X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Mar 2010 08:59:06 -0000 I've been bragging on IRC over the last couple of days already, so some might already be annoyed by this, but here it goes: I've been binding the notmuch shared library to python and so far it works really nice. It "only" requires that you have a libnotmuch.so or libnotmuch.so.1 installed in some library path and a python>=2.5. API docs of bound methods: http://spaetz.bitbucket.org/docs/html/index.html Source code: http://bitbucket.org/spaetz/cnotmuch/ ------------------------- I've reimplemented a python-based notmuch "binary" (to be able to run the test suite on it), that implements the following commands: (The performance is comparable to that of the real notmuch) - show: outputs message stubs, formatting is still missing; no --entire-threads option - count, tag, dump, search-tags Missing is still: setup, reply new (this is still hard) search (still missing the notmuch_threads* bindings) restore (trivial, but not done yet) ------------------------- Get it via "hg clone https://spaetz@bitbucket.org/spaetz/cnotmuch/". (Switch to the branch with the current static documentation with "hg up docs" and back to the code with "hg up default".) If you are interested in using notmuch from python, give it a look. I plan to convert notmuchsync to this soon and hope to get a nice boost from it. spaetz