[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: API documentation wanted (for Python in particular)

From: Emmanuel Blot <manu.blot_at_gmail.com>
Date: 2006-03-13 02:11:19 CET

> But how was I supposed to know that? It isn't stated anywhere!

I dumped into the same question a couple of months ago, as I needed to
write some pre/post commit script, and I wanted to write them in
Python language. I looked at some examples of use of the SVN/SWIG API
for Python, and it did not take long (about half an hour or so) to
understand how parameters are passed, and how output parameters are
retrieved. It's a mechanical transformation that is not difficult to
follow, once you read a couple of examples.

The only things I did not find in the wrappers are some constants. The
rest of the Python API is pretty straightforward to guess from the C
API, from my perspective.

As already written in this thread, if you do not like the C-to-Python
translation made with the help of SWIG, you probably want to have a
look at the pysvn project.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Mar 13 02:12:27 2006

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.