By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,714 Members | 750 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,714 IT Pros & Developers. It's quick & easy.

graphical or flow charting design aid for python class development?

P: n/a
Being somewhat new to Python, and having a tendency to over complicate
things in my class design, I was wondering if anyone can suggest a
simple graphical or flowcharting tool that they use to organize their
class and program design? Because of a 55 mph head-on accident a few
years back, I have short term memory problems, so flipping back and
forth between pages of code is next to impossible for me to keep
straight. A simple graphical model would allow me to 'see' everything
in one view, and better organize my resulting code. I have had limited
success using pydoc to view my classes, but it's not really much help in
development, just review, and sometimes there is too much info.

I have used editors for other languages that allow the view to expand
and collapse functions/methods (like message threads here on the board),
which help, but I haven't seen anything like this for python.

Thanks for any suggestions.

Bill
Aug 31 '05 #1
Share this Question
Share on Google+
10 Replies


P: n/a
You may want to use Doxygen, which generates nice diagrams. It's
normally only for C++, but there are nice filters (for ex.
http://i31www.ira.uka.de/~baas/pydoxy) that generates C++ header from
python code that Doxygen can crunch.

Another solution is to use IDE such as Eric3 that can generate UML
diags from source code on the fly.

Aug 31 '05 #2

P: n/a
Have you looked at class browser module? Not the graphical tool you're
looking for, but maybe a good start

http://www.python.org/doc/2.0.1/lib/module-pyclbr.html

William Gill wrote:
Being somewhat new to Python, and having a tendency to over complicate
things in my class design, I was wondering if anyone can suggest a
simple graphical or flowcharting tool that they use to organize their
class and program design? Because of a 55 mph head-on accident a few
years back, I have short term memory problems, so flipping back and
forth between pages of code is next to impossible for me to keep
straight. A simple graphical model would allow me to 'see' everything
in one view, and better organize my resulting code. I have had limited
success using pydoc to view my classes, but it's not really much help in
development, just review, and sometimes there is too much info.

I have used editors for other languages that allow the view to expand
and collapse functions/methods (like message threads here on the board),
which help, but I haven't seen anything like this for python.

Thanks for any suggestions.

Bill


Aug 31 '05 #3

P: n/a


gene tani wrote:
Have you looked at class browser module? Not the graphical tool you're
looking for, but maybe a good start
No, it's not graphical, but it looks like I may be able to use it to put
together a nice outline, or summary of my modules. It's worth
exploring, thanks.

Bill


http://www.python.org/doc/2.0.1/lib/module-pyclbr.html

William Gill wrote:
Being somewhat new to Python, and having a tendency to over complicate
things in my class design, I was wondering if anyone can suggest a
simple graphical or flowcharting tool that they use to organize their
class and program design? Because of a 55 mph head-on accident a few
years back, I have short term memory problems, so flipping back and
forth between pages of code is next to impossible for me to keep
straight. A simple graphical model would allow me to 'see' everything
in one view, and better organize my resulting code. I have had limited
success using pydoc to view my classes, but it's not really much help in
development, just review, and sometimes there is too much info.

I have used editors for other languages that allow the view to expand
and collapse functions/methods (like message threads here on the board),
which help, but I haven't seen anything like this for python.

Thanks for any suggestions.

Bill


Sep 1 '05 #4

P: n/a
On first glance Doxygen doesn't look like the ticket, but the screen
shots of Eric3 look VERY promising. I have already downloaded it, and
will try it.

Thanks,
Bill

tooper wrote:
You may want to use Doxygen, which generates nice diagrams. It's
normally only for C++, but there are nice filters (for ex.
http://i31www.ira.uka.de/~baas/pydoxy) that generates C++ header from
python code that Doxygen can crunch.

Another solution is to use IDE such as Eric3 that can generate UML
diags from source code on the fly.

Sep 1 '05 #5

P: n/a
On Wed, 31 Aug 2005 15:40:52 GMT
William Gill <no*****@gcgroup.net> wrote:
Being somewhat new to Python, and having a tendency to over
complicate things in my class design, I was wondering if anyone can
suggest a simple graphical or flowcharting tool that they use to
organize their class and program design?


I've had good success using the UML templates provided by Dia. There
can be some interesting issues printing, but on a whole, they work quit
well for drawing class diagrams.

-Michael
Sep 1 '05 #6

P: n/a
forgot mention Komodo's code and object browser, which're both in the
$30 license

http://aspn.activestate.com/ASPN/doc...el_codebrowser

and SPE's supposed to have some kinda class explorer
http://www.stani.be/python/spe

Sep 1 '05 #7

P: n/a
It's not free, but it is pretty cheap considering all it can do. Check
out Enterprise Architect (with the free add-in for Python) from
www.sparxsystems.com.au. Pro version license is US$180 or so, but they
may have a student license for less that you could use.

-- Paul

Sep 1 '05 #8

P: n/a
Thanks everyone. I will explore all the suggestions, but it looks like
SPE is the immediate answer.

Bill

William Gill wrote:
Being somewhat new to Python, and having a tendency to over complicate
things in my class design, I was wondering if anyone can suggest a
simple graphical or flowcharting tool that they use to organize their
class and program design? Because of a 55 mph head-on accident a few
years back, I have short term memory problems, so flipping back and
forth between pages of code is next to impossible for me to keep
straight. A simple graphical model would allow me to 'see' everything
in one view, and better organize my resulting code. I have had limited
success using pydoc to view my classes, but it's not really much help in
development, just review, and sometimes there is too much info.

I have used editors for other languages that allow the view to expand
and collapse functions/methods (like message threads here on the board),
which help, but I haven't seen anything like this for python.

Thanks for any suggestions.

Bill

Sep 1 '05 #9

P: n/a
There's also this about giving source/class browsers a hand by
sprinkling "isinstance()"'s in

http://wingware.com/doc/intro/tutori...t-with-classes

I always encourage people to write up their experience/improessions in
the python wiki:

http://wiki.python.org/moin/PythonEditors
(or the separate IDE page)

William Gill wrote:
Thanks everyone. I will explore all the suggestions, but it looks like
SPE is the immediate answer.

Bill


Sep 1 '05 #10

P: n/a
William Gill <no*****@gcgroup.net> wrote:
Being somewhat new to Python, and having a tendency to over complicate
things in my class design, I was wondering if anyone can suggest a
simple graphical or flowcharting tool that they use to organize their
class and program design? Because of a 55 mph head-on accident a few
For Linux/Unix there is dia <http://www.gnome.org/projects/dia> to make
a class diagram and dia2code <http://dia2code.sourceforge.net> to create
Python code from it.

Probably you can find some other UML tools that support Python.

I have used editors for other languages that allow the view to expand
and collapse functions/methods (like message threads here on the board),
which help, but I haven't seen anything like this for python.


For questions like "Is there an editor that supports...", "Emacs" is
about always an answer ;-) It has outline-mode for this.
Florian
--
begin signature_virus
Hi! I'm a signature virus. Please copy me to your signature to help me spread.
end
Sep 1 '05 #11

This discussion thread is closed

Replies have been disabled for this discussion.