[Twisted-Python] Twisted 19.2.0 Release Announcement

2019-04-10 Thread Amber Brown
On behalf of Twisted Matrix Laboratories, I am honoured to announce the 
release of Twisted 19.2! The highlights of this release are:


 * twisted.web.client.HostnameCachingHTTPSPolicy was added as a new
   contextFactory option. This reduces the performance overhead for
   making many TLS connections to the same host.
 * twisted.conch.ssh.keys can now read private keys in the new
   "openssh-key-v1" format, introduced in OpenSSH 6.5 and made the
   default in OpenSSH 7.8.
 * The sample code in the "Twisted Web In 60 Seconds" tutorial runs on
   Python 3.
 * DeferredLock and DeferredSemaphore can be used as asynchronous
   context managers on Python 3.5+.
 * twisted.internet.ssl.CertificateOptions now uses 32 random bytes
   instead of an MD5 hash for the ssl session identifier context.
 * twisted.python.failure.Failure.getTracebackObject now returns
   traceback objects whose frames can be passed into
   traceback.print_stack for better debugging of where the exception
   came from.
 * Much more! 20+ tickets closed overall.

You can find the downloads at  (or 
alternatively ). The NEWS 
file is also available at 
.


Many thanks to everyone who had a part in this release - the supporters 
of the Twisted Software Foundation, the developers who contributed code 
as well as documentation, and all the people building great things with 
Twisted!


Twisted Regards,
Amber Brown (HawkOwl)
___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python


Re: [Twisted-Python] ws(s):// urls and host/port duplication in twisted/autobahn code

2019-04-10 Thread meejah
Chris Withers  writes:

> Not sure I follow, I specify ws:// and things work. What am I missing?
> (I know the initial protocol is http and that's "upgraded" into
> websocket, but the url is still ws:// or wss://, right?)

What Tobias is getting at, I think, is that your URL could be
wss://example.com/ws but the endpoint could be a unix-socket at
/var/run/foo

Now, that said, some of the APIs do allow you to shortcut this in the
case when your endpoint will be the same as the host in the URI. Compare
these two "Component" examples; the first uses the "long form" way to
specify the URL + transport and the second is just a string:

https://github.com/crossbario/autobahn-python/blob/master/examples/twisted/wamp/component/backend.py#L34
https://github.com/crossbario/autobahn-python/blob/master/examples/twisted/wamp/component/frontend.py#L42

>> fwiw, WAMP is a protocol with a clear-cut, rigorous and decoupled
>> layering:

> Do browsers speak WAMP?

Yes. See Autobahn-JS

> Do firewalls get upset with it?

No.

WAMP connections are usually "outbound" style connections to the router,
so most firewall configurations will be fine with this.

-- 
meejah

___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python


Re: [Twisted-Python] Twisted 19.2.0 Release Announcement

2019-04-10 Thread Glyph

> On Apr 10, 2019, at 5:36 AM, Amber Brown  wrote:
> 
> On behalf of Twisted Matrix Laboratories, I am honoured to announce the 
> release of Twisted 19.2! The highlights of this release are: 
> 
> twisted.web.client.HostnameCachingHTTPSPolicy was added as a new 
> contextFactory option. This reduces the performance overhead for making many 
> TLS connections to the same host.
> twisted.conch.ssh.keys can now read private keys in the new "openssh-key-v1" 
> format, introduced in OpenSSH 6.5 and made the default in OpenSSH 7.8.
> The sample code in the "Twisted Web In 60 Seconds" tutorial runs on Python 3.
> DeferredLock and DeferredSemaphore can be used as asynchronous context 
> managers on Python 3.5+.
> twisted.internet.ssl.CertificateOptions now uses 32 random bytes instead of 
> an MD5 hash for the ssl session identifier context.
> twisted.python.failure.Failure.getTracebackObject now returns traceback 
> objects whose frames can be passed into traceback.print_stack for better 
> debugging of where the exception came from.
> Much more! 20+ tickets closed overall.
> You can find the downloads at  
>  (or alternatively 
>  
> ). The NEWS file is also 
> available at 
>  
> . 
> 
> Many thanks to everyone who had a part in this release - the supporters of 
> the Twisted Software Foundation, the developers who contributed code as well 
> as documentation, and all the people building great things with Twisted! 

Thanks Amber!

This release looks pretty great!

Thanks for all the hard work everyone.  I really appreciate everyone keeping 
the slow boil of fixes going.

We already have some pretty great stuff queued up for the next one :-).

-g

___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python