postgresql_autodoc in Python?

  • Thread starter Wolfgang Keller
  • Start date
W

Wolfgang Keller

Hello,

has anyone ever implemented something similar to postgresql_autodoc in Python?

TIA,

Sincerely,

Wolfgang
 
J

Jean-Michel Pichavant

Wolfgang said:
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
 
W

Wolfgang Keller

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
 
D

Diez B. Roggisch

Wolfgang said:
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
 
C

Chris Rebert

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.


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

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top