Need Help Starting Out

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

    Need Help Starting Out

    Hi, I would like to start using Python, but am unsure where to begin.
    I know how to look up a tutorial and learn the language, but not what
    all technologies to use. I saw references to plain Python, Django,
    and other things.

    I want to use it for web building with database access. What do I use
    for that? Does it matter what I use on the client side (mootools, or
    whatever)?

    My rational for using Python is because I am hoping it will allow me
    to better understand other python programs in other areas, not just
    web. I have used other languages for web apps for several years.
    Truth is that I always wanted to learn Python and have heard it was a
    good thing to know.

    Thank you.
  • rodmc

    #2
    Re: Need Help Starting Out

    Hi, I would like to start using Python, but am unsure where to begin.
    I know how to look up a tutorial and learn the language, but not what
    all technologies to use. I saw references to plain Python, Django,
    and other things.
    Hi,

    For database stuff you can plug directly into either MySQL or SQLite.
    For MySQL you need to install a third party library which you can get
    from:

    Download MySQL for Python for free. MySQL database connector for Python programming. MySQLdb is a Python DB API-2.0-compliant interface; see PEP-249 for details.


    I think SQLite support is now included in Python 2.5, all you need to
    do is type "import sqlite3", and away it goes. You will of course need
    to install SQLite, just search for it online. I found SQlite more than
    sufficient for any single user non-web based apps. On the client side
    you can use these library and if you like build a free standing app to
    run everything.

    For GUI toolkits you can do worse than download and install wxPython,
    which again is free (www.wxpython.org). If you want to dabble in games
    programming there is also PyGame.

    If you want to build free standing applications you can use Py2Exe
    (Windows) and Py2App (Mac), just Google them and they will appear. You
    may at times find Python a little slow, and you can even get round
    that problem in Windows and Intel based Macs by using Psyco (again
    just Google). It can speed up your code by quite a large margin.

    Hope these help you get started...

    Rod


    Comment

    • D'Arcy J.M. Cain

      #3
      Re: Need Help Starting Out

      On Tue, 18 Mar 2008 09:27:46 -0700 (PDT)
      rodmc <userprogoogl e-139@yahoo.co.uk wrote:
      >
      Hi, I would like to start using Python, but am unsure where to begin.
      I know how to look up a tutorial and learn the language, but not what
      all technologies to use. I saw references to plain Python, Django,
      and other things.
      >
      Hi,
      >
      For database stuff you can plug directly into either MySQL or SQLite.
      Or PostgreSQL.
      For MySQL you need to install a third party library which you can get
      from:
      >
      http://sourceforge.net/projects/mysql-python
      And there are many interfaces for PostgreSQL including PyGreSQL which
      I maintain at http://PyGreSQL.org/
      Hope these help you get started...
      And don't forget the tutorial on the Python web site.

      --
      D'Arcy J.M. Cain <darcy@druid.ne t | Democracy is three wolves
      http://www.druid.net/darcy/ | and a sheep voting on
      +1 416 425 1212 (DoD#0082) (eNTP) | what's for dinner.

      Comment

      • Bruno Desthuilliers

        #4
        Re: Need Help Starting Out

        jmDesktop a écrit :
        Hi, I would like to start using Python, but am unsure where to begin.
        I know how to look up a tutorial and learn the language, but not what
        all technologies to use. I saw references to plain Python, Django,
        and other things.
        >
        I want to use it for web building with database access. What do I use
        for that? Does it matter what I use on the client side (mootools, or
        whatever)?
        Your best bets are probably Django, Pylons or web.py. But you should
        learn enough of the core language itself before jumping in web stuff IMHO.

        Comment

        • rodmc

          #5
          Re: Need Help Starting Out

          Your best bets are probably Django, Pylons or web.py. But you should
          learn enough of the core language itself before jumping in web stuff IMHO.
          Yes, a good point.

          If you are looking for general info then then "Dive Into Python" (a
          link is on the Python website) is a good start for people who are
          familiar with other programming languages. Otherwise I also found
          "Python in a Nutshell" useful.

          rod

          Comment

          • Peter Decker

            #6
            Re: Need Help Starting Out

            On Tue, Mar 18, 2008 at 11:10 AM, jmDesktop <needin4mation@ gmail.comwrote:
            Hi, I would like to start using Python, but am unsure where to begin.
            I know how to look up a tutorial and learn the language, but not what
            all technologies to use. I saw references to plain Python, Django,
            and other things.
            >
            I want to use it for web building with database access. What do I use
            for that? Does it matter what I use on the client side (mootools, or
            whatever)?
            If you are going to be developing web applications, there are many
            excellent frameworks available, all of which provide database support.
            If you are looking to develop desktop applications, you should check
            out Dabo (http://dabodev.com). They integrate data access and GUI
            controls, making it simple to create database apps. They use wxPython
            for the UI layer, but hide all of its ugliness, allowing you to
            program to a clean, consistent API for your GUI.


            --

            # p.d.

            Comment

            Working...