473,756 Members | 1,861 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 10442
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
9255
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,...
1
9819
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
9689
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
8688
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...
0
6514
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();...
0
5119
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5289
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3326
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2647
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.