Re: Getting start with Ledger and Python

2012-06-04 Thread John Wiegley
Tim Crews t...@code-affinity.com writes: With that said, here are the tasks that I was planning to start chipping away at. None of this has been coordinated with John. I would welcome any feedback if my work is misguided. 1. I created a github fork at

Re: Getting start with Ledger and Python

2012-06-04 Thread John Wiegley
Stefan Tunsch stun...@gmail.com writes: Hi! I am a Python developer, also interested in developing a good interface from Python to ledger. I have also taken a look at projects like beancount, who are reimplementations of ledger in Python, but I would prefer to stick to the original

Re: Getting start with Ledger and Python

2012-05-30 Thread John Wiegley
Tim Crews tim-QJ3Fn9itRil4wfmgmkLWVgC/g2k4z...@public.gmane.org writes: I've been reviewing the entire Python API with an eye towards putting together an equivalent RESTful web API (see other post), and in the process I think I see a few other functions that might be more Pythonic if they

Re: Getting start with Ledger and Python

2012-05-30 Thread Stefan Tunsch
Hi! I am a Python developer, also interested in developing a good interface from Python to ledger. I have also taken a look at projects like beancount, who are reimplementations of ledger in Python, but I would prefer to stick to the original project. That said, I am willing to invest time

Re: Getting start with Ledger and Python

2012-05-30 Thread Tim Crews
On Wednesday, May 30, 2012 1:46:49 AM UTC-7, stunsch wrote: I am willing to invest time developing this. So Tim and John, if you need help, let's team up and see if we can get this going. Regards, Stefan Tunsch I have some down-time, I love to write Python, I am good at C++, and I

Re: Getting start with Ledger and Python

2012-05-30 Thread Christopher Allan Webber
Tim Crews t...@code-affinity.com writes: On Wednesday, May 30, 2012 1:34:07 AM UTC-7, JohnW wrote: If you think we can get to where we want with Python + Javascript, then I can be talked away from trying to develop a full RESTful API. John I hope I'm not displaying my

Re: Getting start with Ledger and Python

2012-05-30 Thread Simon Michael
On 5/30/12 9:17 AM, Tim Crews wrote: Any feedback? This is excellent work Tim. Until more help shows up maybe you could pick just a small subset of the API to polish, so you can get to the segfault/terminal issues and then some fun and motivating demo ?

Re: Getting start with Ledger and Python

2012-05-28 Thread Tim Crews
On the subject of getting the example Python API code to run: On Sunday, May 27, 2012 4:39:38 PM UTC-7, Tim Crews wrote: for xact in ledger.read_journal(ledger.dat).xacts(): # Note the () after xacts for post in xact.posts(): # Note the () after posts print Transferring %s

Re: Getting start with Ledger and Python

2012-05-15 Thread John Wiegley
henry atting me.henryatting-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Traceback (most recent call last): File scr.py, line 4, in module for xact in ledger.read_journal(ledger.dat).xacts: AttributeError: 'module' object has no attribute 'read_journal' Ah, try this instead:

Re: Getting start with Ledger and Python

2012-05-12 Thread henry atting
Yes, this is exactly what I do. On May 12, 12:17 am, John Wiegley jwieg...@gmail.com wrote: henry atting me.henryatting-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Just out of curiousity...  I never managed to get any small python script running, ledger built with/or without python

Re: Getting start with Ledger and Python

2012-05-11 Thread henry atting
Just out of curiousity... I never managed to get any small python script running, ledger built with/or without python or whatsoever. My current version is a build from today: Ledger 3.0.0-20110325; with --python dir(ledger) displays what it should. No script provided in this thread does work

Re: Getting start with Ledger and Python

2012-05-11 Thread John Wiegley
henry atting me.henryatting-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Just out of curiousity... I never managed to get any small python script running, ledger built with/or without python or whatsoever. My current version is a build from today: Ledger 3.0.0-20110325; with --python

Re: Getting start with Ledger and Python

2012-05-08 Thread John Wiegley
Chris Rossi chris-nf+wzpsdgwelmaghn9gi760brtrcj...@public.gmane.org writes: The result is: Error: Unrecognized command 'python' I don't notice any errors during the build process. Any idea what I'm doing wrong? v2.6.3 never had a Python command. Could you try building the 'master'

Re: Getting start with Ledger and Python

2012-05-07 Thread Chris Rossi
On Sunday, March 11, 2012 6:37:32 AM UTC-4, JohnW wrote: Raphael Lorenzeto writes: Long story short, I haven't found a way to access this Python interface, my intent is to produce a series of scripts to output HMTL5 files with my reports on a regular basis (probably a cron-job). How

Re: Getting start with Ledger and Python

2012-03-15 Thread Craig Earls
Added to docs. On Thu, Mar 1, 2012 at 20:06, John Wiegley jwieg...@gmail.com wrote: Hello all, I think it's time for a primer on using Python to extend your Ledger experience. But first, a word must be said about Ledger's data model, so that other things make sense later.

Re: Getting start with Ledger and Python

2012-03-11 Thread John Wiegley
Raphael Lorenzeto raphael.lorenzeto-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Long story short, I haven't found a way to access this Python interface, my intent is to produce a series of scripts to output HMTL5 files with my reports on a regular basis (probably a cron-job). How can I

Re: Getting start with Ledger and Python

2012-03-11 Thread John Wiegley
Raphael Lorenzeto raphael.lorenzeto-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Thanks! I managed to compile with the --python passed to acprep but I get the following error while trying to execute the examples shown on this post: ./ledger/ledger python ledger-script.py Traceback (most

Re: Getting start with Ledger and Python

2012-03-10 Thread Raphael Lorenzeto
Hello to everyone! This is my first post here. I have to confess that I was very impressed by the features of ledger. As an avid GNUCash user I was a little disappointed with the absence of GNUCash reading capabilities. I managed to write a perl script to parse and output a ledger-formatted

Getting start with Ledger and Python

2012-03-01 Thread John Wiegley
Hello all, I think it's time for a primer on using Python to extend your Ledger experience. But first, a word must be said about Ledger's data model, so that other things make sense later. -- # Basic data traversal