473,748 Members | 2,217 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

RAD with Python

Hi,

How well is Python suited for developing database based applications?
I am new to Python so please bear with me if some of the questions are
too simple. I specifically have the following questions:

1. Is there an example of a simple data-entry application written in
Python using a GUI interface? Something like a simple address book app
with a listbox displaying all addresses with the ability to
add/modify/delete.

2. There seem to be a number of GUI frameworks available? Which one is
good for use on Windows and Linux?

3. Can Python apps be compiled to an exe? Can the resulting executable
be distributed commercially?

4. What types of applications are not suitable to be written in
Python?

I have good knowledge of many languages including C++, Assembler,
Java, etc. My preferred development tool is Clarion currently. If
anybody with a Clarion background can share their experience with
Python, that will be very helpful.

Appreciate your answers...

Thanks & Regards,
Ubaidullah Nubar.
Jul 18 '05 #1
37 10441
P
Ubaidullah Nubar wrote:
Hi,

How well is Python suited for developing database based applications?
I am new to Python so please bear with me if some of the questions are
too simple. I specifically have the following questions:

1. Is there an example of a simple data-entry application written in
Python using a GUI interface? Something like a simple address book app
with a listbox displaying all addresses with the ability to
add/modify/delete.
Have a look at http://www.netpromi.com/mojoview.html
It uses gtk
2. There seem to be a number of GUI frameworks available? Which one is
good for use on Windows and Linux?
There is a GTK2 port to windows I think.
pyqt is also an option, but you need to pay
to use it on windows.
wxwindows is another popular crossplatform toolkit.
Personally I recommend GTK.
3. Can Python apps be compiled to an exe? Can the resulting executable
be distributed commercially?
yep.
4. What types of applications are not suitable to be written in
Python?
CPU intensive apps, or low level bit manipulation is
better done in C, though you can very easily write parts in C,
or even use psyco for certain python functions.
Note python 2.3 is 25% faster than 2.2.
I have good knowledge of many languages including C++, Assembler,
Java, etc. My preferred development tool is Clarion currently. If
anybody with a Clarion background can share their experience with
Python, that will be very helpful.


Pádraig.

Jul 18 '05 #2
On Fri, Sep 12, 2003 at 06:09:02AM -0700, Ubaidullah Nubar wrote:
Hi,

How well is Python suited for developing database based applications?
U will find python interfaces for almost all mainly used databases.
And as the nature of Python it is very easy to interact with databases
in Python.
I am new to Python so please bear with me if some of the questions are
too simple. I specifically have the following questions:

2. There seem to be a number of GUI frameworks available? Which one is
good for use on Windows and Linux?
If u are new to Python and have no previous experience with C++ then
I think Tkinter is the best place to start. If you are comfortable
with C++ then u can use wxPython. (Actually there is no seperate
documentation for wxPython, it a wrapper around the wxWindows library)

3. Can Python apps be compiled to an exe? Can the resulting executable
be distributed commercially?

Yes, using McMillan and py2exe.
4. What types of applications are not suitable to be written in
Python?

System side softwares
I have good knowledge of many languages including C++, Assembler,
Java, etc. My preferred development tool is Clarion currently. If
anybody with a Clarion background can share their experience with
Python, that will be very helpful.

Appreciate your answers...

Thanks & Regards,
Ubaidullah Nubar.
--
http://mail.python.org/mailman/listinfo/python-list


Regards
Vivek Kumar

Jul 18 '05 #3
On 12 Sep 2003 06:09:02 -0700, Ubaidullah Nubar
<ub************ *@hotmail.com> wrote:
Hi,

How well is Python suited for developing database based applications?
I am new to Python so please bear with me if some of the questions are
too simple. I specifically have the following questions:

1. Is there an example of a simple data-entry application written in
Python using a GUI interface? Something like a simple address book app
with a listbox displaying all addresses with the ability to
add/modify/delete.

2. There seem to be a number of GUI frameworks available? Which one is
good for use on Windows and Linux?

3. Can Python apps be compiled to an exe? Can the resulting executable
be distributed commercially?

4. What types of applications are not suitable to be written in
Python?

I have good knowledge of many languages including C++, Assembler,
Java, etc. My preferred development tool is Clarion currently. If
anybody with a Clarion background can share their experience with
Python, that will be very helpful.

Appreciate your answers...

Thanks & Regards,
Ubaidullah Nubar.


My choice would be wxPython. Look at the wxPython demo form plenty of
source.

2.
My personal preference of a Python RAD is Boa Constructor.
You will need to install wxWindows (www.wxWindows.org) wxPython
(www.wxPython.org)
and finally the Boa Constructor itself (boa-constructor.sou rceforge.net).
The resulting code is portable to unix and maybe mac.

3.
py2exe is used to generate executable python programs under windows.
The resulting code can be freely distrinuted.

4.
Python is appox 400 times slower than C.
If you are doing complex algorithmics on large data sets and a module like
numpy dosn't accelerate what you need you might be better off with another
language.
(Note that for most application the time is spendt in C modules interfaced
by python.)
You have to options:
1. Implement the critical sections in C (the SWIG interface genetrator
helps grind the C interface to pyhton)
2. Use another language (My choice.. I use Common Lisp for complex
algorithmics)
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Jul 18 '05 #4
On Friday 12 September 2003 08:17 am, John wrote:
On 12 Sep 2003 06:09:02 -0700, Ubaidullah Nubar

<ub************ *@hotmail.com> wrote:
Hi,

How well is Python suited for developing database based applications?
I am new to Python so please bear with me if some of the questions are
too simple. I specifically have the following questions:

1. Is there an example of a simple data-entry application written in
Python using a GUI interface? Something like a simple address book app
with a listbox displaying all addresses with the ability to
add/modify/delete.

2. There seem to be a number of GUI frameworks available? Which one is
good for use on Windows and Linux?


I've used Tkinter for cross platform development with great success
for years, but recently I've been playing with pyGTK (and the
libraries it is built upon: GTK+, glade-2 and libglade), and
I like the results very much.

PyGTK works on both window and Linux/Unix, Comparing the two, it seems
that PyGTK produces GUI's which look much better, and are *much* more
responsive. And the GUI building tool, glade-2, is *very* easy and
convenient to work with.
New version have just come out in the last several days, so look for
and install the latest.

Gary Herron


Jul 18 '05 #5

"Ubaidullah Nubar" <ub************ *@hotmail.com> wrote in message
news:17******** *************** ***@posting.goo gle.com...
Hi,

How well is Python suited for developing database based applications? I am new to Python so please bear with me if some of the questions are too simple. I specifically have the following questions:

1. Is there an example of a simple data-entry application written in
Python using a GUI interface? Something like a simple address book app with a listbox displaying all addresses with the ability to
add/modify/delete.
I hope someone else answers this.
2. There seem to be a number of GUI frameworks available? Which one is good for use on Windows and Linux?
Most people prefer the one they use. No surprise. Use google to find
previous threads on this topic.
3. Can Python apps be compiled to an exe?
No, Python code cannot currently be compiled to a native code .exe in
the way you probably mean. Yes, Python bytecode (including included
modules) can be combined with a copy of the interpreter in a
distributable .exe, Googling 'Python executable' perhaps with
'McMillan' (spelling?) should get you previous posts with links.
Can the resulting executable be distributed commercially?
Yes.
4. What types of applications are not suitable to be written in

Python?

Hmmm.

Terry J. Reedy
Jul 18 '05 #6
John <jo************ @chello.no> writes:
On 12 Sep 2003 06:09:02 -0700, Ubaidullah Nubar
<ub************ *@hotmail.com> wrote: [...] 4.
Python is appox 400 times slower than C.

[...]

Maybe this was intended to be a silly number, but: this means very
little. The degree of slowdown is hugely variable from one domain to
the next, and from one program to the next, and I've never heard
anyone else quote an indicative figure anywhere near that high.
John
Jul 18 '05 #7
On Friday 12 September 2003 10:35 am, John J. Lee wrote:
John <jo************ @chello.no> writes:
On 12 Sep 2003 06:09:02 -0700, Ubaidullah Nubar
<ub************ *@hotmail.com> wrote:


[...]
4.
Python is appox 400 times slower than C.


[...]

Maybe this was intended to be a silly number, but: this means very
little. The degree of slowdown is hugely variable from one domain to
the next, and from one program to the next, and I've never heard
anyone else quote an indicative figure anywhere near that high.


Right. The figure most often stated seems to be about 50, but as you
say, there is so much variation that any number is nearly useless.

Gary Herron

Jul 18 '05 #8
vi***@cs.unipun e.ernet.in schreef:
(Actually there is no seperate documentation for wxPython, it a wrapper
around the wxWindows library)


There is a bit of wxPython documentation here:
<http://www.orbtech.com/www/wxPythonDocs.ht ml>

Looks like the start of a work-in-progress to me, and I think it comes with
the last wxPython release too.

--
JanC

"Be strict when sending and tolerant when receiving."
RFC 1958 - Architectural Principles of the Internet - section 3.9
Jul 18 '05 #9
On 2003-09-12, vi***@cs.unipun e.ernet.in <vi***@cs.unipu ne.ernet.in> wrote:
If u are new to Python and have no previous experience with C++ then
I think Tkinter is the best place to start. If you are comfortable
with C++ then u can use wxPython. (Actually there is no seperate
documentation for wxPython, it a wrapper around the wxWindows library)


Actually I had no prior experience with C++ (or C) and found
wxPython extremely easy to use. I don't see how C++ is needed to read
the docs for wxWindows. You just ignore the datatypes and read the
notes on where the wxPython version differs from wxWindows. For example
wxTextCntl.Posi tionToXY(). In wxWindows it takes 3 arguments, the
position and two variables to return the x and y positions into.
Underneath it it clearly says the wxPython method returns a tuple
(x, y).

--
Steve C. Lamb | I'm your priest, I'm your shrink, I'm your
PGP Key: 8B6E99C5 | main connection to the switchboard of souls.
-------------------------------+---------------------------------------------
Jul 18 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
8982
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8822
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9357
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9309
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9234
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8235
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6792
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6072
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
2774
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.