graphical or flow charting design aid for python class development?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • William Gill

    graphical or flow charting design aid for python class development?

    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
  • tooper

    #2
    Re: graphical or flow charting design aid for python class development?

    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.

    Comment

    • gene tani

      #3
      Re: graphical or flow charting design aid for python class development?

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



      William Gill wrote:[color=blue]
      > 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[/color]

      Comment

      • William Gill

        #4
        Re: graphical or flow charting design aid for python class development?



        gene tani wrote:[color=blue]
        > Have you looked at class browser module? Not the graphical tool you're
        > looking for, but maybe a good start[/color]

        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

        [color=blue]
        >
        > http://www.python.org/doc/2.0.1/lib/module-pyclbr.html
        >
        > William Gill wrote:
        >[color=green]
        >>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[/color]
        >
        >[/color]

        Comment

        • William Gill

          #5
          Re: graphical or flow charting design aid for python class development?

          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:[color=blue]
          > 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.
          >[/color]

          Comment

          • Michael Ekstrand

            #6
            Re: graphical or flow charting design aid for python classdevelopmen t?

            On Wed, 31 Aug 2005 15:40:52 GMT
            William Gill <noreply@gcgrou p.net> wrote:[color=blue]
            > 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?[/color]

            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

            Comment

            • gene tani

              #7
              Re: graphical or flow charting design aid for python class development?

              forgot mention Komodo's code and object browser, which're both in the
              $30 license



              and SPE's supposed to have some kinda class explorer


              Comment

              • Paul McGuire

                #8
                Re: graphical or flow charting design aid for python class development?

                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

                Comment

                • William Gill

                  #9
                  Re: graphical or flow charting design aid for python class development?

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

                  Bill

                  William Gill wrote:[color=blue]
                  > 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[/color]

                  Comment

                  • gene tani

                    #10
                    Re: graphical or flow charting design aid for python class development?

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



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


                    (or the separate IDE page)

                    William Gill wrote:[color=blue]
                    > Thanks everyone. I will explore all the suggestions, but it looks like
                    > SPE is the immediate answer.
                    >
                    > Bill[/color]

                    Comment

                    • Florian Diesch

                      #11
                      Re: graphical or flow charting design aid for python class development?

                      William Gill <noreply@gcgrou p.net> wrote:[color=blue]
                      > 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[/color]

                      For Linux/Unix there is dia <http://www.gnome.org/projects/dia> to make
                      a class diagram and dia2code <http://dia2code.source forge.net> to create
                      Python code from it.

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

                      [color=blue]
                      > 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.[/color]

                      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

                      Comment

                      Working...