Twisted 12.0.0 released

2012-02-11 Thread Thomas Hervé

On behalf of Twisted Matrix Laboratories, I am honored to announce the
release of Twisted 12.0.

47 tickets are closed by this release, among them:

 * A fix to the GTK2 reactor preventing unnecessary wake-ups

 * Preliminary support of IPV6 on the server side

 * Several fixes to the new protocol-based TLS implementation

 * Improved core documentation's main page

Twisted no longer supports Python 2.4, the latest supported version is 2.5.

For more information, see the NEWS file here:

 http://twistedmatrix.com/Releases/Twisted/12.0/NEWS.txt

Download it now from:

 http://pypi.python.org/packages/source/T/Twisted/Twisted-12.0.0.tar.bz2 or

http://pypi.python.org/packages/2.5/T/Twisted/Twisted-12.0.0.win32-py2.5.msi 
or


http://pypi.python.org/packages/2.6/T/Twisted/Twisted-12.0.0.win32-py2.6.msi 
or


http://pypi.python.org/packages/2.7/T/Twisted/Twisted-12.0.0.win32-py2.7.msi

Thanks to the supporters of the Twisted Software Foundation and to the 
many contributors for this release.


--
Thomas

--
http://mail.python.org/mailman/listinfo/python-announce-list

   Support the Python Software Foundation:
   http://www.python.org/psf/donations/


ANN: Sarge, a library wrapping the subprocess module, has been released.

2012-02-11 Thread Vinay Sajip
Sarge, a cross-platform library which wraps the subprocess module in
the standard library, has been released.

What does it do?


Sarge tries to make interfacing with external programs from your
Python applications easier than just using subprocess alone.

Sarge offers the following features:

* A simple way to run command lines which allows a rich subset of Bash-
style shell command syntax, but parsed and run by sarge so that you
can run on Windows without cygwin (subject to having those commands
available):

>>> from sarge import capture_stdout
>>> p = capture_stdout('echo foo | cat; echo bar')
>>> for line in p.stdout: print(repr(line))
...
'foo\n'
'bar\n'

* The ability to format shell commands with placeholders, such that
variables are quoted to prevent shell injection attacks.

* The ability to capture output streams without requiring you to
program your own threads. You just use a Capture object and then you
can read from it as and when you want.

Advantages over subprocess
---

Sarge offers the following benefits compared to using subprocess:

* The API is very simple.

* It's easier to use command pipelines - using subprocess out of the
box often leads to deadlocks because pipe buffers get filled up.

* It would be nice to use Bash-style pipe syntax on Windows, but
Windows shells don't support some of the syntax which is useful, like
&&, ||, |& and so on. Sarge gives you that functionality on Windows,
without cygwin.

* Sometimes, subprocess.Popen.communicate() is not flexible enough for
one's needs - for example, when one needs to process output a line at
a time without buffering the entire output in memory.

* It's desirable to avoid shell injection problems by having the
ability to quote command arguments safely.

* subprocess allows you to let stderr be the same as stdout, but not
the other way around - and sometimes, you need to do that.

Python version and platform compatibility
-

Sarge is intended to be used on any Python version >= 2.6 and is
tested on Python versions 2.6, 2.7, 3.1, 3.2 and 3.3 on Linux,
Windows, and Mac OS X (not all versions are tested on all platforms,
but sarge is expected to work correctly on all these versions on all
these platforms).

Finding out more


You can read the documentation at

http://sarge.readthedocs.org/

There's a lot more information, with examples, than I can put into
this post.

You can install Sarge using "pip install sarge" to try it out. The
project is hosted on BitBucket at

https://bitbucket.org/vinay.sajip/sarge/

And you can leave feedback on the issue tracker there.

I hope you find Sarge useful!

Regards,


Vinay Sajip
-- 
http://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/


[ANN] Python Tools for Visual Studio 1.1

2012-02-11 Thread Dino Viehland
We're pleased to announce the release of Python Tools for Visual Studio 1.1 
http://pytools.codeplex.com/releases/view/76091. Python Tools for Visual Studio 
(PTVS) is an open-source plug-in for Visual Studio which supports programming 
with the Python programming language. PTVS supports a broad range of features 
including: 
* Supports CPython and IronPython 
* Python editor with advanced member and signature intellisense 
* Code navigation: "Find all refs", goto definition, and object browser 
* Local and remote debugging 
* Profiling with multiple views 
* Integrated REPL window with inline matplotlib graphics 
* Support for HPC clusters and MPI, including debugging & Profiling 
* Interactive parallel computing via integrated IPython REPL

This release includes new core IDE features, a couple of new sample libraries 
for interacting with Kinect and Excel, and many bug fixes for issues reported 
since the release of 1.0. The 1.1 release altogether contains over 150 bug 
fixes and new features since 1.0. 

For the core IDE features we've added many new features which improve the basic 
editing experience. This includes a smart tag feature for automatically adding 
imports, a command for cleaning up unused imports, support for recognizing 
isinstance() calls and using them for providing improved completions. We've 
also updated goto definition to go to members defined in the standard library.

We've also made several improvements to the project system. Some improvements 
which should help just about everyone include support for linked files that 
live outside of the project directory. This makes it easy to keep your project 
file separate from your code files. For IronPython users you can now add 
references to .NET projects or .NET assemblies and we'll automatically reload 
and re-analyze the references when they're rebuilt. For CPython users you can 
now add a reference to a .pyd extension module enabling analysis of the 
extension to provide completions. We've also improved intellisense across 
multiple Python projects in the same solution. 

This release also includes some improvements to the interactive REPL window. 
This includes improvements to IPython REPL support including support for inline 
graphs and proper support for IPython's numbered prompts. We've added support 
for using IPython mode w/o PyLab - this enables out-of-line graphs and improves 
the startup time of the interactive window.

The debugger has also seen several small improvements in this release. There's 
a new option to step into the Python standard library while debugging, another 
option to not break on SystemExit exception with exit codes of zero. Finally 
we've added support for displaying Python thread name in the threads window. 
We've also improved the Debug->Attach support and made it easier to attach to a 
process which is not actively running Python code.

Another major addition to 1.1 includes the addition of two additional sample 
libraries available as separate downloads: PyKinect for working with the Kinect 
Beta SDK and Pyvot for working with Excel spreadsheets. Once downloaded and 
installed these plug-in to Visual Studio and provide templates; and they 
provide built-in support for installing into one of the recognized Python 
interpreters via Tools->Python Tools->Samples. 

We'd like to thank all of the users who took the time to report issues and 
feedback for this release: 445363200, adv12, Andrew, AphexSA, benpmorgan, 
chadbr, dgkbny, drgn, holmboe, hyh, jimpeak, juanalumni, kingnaoufal, 
lblanchon, liuzhenhai, mahpour, MichaelBaker, po6856, pztrick44, 
RobertMcGinley, salerio, slide_o_mix, somini, SoonStudios, stakemura, 
stephenkennedy, sumitbasu, swift_dev, synergetic, teebot, tiphon, 
timeisaparallax, tonyandrewmeyer, xavier_grundus, and Zooba.

Thanks,
The Python Tools for Visual Studio Team


-- 
http://mail.python.org/mailman/listinfo/python-announce-list

Support the Python Software Foundation:
http://www.python.org/psf/donations/