Comment 5 for bug 322159

Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 322159] Re: introspection for C modules

On Wed, 2010-12-01 at 03:07 +0000, Michael Hudson-Doyle wrote:
> On Mon, 29 Nov 2010 10:13:17 -0000, Jelmer Vernooij <email address hidden> wrote:
> > discuss as-in a pre-implementation call of some sort, I'm a bit clueless
> > as to where to start and what the best way is to add this kind of
> > support into pydoctor.
> Well, basically, for a C module I guess you want to insert a
> pydoctor.model.Module object that describes the module you're
> introspecting... here's a start, perhaps?
>
> lp:~mwhudson/pydoctor/introspect-c-modules
>
> See if that makes any sense :-) You need to run like this:
>
> .../introspect-c-modules/bin/pydoctor \
> ~/canonical/repos/subvertpy/trunk/subvertpy --introspect \
> subvertpy.client --introspect subvertpy.repos --introspect subvertpy.wc \
> --html-output subvertpy-doc
>
> from somewhere you can import subvertpy.client etc from. The output
> looks like this:
>
> http://people.canonical.com/~mwh/subvertpy-
> doc/subvertpy.repos.Repository.html
>
> Hope this helps! I think it's quite good for a 20 minute hack :-)
Uhm, wow! :-) This is much more than I was hoping for, thanks!

It does indeed work well on subvertpy. I'll try it on Samba tonight.

Cheers,

Jelmer