Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

postgresql_autodoc in Python?

0 views
Skip to first unread message

Wolfgang Keller

unread,
Dec 6, 2009, 9:07:42 AM12/6/09
to
Hello,

has anyone ever implemented something similar to postgresql_autodoc in Python?

TIA,

Sincerely,

Wolfgang

--
NO "Courtesy Copies" PLEASE!

Simon Brunning

unread,
Dec 7, 2009, 8:47:36 AM12/7/09
to Python List
2009/12/6 Wolfgang Keller <feli...@gmx.net>:

> Hello,
>
> has anyone ever implemented something similar to postgresql_autodoc in Python?

Dunno - what is it?

--
Cheers,
Simon B.

Jean-Michel Pichavant

unread,
Dec 7, 2009, 9:14:27 AM12/7/09
to Wolfgang Keller, Python List
Wolfgang Keller wrote:
> Hello,
>
> has anyone ever implemented something similar to postgresql_autodoc in Python?
>
> TIA,
>
> Sincerely,
>
> Wolfgang
>
>
If by postgresql_autodoc you mean tools for generating html
documentation from python code, yes.

Starting from the ugliest:

- pydoc
- epydoc
- sphinx

are 3 of them. I would suggest epydoc, the best look&feel/complexity
ratio. Sphinx is used to generate any kind of documentation (look at
http://docs.python.org/ it's build with Sphinx) but I never figured out
how to easily build documentation from code despite it states it is
posible. With epydoc you only need to press the GO button.

JM

Tino Wildenhain

unread,
Dec 7, 2009, 9:44:16 AM12/7/09
to pytho...@python.org
Am 07.12.2009 15:14, schrieb Jean-Michel Pichavant:

> Wolfgang Keller wrote:
>> Hello,
>>
>> has anyone ever implemented something similar to postgresql_autodoc in
>> Python?
>>
>> TIA,
>>
>> Sincerely,
>>
>> Wolfgang
>>
> If by postgresql_autodoc you mean tools for generating html
> documentation from python code, yes.
>
> Starting from the ugliest:
>
> - pydoc
> - epydoc
> - sphinx
>
> are 3 of them. I would suggest epydoc, the best look&feel/complexity
> ratio. Sphinx is used to generate any kind of documentation (look at
> http://docs.python.org/ it's build with Sphinx) but I never figured out
> how to easily build documentation from code despite it states it is
> posible. With epydoc you only need to press the GO button.

I suspect he meant documenting postgres database structure.

One way would be reading the informaton_schema* and generating python
code out of it then use any of the above methods to finally document the
stuff :-)

*) http://www.alberton.info/postgresql_meta_info.html

Regards
Tino

Wolfgang Keller

unread,
Dec 10, 2009, 6:32:41 AM12/10/09
to
Hello,

I will re-precise my question:

Has anyone ever implemented a script in Python that generates documentation (especially diagrams, in a format such as e.g. Dia, Inkscape SVG or Tikz) for a PostgreSQL database either from an SQL script or by connecting to the database?

Postgresql_autodoc is unfortunately written in Perl. >;->

TIA,

And, btw., please respect my .sig,

Sincerely,

Wolfgang Keller

Diez B. Roggisch

unread,
Dec 10, 2009, 6:48:17 AM12/10/09
to
Wolfgang Keller wrote:

> Hello,
>
> I will re-precise my question:
>
> Has anyone ever implemented a script in Python that generates
> documentation (especially diagrams, in a format such as e.g. Dia, Inkscape
> SVG or Tikz) for a PostgreSQL database either from an SQL script or by
> connecting to the database?

I've written a schemadiff-tool for postgres based on SQLAlchemy reflection,
which is a branch of SQLAlchemy and which should become part of the
upcoming SA 0.6.

http://svn.sqlalchemy.org/sqlalchemy/branches/reflection

It allows you to extract information about the schema of the DB. This could
be the foundation of your tool.

>
> Postgresql_autodoc is unfortunately written in Perl. >;->
>
> TIA,
>
> And, btw., please respect my .sig,

Which is supposed to mean what? Never heard the term courtesy copy.

Diez

Chris Rebert

unread,
Dec 10, 2009, 7:18:00 AM12/10/09
to Diez B. Roggisch, pytho...@python.org

It appears to be an incorrect expansion of "Cc", which is actually
Carbon copy. Apparently he means all replies should be directly to the
list and not Cc his individual email address.
Which seems strange, because usually mailinglists are smart enough not
to send the author duplicate copies if they're named in the To or Cc
fields.

Cheers,
Chris
--
http://blog.rebertia.com

0 new messages