Re: windev vs python SOS
> Can Windev interface with .net? YES > Can Windev interface with Java? YES > Can Windev interface natively with nearly every relational database on the > planet? YES > Does Windev interface with JMS, Java RMI, SAP RFC, mqseries and other > middleware?>> YES > Can you easily access any C/C++ library from Windev? YES > Is Windev code as readable as Python for non-computer scientists?>>> I don't > know Python but Wlangage is as readable as free text I am always amazed when I meet fanatics!! Links abour Windev for those who like facts : http://www.windev.com/pcsoft/testimonials/index.html http://www.pcsoft.fr/annonce10/photos.html http://www.pcsoft.fr/pcsoft/120pages/index.html Be cool !!! A. Wolfgang Keller wrote: > > - python work on multiple platform (linux, mac, windows) > > A good point but it didn't interest him. Because > > we want to choose a language for prototyping. > > So multi platform is not enough. > > With Python the prototype _is_ the application. You just need to add a little > bit of polishing (exception handling etc.) where required, maybe implement a > speed-critical module in Pyrex, that's it. > > And for running a production application, cross-platform-ness _is_ important. > Or what would you do when your customer wants to run his application not just > on Windows, but on an embedded OS like VxWorks, QNX, or a _real_ server OS > such as any proprietary Unix (including MacOS X), Linux, *BSD, OS/400 (or > whatever it is called now), MVS... > > Can Windev interface with .net? For Python, there's Python.net (not > Ironpython, that's a different thing). > > Can Windev interface with Java? For Python, there's JPype (not Jython, that's > a different thing as well). > > Does Windev interface with JMS, Java RMI, SAP RFC, mqseries and other > middleware? > > Can you build COM clients and servers in Windev? Can you build Corba clients > and servers in Windev? > > Can Windev interface natively with nearly every relational database on the > planet? > > Can you easily access any C/C++ library from Windev? > > Is Windev code as readable as Python for non-computer scientists? > > ... > > > - windev as a good IDE, python? boa-constructor is ok with wxpython > > Python for Windows comes with an IDE (PythonWin) iirc. Otherwise there are > plenty of development tools for database applications in Python (not all > mentioned below are free): > > Access/Filemaker-like: > - Rekall (Qt) > - Knoda (Qt) > - Kexi (Qt) > - Gemello (GTK) > - Glom (GTK) > ... > > GUI-Builders: > - Qt Designer > - Glade (GTK) > - Gazpacho (GTK) & Kiwi (application framework) > - wxGlade (wxwidgets) > - DialogBlocks (wxWidgets) > - VisualWx (wxWidgets) > - wxDesigner (wxWidgets) > ... > > IDEs: > - WingIDE > - Eric3 > - SPE > - Komodo > - PyDev (for Eclipse) > - Trustudio (for Eclipse) > - Pythoncard (incl. GUI-Builder) > - Boa Constructor (incl. GUI-Builder) > ... > > Others: > - GNUe (wxWidgets) (complete framework for enterprise database applications, > including application server etc.) > - TinyERP (GTK) (complete ERP implemented in Python, but if you strip out all > the ERP-specific modules, you get a powerful framework inlcuding a workflow > engine) > - Dabo (wxWidgets) (framework & GUI Builder) > ... > > > - python is open source (that's not an argument for my boss, sorry > > it'sa boss ...) > > The point is that with Python you _can_ have commercial support if you > want/need to. With Windev, as with any other proprietary software, you > _depend_ on the original developer to continue to exist, fix bugs, implement > required functionality... > > How anyone can bet the existence of a company on proprietary software in a > time where even multi-billion dollar companys get taken over just to > "consolidate competition" is beyond my scope of comprehension. > > Sincerely, > > Wolfgang Keller > > -- > My email-address is correct. > Do NOT remove ".nospam" to reply. -- http://mail.python.org/mailman/listinfo/python-list
Seeking Python expertise...
Hi, I found out about your Python community and thought you may be able to help me out. I am supporting an elite group of traders (more like the Who's Who on Wall Street). We are building algorithmic trading models to analyze market movements, economic indicators, and various factors to predict and automate trade executions. We have quite a bit of success thus far and are expanding into other electronic markets. Our core technology team wants to add 5-6 talented software engineers in the next few months that know Python well as we believe its a fast and elegant language. They also said that people with a strong background in math, statistics, modeling, chess, or video game development will find what we are doing to be very fascinating. Everything is real-time, and you get to apply what you know and see the results of your software models making money in the market immediately. Are you the person we seek? Do you know anyone we can talk to about this? I am more than happy to forward a job description. We pay very well for top talents - attractive salary and triple digit percentage in bonuses for top contributors. And, we will relocate people to Beverly Hill, CA (USA) from anywhere in the world. Also, the technology team also has a number of positions open for people with strong experience in concurrency, multi-threading, I/O, NIO, networking, operating systems internals, and performance optimization to work on our core trading platform (where we execute trades directly with the Exchange). People with experience building servers that can handle thousands of simultaneous connections / concurrent users will be very helpful. Performance of our platform is very important for us as we profit from even very small fluctuations in price. I don't know if people in this Python community also know these technologies but I guess it doesn't hurt to ask. If you have a resume, I'd love to see it. If you can pass this to the right people, I'd really appreciate it. If you have any questions, you can call me at 415-503-3998 or email me at [EMAIL PROTECTED] . Thanks so much for your help. Amanda Arnett-- http://mail.python.org/mailman/listinfo/python-list
Adding sender name to email
How do I add a Sender name to the emails sent by the following script:
def createhtmlmail (html, text, subject):
"""Create a mime-message that will render HTML in popular
MUAs, text in better ones"""
import MimeWriter
import mimetools
import cStringIO
out = cStringIO.StringIO() # output buffer for our message
htmlin = cStringIO.StringIO(html)
txtin = cStringIO.StringIO(text)
writer = MimeWriter.MimeWriter(out)
# set up some basic headers... we put subject here
# because smtplib.sendmail expects it to be in the
# message body
#
writer.addheader("Subject", subject)
writer.addheader("MIME-Version", "1.0")
#
# start the multipart section of the message
# multipart/alternative seems to work better
# on some MUAs than multipart/mixed
#
writer.startmultipartbody("alternative")
writer.flushheaders()
#
# the plain text section
#
subpart = writer.nextpart()
subpart.addheader("Content-Transfer-Encoding", "quoted-printable")
pout = subpart.startbody("text/plain", [("charset", 'us-ascii')])
mimetools.encode(txtin, pout, 'quoted-printable')
txtin.close()
#
# start the html subpart of the message
#
subpart = writer.nextpart()
subpart.addheader("Content-Transfer-Encoding", "quoted-printable")
#
# returns us a file-ish object we can write to
#
pout = subpart.startbody("text/html", [("charset", 'us-ascii')])
mimetools.encode(htmlin, pout, 'quoted-printable')
htmlin.close()
#
# Now that we're done, close our writer and
# return the message body
#
writer.lastpart()
msg = out.getvalue()
out.close()
return msg
if __name__=="__main__":
import smtplib
from time import *
f = open("mssg.html", 'r')
html = f.read()
f.close()
f = open("mssg.txt", 'r')
text = f.read()
f.close()
subject = "subject)"
f = open("temp.txt", 'r')
RECIPIENTS = []
for line in f:
RECIPIENTS.append(line.strip())
f.close()
for i in RECIPIENTS:
if len(i) == 0:
RECIPIENTS.remove(i)
print "Number of recipients: ", len(RECIPIENTS)
SENDER = '[EMAIL PROTECTED]'
print "Generating message..."
mssg = createhtmlmail(html, text, subject)
print "Opening session"
session = smtplib.SMTP("localhost")
print "Sending email"
offset = 0
blocksize = 20 # to send emails in blocks of 20, so I don't
bomb out my server
while offset*blocksize < len(RECIPIENTS):
print "Sending message ", offset*blocksize, " - ",
(offset+1)*blocksize, "of ", len(RECIPIENTS), "..."
smtpresult =
session.sendmail(SENDER,RECIPIENTS[offset*blocksize:(offset+1)*blocksize],mssg)
sleep(30)
offset += 1
## smtpresult = session.sendmail(SENDER, RECIPIENTS, mssg)
if smtpresult:
errstr = ""
for recip in smtpresult.keys():
errstr = """Could not delivery mail to: %s
Server said: %s
%s
%s""" % (recip, smtpresult[recip][0], smtpresult[recip][1], errstr)
raise smtplib.SMTPException, errstr
session.quit()
--
http://mail.python.org/mailman/listinfo/python-list
Subprocess problem on multiple OS's
Subprocess issues with platform independence
Postby ajamin on Wed Oct 08, 2008 10:46 am
I am writing a python script that will act as a wrapper for another
program. The python script will provide the inputs for this program
and will verify that the output is correct. The application runs on
multiple OS's including windows and *nix.
This is the code:
Code: Select all
Help with Code Tags
python Syntax (Toggle Plain Text)
1.
import os, sys, string, time, subprocess
2.
command = "OK\r\n"
3.
p = subprocess.Popen( ("C:\setup-winnt.exe", "-console"),
4.
stdin = subprocess.PIPE,
5.
stdout = subprocess.PIPE,
6.
stderr = subprocess.PIPE)
7.
stdout_text, stderr_text = p.communicate(command)
8.
sys.stdout.writelines(stdout_text.rstrip())
import os, sys, string, time, subprocess command = "OK\r\n" p =
subprocess.Popen( ("C:\setup-winnt.exe", "-console"), stdin =
subprocess.PIPE, stdout = subprocess.PIPE, stderr = subprocess.PIPE)
stdout_text, stderr_text = p.communicate(command)
sys.stdout.writelines(stdout_text.rstrip())
On the *nix version, the application to open ("C:\setup-winnt.exe")
and the command ("OK\r\n") are different. The plan is to refactor this
as the code develops.
The above code works fine on *nix. On these OS's the application
launches in the same console that the command is issued from. On
windows the behavior is different. When the command is executed an
initialization window opens. When this window closes, a command window
is opened. It is this command window that I wish to send commands to.
I believe this command window may be started as a child process of the
application. However it is opened, it does not accept input from the
stdin of the process.
Any suggestions?
--
http://mail.python.org/mailman/listinfo/python-list
