I use PyDev (pydev.sf.net), an Eclipse plug-in. I may be biased, since
I contributed some code to the project, but it works great for me. An
article talking about using PyDev and ant within Eclipse is available
at
http://www-106.ibm.com/developerworks/library/os-ecant/?ca=drs-tp2604.
Grig
Chris
-based test frameworks are very useful and there's
a lack of corresponding frameworks in Python. I'm thinking about tools
such as HTTPUnit, Cactus, Abbot, The Grinder, and there are many
others. I'm happy to see Jython being used more and more in such tools
though (The Grinder, Test Maker, Marathon).
Grig
--
http://mail.python.org/mailman/listinfo/python-list
Try dummynet (<http://info.iet.unipi.it/~luigi/ip_dummynet/> and/or
Google for it)
Grig
--
http://mail.python.org/mailman/listinfo/python-list
"TurboGears: Python on Rails?" post:
http://developers.slashdot.org/developers/05/10/10/0650207.shtml?tid=156
--
http://mail.python.org/mailman/listinfo/python-list
By sheer coincidence I was looking into the same thing today. I just
downloaded the latest rrdtool release (rrdtool-1.2.11) and I noticed a
/bindings/python subdirectory. I haven't played with it yet, as I still
need to install tons of prerequisites before I can build rrdtool.
Grig
--
en displays them using the biggles module. I
haven't worked on it in a while, and I'd rewrite it from scratch
probably. If you want to see the source, check out
<http://cvs.sourceforge.net/viewcvs.py/perfstats/>.
Grig
--
http://mail.python.org/mailman/listinfo/python-list
I used pySNMP successfully. I think it's the most active SNMP-related
Python project too.
Grig
--
http://mail.python.org/mailman/listinfo/python-list
entry that
I just posted:
<http://agiletesting.blogspot.com/2005/10/cheesecake-how-tasty-is-your-code.html>
Comments/suggestions welcome!
Grig
--
http://mail.python.org/mailman/listinfo/python-list
I successfully used mxODBC
(<http://www.egenix.com/files/python/mxODBC.html>)
Grig
--
http://mail.python.org/mailman/listinfo/python-list
You might want to post your question to the twill mailing list. Info
about the list is available at <http://lists.idyll.org/listinfo/twill>
Grig
--
http://mail.python.org/mailman/listinfo/python-list
only some syntax peculiarities for a given
database type. The code is clean and portable.
Grig
--
http://mail.python.org/mailman/listinfo/python-list
Yes, I did run into the difference in the parameter styles, so I deal
with that in the database-specific classes. It's not a huge difficulty
though.
Grig
--
http://mail.python.org/mailman/listinfo/python-list
r"
l = open(filename, 'rb')
ftp.storbinary(cmd, l)
# close connection
ftp.close()
All the various methods on the ftp object should be called in
try/except blocks, since they can potentially raise exceptions.
Grig
--
http://mail.python.org/mailman/listinfo/python-list
er (probably Dec. 7th) at a
restaurant in Pasadena. Check out the mailing list archives for
details.
Hope to see you at our next meetings!
Grig
Grig
--
http://mail.python.org/mailman/listinfo/python-list
What version of Python are you running on Linux vs. Windows?
--
http://mail.python.org/mailman/listinfo/python-list
I normall set PYTHONPATH to the parent directory of my module directory
tree. If I have my module files in C:\home\mymodules and below, then I
set PYTHONPATH to C:\home. This way, I can do "import mymodules" in my
code.
--
http://mail.python.org/mailman/listinfo/python-list
to hunt for the
site-packages directory (of which there might be several) on all my
systems.
I guess it's a matter of taste in the end, but I do find the PYTHONPATH
approach more suitable for automation and scripting, particularly when
dealing with a large number of systems.
Grig
--
ure/replay functionality, and it automatically builds the
Jython script that drives your flow of actions. You can then edit and
enhance the script manually.
Grig
bogdan romocea wrote:
> Dear Python experts,
>
> I have a GUI application (Windows; apparently written in Java) which
I
>
At a command prompt, do "which python" to see where the python binary
lives. Then specify the full path to python in your exec() call,
instead of just "python". What probably happens is that you don't have
the python binary in your PATH when you run exec() from your
Salut, Catalin
You can first convert your c string to unicode, and in the process
specify an encoding that understands non-ASCII characters (if you don't
specify an encoding, it will try to use your default, which is most
likely ASCII, and you'll get the error you mentioned.). In the
following exa
How is your Firebird database configured -- Classic Server or Super
Server? If it's in classic server mode, you don't need to worry about
the host portion. You do need to worry about permissions on the
database file. I got it to work by making it 664 and owner + group
firebird.
Grig
Use cx_Oracle: <http://starship.python.net/crew/atuining/cx_Oracle/>
Grig
--
http://mail.python.org/mailman/listinfo/python-list
Why don't you donwload the source from python.org? Also, on Solaris tar
is sometimes broken (i.e. can't deal with long directory names etc.)
You may want to donwload and install gnu tar.
Grig
--
http://mail.python.org/mailman/listinfo/python-list
tried connecting to MySQL natively yet, but I don't think it
would be any different.
Grig
--
http://mail.python.org/mailman/listinfo/python-list
', 1),
(4L, 'creategroups', 'Can create and destroy groups.', 0, '', 1),
(8L, 'editcomponents', 'Can create, destroy, and edit components.', 0,
'', 1),
(16L, 'editkeywords', 'Can create, destroy, and edit keywords.', 0,
'', 1),
(32L, 'editbugs', 'Can edit all aspects of any bug.', 0, '.*', 1),
(64L, 'canconfirm', 'Can confirm a bug.', 0, '.*', 1))
>>>
For more info on how to use the MySQLdb module, see the docs at
<http://sourceforge.net/docman/?group_id=22307>
Hope this helps,
Grig
--
http://mail.python.org/mailman/listinfo/python-list
That's exactly the way to go. In my case, I'm using cx_Oracle to
connect from Python to Oracle and the same exact code runs on Windows,
Linux, Solaris and soon on AIX.
Grig
--
http://mail.python.org/mailman/listinfo/python-list
As the other posters already mentioned, cx_Oracle is the way to go. I'm
using it to connect to Oracle not only on Windows, but also on Solaris,
Linux and AIX.
Grig
--
http://mail.python.org/mailman/listinfo/python-list
For Javascript automation, I recommend Selenium
(<http://confluence.public.thoughtworks.org/display/SEL/Home>).
Grig
--
http://mail.python.org/mailman/listinfo/python-list
-classes-and-methods>
Grig
http://agiletesting.blogspot.com
--
http://mail.python.org/mailman/listinfo/python-list
I had a similar problem when trying to compile Python 2.4.1 on AIX. The
configure script complained about not finding 'cc_r'. I simply did 'ln
-s /usr/bin/gcc /usr/bin/cc_r' and that solved my problem. You may
consider doing the same for cclplus.
Grig
--
http://mail.python.
Here are 2 recipes from the online Python Cookbook. I've used this one
very successfully:
<http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/115875>.
This one seems simpler:
<http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/59872>
Grig
--
http://mail.python.org
n')
[myapp:hello] again
See
<http://agiletesting.blogspot.com/2005/06/keyword-based-logging-with-py-library.html>
for more details.
Grig
--
http://mail.python.org/mailman/listinfo/python-list
Jan,
Here's what I did to run a Python script (let's call it myscript.py) as
a service:
1. Install Win2K Resource Kit.
2. Run instsrv to install srvany.exe as a service with the name
myscript:
C:\Program Files\Resource Kit\instsrv myscript "C:\Program
Files\Resource Kit\srvany.exe"
3. Go to Co
Achim,
Have you looked into twill? It's available at
<http://www.python.org/pypi/twill/0.7.2>
Grig
--
http://mail.python.org/mailman/listinfo/python-list
The Jython / HttpUnit combination worked well for me too. There's also
maxq (http://maxq.tigris.org/), which looks promising, but I haven't
used it yet.
Grig
http://agiletesting.blogspot.com
--
http://mail.python.org/mailman/listinfo/python-list
A great place to start for TDD-related stuff is testdriven.com. On the
topic of Python-specific unit testing, there's also a recent thread on
the newly-created extreme-python google group:
http://groups-beta.google.com/group/extreme-python/browse_thread/thread/f39844c4cf6c844f?tvc=2
There's another current thread on c.l.py talking about testing Web
applications. Somenone suggested Jython in conjunction with HttpUnit, a
combination that worked for me too -- but the name HttpUnit is
misleading, since it does functional/black box testing and not unit
testing. It beats scraping We
Is there an official procedure for signing up for presenting a
Lightning Talk, except for editing the PyCon05 Wiki page?
Grig
--
http://mail.python.org/mailman/listinfo/python-list
As a tester, my vote goes to extending the "Testing" subsection of the
"Testing, debugging and optimizing". I'd like to see more testing tools
discussed there. Maybe py.test, PyFIT, and possibly others.
Grig
--
http://mail.python.org/mailman/listinfo/python-list
hoice that might not be the best for your specific environment
-- provided of course that this doesn't evolve into a PyWebOff-like
nightmare :-)
Grig
--
http://mail.python.org/mailman/listinfo/python-list
>From what I know, the PyPy guys already have a unittest-to-py.test
translator working, but they didn't check in the code yet. You can send
an email to py-dev at codespeak.net and let them know you're interested
in this functionality.
Grig
--
http://mail.python.org/mailman/listinfo/python-list
Can't you use the tempfile module to generate unique names for
non-existent files and directories? Take a look at
http://www.python.org/doc/lib/module-tempfile.html -- it works on all
supported platforms.
Grig
--
http://mail.python.org/mailman/listinfo/python-list
py.test intercepts the assert statements before they are optimized
away. It's part of the profuse "magic" that py.test does.
Grig
--
http://mail.python.org/mailman/listinfo/python-list
Check out http://pyre.third-bit.com/pyweb/index.html
Grig
--
http://mail.python.org/mailman/listinfo/python-list
I subscribe to the other posters' opinion: cx_Oracle is what I use on
Windows, Linux and Solaris. Works great cross-platform and across
Oracle versions (I use it with Oracle 9 and 10, haven't tried 8 yet).
Grig
--
http://mail.python.org/mailman/listinfo/python-list
Try paramiko: http://www.lag.net/paramiko/
Grig
--
http://mail.python.org/mailman/listinfo/python-list
o.
Thanks,
Grig
--
http://mail.python.org/mailman/listinfo/python-list
n for example to automate user and mailbox management in
Active Directory and Exchange. I also use the mxODBC module to interact
with SQL Server.
I warmly recommend "Python Programming on Win32" by Mark Hammond and
Andy Robinson (O'Reilly).
Grig
--
http://mail.python.org/mailman/listinfo/python-list
I also recommend Firebird. I like the fact that the database is in its
own file that can be copied from one platform to another. I use it on
Linux, but it works just as well on Windows.
Grig
--
http://mail.python.org/mailman/listinfo/python-list
See
http://pycheesecake.org/wiki/PythonTestingToolsTaxonomy#MiscellaneousPythonTestingTools
In particular, PySizer and HeapPy might be what you're looking for. I
can't say for sure, since I haven't used these tools myself.
Grig
--
http://mail.python.org/mailman/listinfo/python-list
et started:
<http://agiletesting.blogspot.com/2006/02/continuous-integration-with-buildbot.html>.
Hope this helps,
Grig
--
http://mail.python.org/mailman/listinfo/python-list
x27;s just too coarse-grained to catch subtle errors. I'm
curious to know how exactly you use it at Carmen and how you can get
rid of your unit tests by using it.
Grig
--
http://mail.python.org/mailman/listinfo/python-list
Thanks for the insightful answer, Magnus. I have a lot of stuff to
digest from your message :-) Maybe I'll continue the discussion on the
mailing list you mentioned.
Grig
--
http://mail.python.org/mailman/listinfo/python-list
ython setup.py test")
if rc:
print "Command failed"
....sys.exit(rc)
Grig
--
http://mail.python.org/mailman/listinfo/python-list
Try upcoming.org. In addition to the Web interface, they also offer a
REST-ful API that you can use from your own app.
Grig
--
http://mail.python.org/mailman/listinfo/python-list
I use this function as a platform-independent way of finding out the
current user name:
def get_username():
if sys.platform == 'win32':
return win32api.GetUserName()
else:
return getpass.getuser()
--
http://mail.python.org/mailman/listinfo/python-list
There may have been a reason for the win32 stuff at some pointbut I
don't remember and you're right, it does seem like getpass by itself
would do the job.
Grig
--
http://mail.python.org/mailman/listinfo/python-list
Check out twill <http://www.idyll.org/~t/www-tools/twill/>, which is
based on mechanize (<http://wwwsearch.sourceforge.net/>).
Grig
--
http://mail.python.org/mailman/listinfo/python-list
58 matches
Mail list logo