Thread: Python benefits

    #1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2001
    Posts
    88
    Rep Power
    13

    Python benefits


    Hello there!

    I'd like to know such thing from people actively using Python in their projects.

    Which benefits could give me this prog. language by using of them? Does it able to develop:
    - full-functional client-server DB aplications (is it able to connect to famous SQL-servers?);
    - desktop GUI DB applications (to work with local DBs like dbf);
    - CGI-applications with such convinience like PHP?

    Maybe you may point me to another useful Python's features?

    TIA

    PS: Sorry my poor English.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2001
    Location
    Houston, TX
    Posts
    383
    Rep Power
    13
    Yay, a Python post!

    Actually my biggest Python project to date uses 2 out of those 3 things. I'm talking about moobot an IRC bot that I'm pretty much now the sole maintainer of. It uses a database (MySQL or PostgreSQL, your choice) rather extensively in a huge portion of its modules, and its performance is definitely more than adequate for an IRC bot I'm not sure what you mean by "GUI DB applications" however ... could you clarify? And as far as CGI stuff, I've created several CGI scripts that give some statistics for moobot all in Python as well. So, it works for what you need.

    Now, as to what else makes Python great Put simply - it's insanely easy to read, easy to learn, scales well, performs well for being interpreted, and is incredibly well-documented. I could go into further detail if you like, but I think that's enough
    Debian - because life's too short for worrying.
    Best. (Python.) IRC bot. ever.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2001
    Posts
    88
    Rep Power
    13
    Thank you for your answer!

    Originally posted by Strike

    I'm not sure what you mean by "GUI DB applications" however ... could you clarify?
    I meant not console apps for working with desktop databases (not any SQL-servers).
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2001
    Location
    Houston, TX
    Posts
    383
    Rep Power
    13
    Originally posted by apatit_ru
    Thank you for your answer!



    I meant not console apps for working with desktop databases (not any SQL-servers).
    Erm, okay, those would be several different components - yes Python supports several GUI toolkits, yes Python supports several non-SQL database formats (never heard of dbf, but it supports bsddb, gdbm, cdb, and others)
    Debian - because life's too short for worrying.
    Best. (Python.) IRC bot. ever.
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2001
    Posts
    88
    Rep Power
    13
    Originally posted by Strike
    never heard of dbf
    Maybe there are some additional unit to support this?
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2001
    Posts
    88
    Rep Power
    13
    Originally posted by Strike
    never heard of dbf
    You know, I found 2 classes for working with it using Google. They are there http://www.vex.net/parnassus/apyllo.py/973100124
  12. #7
  13. Big Endian
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    May 2001
    Location
    Fly-over country
    Posts
    1,172
    Rep Power
    29
    Originally posted by Strike
    never heard of dbf
    FYI - .dbf is the file format for xBase type databases: FoxPro, dBase, Clipper, etc.
  14. #8
  15. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2002
    Posts
    9
    Rep Power
    0

    Benefits of python.


    Hi apatit_ru.

    Python is a powerful programming language for a variety of reasons. It is object oriented, easy to maintain and debug, has a vast array of libraries ( inclkuding cgi, xmi, regex, etc. ). You can use it for client server apps. and Db projects quite easily. You'll need to download the mysql module from sourceforge first however. As far as other databases are concerned, I think it can connect to most of them ( similar to PHP ).

    Hope this helps,

    -Caitlin.
  16. #9
  17. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2001
    Posts
    88
    Rep Power
    13
    Thank you all!

    Thank you for your info. I got Python is enough powerfull programming language. I installed it on my machine and run a couple of scripts. But I noticed they was running relatively slowly. Is it possible?
  18. #10
  19. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2001
    Location
    Houston, TX
    Posts
    383
    Rep Power
    13
    Originally posted by apatit_ru
    Thank you all!

    Thank you for your info. I got Python is enough powerfull programming language. I installed it on my machine and run a couple of scripts. But I noticed they was running relatively slowly. Is it possible?
    Er, yeah it's possible - depends on the script, machine, version of python, etc. Yes, Python is slower than C ... but beyond that, it really depends on what you are doing with the language to determine its relative speed.
    Debian - because life's too short for worrying.
    Best. (Python.) IRC bot. ever.
  20. #11
  21. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2003
    Posts
    10
    Rep Power
    0
    Is bittorrent written in Python?
  22. #12
  23. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2001
    Location
    Houston, TX
    Posts
    383
    Rep Power
    13
    Originally posted by GH_Retro
    Is bittorrent written in Python?
    From the BitTorrent FAQ
    What language is BitTorrent written in?

    Python
    Debian - because life's too short for worrying.
    Best. (Python.) IRC bot. ever.

IMN logo majestic logo threadwatch logo seochat tools logo