From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Cave Subject: Announcing my Python module to read org-mode files Date: Sun, 15 Mar 2009 14:37:19 +1100 Message-ID: <49BC77EF.9060102@optusnet.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LihAZ-0001VS-AG for emacs-orgmode@gnu.org; Sat, 14 Mar 2009 23:37:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LihAT-0001T4-E5 for emacs-orgmode@gnu.org; Sat, 14 Mar 2009 23:37:45 -0400 Received: from [199.232.76.173] (port=44905 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LihAT-0001T1-BY for emacs-orgmode@gnu.org; Sat, 14 Mar 2009 23:37:41 -0400 Received: from mail04.syd.optusnet.com.au ([211.29.132.185]:51934) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LihAS-0003LJ-LY for emacs-orgmode@gnu.org; Sat, 14 Mar 2009 23:37:41 -0400 Received: from [192.168.1.100] (c58-107-98-76.thorn1.nsw.optusnet.com.au [58.107.98.76]) (authenticated sender charles_cave) by mail04.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id n2F3bWVU005141 for ; Sun, 15 Mar 2009 14:37:33 +1100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Over the last couple of months I have developed a Python module to read an org-mode file and return the nodes as a list of objects. The module is the basis of a Python/TK GUI program to display a "Word of the Day" (another article will be published about this program soon). Here is the article (and source code) http://members.optusnet.com.au/~charles57/GTD/orgnode.html This is an example of what the module can do: import Orgnode nodelist = Orgnode.makelist("newgtd.org") print "\n--------- PROJECT LIST ----------------" for node in nodelist: if node.Tag() == "PROJECT": print "[ ]", node.Heading() I hope the module is of interest to Python programmers! Charles