Re: [Twisted-Python] composition VS. inheritance

2020-06-30 Thread meejah
ively simple protocol to try this "sans-io" style and was happy to start with the state-machine (using Automat). This forced some good decisions. Then I worked outwards to the "more boring" bits (framing and serialization/parsing). (Hmm, this should almost just be a blog-post maybe

[Twisted-Python] txtorcon 20.0.0

2020-03-31 Thread meejah
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 I'm pleased to announce txtorcon 20.0.0. This fixes a few bugs and officially deprecates Python 2 support. * Use real GeoIP database or nothing (https://github.com/meejah/txtorcon/issues/250) * Change abstract base classes import in preperation

Re: [Twisted-Python] In memory cache in twisted

2019-09-27 Thread meejah
threaded an so only one callback is running at a time. There's no need to lock etc. (Or, is there another reason you need to cache to "be async"? Like maybe it's using memcached or so?) -- meejah ___ Twisted-Python mailing list Twisted-P

[Twisted-Python] txtorcon 19.1.0

2019-09-10 Thread meejah
too. See e.g. TorState.on_circuit_new() * fixes to the CI setup to properly test Twisted versions You can download the release from PyPI or GitHub (or of course "pip install txtorcon"): https://pypi.python.org/pypi/txtorcon/19.1.0 https://github.com/meejah/txtorcon/releases/t

Re: [Twisted-Python] Running CPU bound function concurrently in twisted

2019-06-24 Thread meejah
but is way simpler. Obviously, an RPC-style communication system avoids the startup penalty (but can be more complex). -- meejah ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] Twisted for http/2 (RESTful) webservices - client/server

2019-05-24 Thread meejah
es twisted web so it will use http2 if the underlying twisted has been set up to use http2 (by installing the right things). p.s. if you need real-time help/discussion, #twisted on freenode is a friendly and active channel. Cheers, meejah ___ Twisted

Re: [Twisted-Python] Twisted for http/2 (RESTful) webservices - client/server

2019-05-24 Thread meejah
ocol (which does RPC and PubSub). -- meejah ___ 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
gt; 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,

[Twisted-Python] txtorcon 19.0.0

2019-01-15 Thread meejah
You can download the release from PyPI or GitHub (or of course "pip install txtorcon"): https://pypi.python.org/pypi/txtorcon/19.0.0 https://github.com/meejah/txtorcon/releases/tag/v19.0.0 Releases are also available from the hidden service: http://timaq4ygg2iegci7.onion/txtor

Re: [Twisted-Python] "blocking" on a response to a client

2018-11-05 Thread meejah
hn repository above. Here are some "not IOPump" examples using the Twisted "StringTransport" helper (this isn't WebSocket but should give some ideas): https://github.com/meejah/txtorcon/blob/master/test/test_torcontrolprotocol.py#L80 -- meejah __

[Twisted-Python] txtorcon 18.3.0

2018-10-05 Thread meejah
ourse "pip install txtorcon"): https://pypi.python.org/pypi/txtorcon/18.3.0 https://github.com/meejah/txtorcon/releases/tag/v18.3.0 Releases are also available from the hidden service: http://timaq4ygg2iegci7.onion/txtorcon-18.3.0.tar.gz http://timaq4ygg2iegci7.onion/txtorcon-18.3.

[Twisted-Python] txtorcon 18.2.0

2018-10-04 Thread meejah
`single_hop=` kwarg You can download the release from PyPI or GitHub (or of course "pip install txtorcon"): https://pypi.python.org/pypi/txtorcon/18.2.0 https://github.com/meejah/txtorcon/releases/tag/v18.2.0 Releases are also available from the hidden service: http://timaq4ygg2ie

[Twisted-Python] txtorcon 18.1.0

2018-09-26 Thread meejah
the remote vs local connections. You can download the release from PyPI or GitHub (or of course "pip install txtorcon"): https://pypi.python.org/pypi/txtorcon/18.1.0 https://github.com/meejah/txtorcon/releases/tag/v18.1.0 Releases are also available from the hidden service:

[Twisted-Python] Tahoe 1.13.0

2018-08-08 Thread meejah
mized t-shirt with your exploit printed on it and add you to the "Hack Tahoe-LAFS Hall Of Fame" [13]. ACKNOWLEDGEMENTS This is the eighteenth release of Tahoe-LAFS to be created solely as a labor of love by volunteers. Thank you very much to the team of "hackers in the public interest

[Twisted-Python] txtorcon 18.0.1

2018-06-29 Thread meejah
con/18.0.1 https://github.com/meejah/txtorcon/releases/tag/v18.0.1 Releases are also available from the hidden service: http://timaq4ygg2iegci7.onion/txtorcon-18.0.1.tar.gz http://timaq4ygg2iegci7.onion/txtorcon-18.0.1.tar.gz.asc Or via a "version 3"

[Twisted-Python] txtorcon 18.0.0

2018-06-25 Thread meejah
nix paths. * make sure README renders on Warehouse/PyPI You can download the release from PyPI or GitHub (or of course "pip install txtorcon"): https://pypi.python.org/pypi/txtorcon/18.0.0 https://github.com/meejah/txtorcon/releases/tag/v18.0.0 Releases are also ava

Re: [Twisted-Python] Asynchronous code in a context manager

2018-03-23 Thread meejah
Are you using Python3? Then there's "asynchronous context managers". I finally found a use-case for one in txtorcon, so here's an example: http://txtorcon.readthedocs.io/en/latest/txtorcon-controller.html#txtorcon.Tor.onion_authentication

[Twisted-Python] txtorcon 0.20.0

2018-02-22 Thread meejah
deleted following NEWCONSENSUS * Issue 279: remember proxy endpoint if it was Deferred You can download the release from PyPI or GitHub (or of course "pip install txtorcon"): https://pypi.python.org/pypi/txtorcon/0.20.0 https://github.com/meejah/txtorcon/releases/tag/v0.20.0

Re: [Twisted-Python] Using Twisted with pytest fixtures

2017-07-17 Thread meejah
egration tests that I wrote for Tahoe-LAFS (which uses Twisted) and which also starts a 25-node Tor test network. https://meejah.ca/blog/pytest-integration-testing You probably also want the pytest-twisted extension for pytest. I'm often around in #twisted or #ta

[Twisted-Python] txtorcon 0.19.3

2017-05-24 Thread meejah
calls (to help filtering-proxies). You can download the release from PyPI or GitHub (or of course "pip install txtorcon"): https://pypi.python.org/pypi/txtorcon/0.19.3 https://github.com/meejah/txtorcon/releases/tag/v0.19.3 Releases are also available from the hidden servic

[Twisted-Python] txtorcon 0.19.2

2017-05-11 Thread meejah
n download the release from PyPI or GitHub (or of course "pip install txtorcon"): https://pypi.python.org/pypi/txtorcon/0.19.2 https://github.com/meejah/txtorcon/releases/tag/v0.19.2 Releases are also available from the hidden service: http://timaq4ygg2iegci7.onion/txtorcon-0.19.2.tar.gz htt

[Twisted-Python] txtorcon 0.19.0

2017-04-21 Thread meejah
umentation, including the new Programming Guide: https://txtorcon.readthedocs.io/en/latest/guide.html * Issue 203: https://github.com/meejah/txtorcon/issues/203 * new helper: txtorcon.Router.get_onionoo_details which downloads JSON for a particular relay from OnionOO * new helper: txtorcon.ut

Re: [Twisted-Python] txtorcon versioning

2017-04-13 Thread meejah
t's easier to tell "how new" a release is; and big version numbers are cool (just kidding). -- meejah ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

[Twisted-Python] txtorcon versioning

2017-04-12 Thread meejah
ing code will continue to work for the forseeable future. thanks, meejah ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] txtorcon 0.18.0

2017-01-11 Thread meejah
ux for all my terminal multiplexing needs (it's great!). Except there's that one machine that still uses "screen" instead, and I "somehow" got confused about prefix-keys and chorded out the "send the email" Morse-code instead of the "insert a file" one... -- m

[Twisted-Python] txtorcon 0.18.0

2017-01-11 Thread meejah
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 txtorcon 0.18.0 is released, improving error-reporting when you have SAFECOOKIE or COOKIE authentication turned on but can't read the file. * https://github.com/meejah/txtorcon/issues/200 You can download the release from PyPI or GitHub

[Twisted-Python] txtorcon 0.18.0

2017-01-11 Thread meejah
___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

[Twisted-Python] txtorcon 0.17.0

2016-10-04 Thread meejah
for `socks_hostname` was incorrectly named You can download the release from PyPI or GitHub (or of course "pip install txtorcon"): https://pypi.python.org/pypi/txtorcon/0.17.0 https://github.com/meejah/txtorcon/releases/tag/v0.17.0 Releases are also available from the hidden service

Re: [Twisted-Python] inlineCallbacks as a blocking approximator (stylistic)

2016-10-03 Thread meejah
the decorator). It would look like: myWidget.text = await somethingDeferred() -- meejah ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

[Twisted-Python] txtorcon 0.16.1

2016-08-31 Thread meejah
for TorClientEndpoint (thanks to "dawuud"). Also adds TLS support over SOCKS5. You can download the release from PyPI or GitHub (or of course "pip install txtorcon"): https://pypi.python.org/pypi/txtorcon/0.16.1 https://github.com/meejah/txtorcon/releases/tag/v0.16.1 Releases are

Re: [Twisted-Python] Twisted 16.4.0 Prerelease 1 Announcement

2016-08-13 Thread meejah
txtorcon runs all tests fine with 16.4.0pre1 Thanks! Lots of great additions, it looks like :) meejah ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

[Twisted-Python] txtorcon 0.15.1

2016-08-11 Thread meejah
t;pip install txtorcon"): https://pypi.python.org/pypi/txtorcon/0.15.1 https://github.com/meejah/txtorcon/releases/tag/v0.15.1 Releases are also available from the hidden service: http://timaq4ygg2iegci7.onion/txtorcon-0.15.1.tar.gz http://timaq4ygg2iegci7.onion/txtorcon-0.15.1.

Re: [Twisted-Python] running code on its own and importing, howto install a different reactor?

2016-07-29 Thread meejah
qt5reactor qt5reactor.install() from twisted.internet.task import react if __name__ == '__main__': react(print_it) -- meejah ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

[Twisted-Python] txtorcon 0.15.0

2016-07-26 Thread meejah
t readable). * both TorState and TorConfig now have a ``.from_protocol`` class-method. * spec-compliant string-un-escaping from https://github.com/coffeemakr * fix https://github.com/meejah/txtorcon/issues/176 You can download the release from PyPI or GitHub (or of course "pip inst

Re: [Twisted-Python] qt5 and twisted, reactor already installed, python 2.x

2016-06-30 Thread meejah
hich assigns a "self.scheduler" which is usually just gotten by importing from twisted.internet.reactor -- *but* critically, the tests can re-assign this: https://github.com/meejah/txtorcon/blob/master/test/test_addrmap.py#L109 Ideally, this would have been passed-in via the __init

Re: [Twisted-Python] overview: new review queue venue

2016-05-22 Thread meejah
the "open PRs" list (hopefully!) shorter. -- meejah ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] overview: new review queue venue

2016-05-22 Thread meejah
nderstanding of the setup is that the buildbot slaves don't run random PR code, only post-merged-to-master code). -- meejah ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] waiting on any deferred in a list?

2016-04-24 Thread meejah
async(item) d.addCallback(process_an_item, item) defs.append(d) yield DeferredList(defs) Error-handling left as an exercise for the reader :) -- meejah ___ Twisted-Python mailing list Twisted-Python@twistedmatri

Re: [Twisted-Python] The role of twisted.internet._sslverify.IOpenSSLTrustRoot

2015-12-25 Thread meejah
for multiTrust() just check that they get an IOpenSSLTrustRoot implementation back or do ... something else? That is, currently I'm just confirming this via asserting IOpenSSLTrustRoot.providedBy(theReturnValue) or so in the tests. Of course, this means I'm importing the private interface into the tes

Re: [Twisted-Python] ssl APIs

2015-12-18 Thread meejah
in the near term but haven't started any direct work on 8151. I'm usually idling in OFTC and Freenode if anyone has feedback or ideas or wants to help :) Cheers, -- meejah ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http

[Twisted-Python] ssl APIs

2015-12-03 Thread meejah
e only way I can see is to construct one of those from a list of OpenSSL certificate instances and pass that as trustRoot= Thanks for any hints, -- meejah ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] txtorcon 0.14.0

2015-10-25 Thread meejah
meejah <mee...@meejah.ca> writes: > * add .is_built Deferred to txtorcon.Circuit that gets callback()'d > when the circuit becomes BUILT This had a bug in it. I give you 0.14.1: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 There was a subtle bug with the Circuit.is_built AP

Re: [Twisted-Python] txtorcon 0.14.0

2015-09-28 Thread meejah
ticmethods to directly create TCPHiddenServiceEndpoints attached to existing or launched Tor instances. If anyone would like to help, that'd be great; the enhancement ticket for the "tor:..." endpoints is: https://github.com/meejah/txtorcon/issues/128 Anything unclear can be discusse

[Twisted-Python] txtorcon 0.14.0

2015-09-27 Thread meejah
n/0.14.0 https://github.com/meejah/txtorcon/releases/tag/v0.14.0 Releases are also available from the hidden service: http://timaq4ygg2iegci7.onion/txtorcon-0.14.0.tar.gz http://timaq4ygg2iegci7.onion/txtorcon-0.14.0.tar.gz.asc http://timaq4ygg2iegci7.onion/txtorcon-0.14.0-py2-none-any.

[Twisted-Python] txaio: write code for both asyncio + twisted

2015-04-03 Thread meejah
, callback, errback) # ... txaio.resolve(f0, value) txaio.reject(f1, RuntimeError(it failed)) -- meejah ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

[Twisted-Python] ANN: txtorcon 0.12.0

2015-02-03 Thread meejah
or GitHub (or of course pip install txtorcon): https://pypi.python.org/pypi/txtorcon/0.12.0 https://github.com/meejah/txtorcon/releases/tag/v0.12.0 Releases are also available from the hidden service: http://timaq4ygg2iegci7.onion/txtorcon-0.12.0.tar.gz http://timaq4ygg2iegci7.onion/txtorcon

Re: [Twisted-Python] the repository metadata of inevitability

2015-01-23 Thread meejah
correctly. Of course, Twisted's setup is likely considerably more complex than mine was :) Cheers, meejah ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Re: [Twisted-Python] the repository metadata of inevitability

2015-01-23 Thread meejah
to find it out :). Okay, I'll take a look. -- meejah ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

[Twisted-Python] ANN: txtorcon 0.10.1

2014-07-20 Thread meejah
/0.10.1 https://github.com/meejah/txtorcon/releases/tag/v0.10.1 sha256sum reports: 33f04523329b14accb2054b81c5da887c28b402c797ba895dc1ee58824e107f1 txtorcon-0.10.1-py2-none-any.whl 7a6e8fab71fd05c223d866b60b998cf308661ef1fc87d94e06c3b51f4ada4a6a txtorcon-0.10.1.tar.gz thanks, meejah -BEGIN

[Twisted-Python] ANN: txtorcon 0.10.0

2014-06-15 Thread meejah
can download the release from PyPI or GitHub (or of course use pip install txtorcon): https://pypi.python.org/pypi/txtorcon/0.10.0 https://github.com/meejah/txtorcon/releases/tag/v0.10.0 sha256sum reports: 910ff3216035de0a779cfc167c0545266ff1f26687b163fc4655f298aca52d74 txtorcon-0.10.0

Re: [Twisted-Python] tor hidden service endpoint parser returns a deferred

2014-05-31 Thread meejah
the code is in endpoints.py if anyone is interested, here: https://github.com/meejah/txtorcon/blob/master/txtorcon/endpoints.py#L117 If you do look, I'd certainly appreciate any comments. (The tests are in test/test_endpoints.py) Anyway, one really cool thing now that txtorcon supports endpoints

Re: [Twisted-Python] tor hidden service endpoint parser returns a deferred

2014-05-02 Thread meejah
-feature, though :) Another point for this is that someday tor will have UDP support... thanks, meejah ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

[Twisted-Python] txtorcon v0.9.2

2014-04-24 Thread meejah
enriquefynn improving tor binary locating * strip OK lines in TorControlProtocol (https://github.com/meejah/txtorcon/issues/8) * use TERM not KILL when Tor launch times out (https://github.com/meejah/txtorcon/pull/68) from hellais * Unit-test coverage now at 98% sha256 sums for the distribution

Re: [Twisted-Python] github, again

2013-06-03 Thread meejah
github in this respect soon: https://github.com/gitlabhq/gitlabhq/pull/3597 Cheers, meejah ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

[Twisted-Python] txtorcon 0.8.0

2013-05-12 Thread meejah
authenticated sessions now use a password callback (that may return a Deferred); . fixes for AddrMap in case Tor ticket #8596 is implemented; Code and built documentation may be obtained: git clone git://github.com/meejah/txtorcon.git https://github.com/meejah/txtorcon https

[Twisted-Python] twisted logo use?

2012-12-09 Thread meejah
thanks, meejah -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Processed by Mailcrypt 3.5.8 http://mailcrypt.sourceforge.net/ iQEcBAEBAgAGBQJQxO+XAAoJEMJgKAMSgGmnRzcH/1Pmo9OwQ4OTDGmTHvPARqER 2FH4noSwgULpNclIB58QEKlkbfCA1yFpZwMUj2dKtnGEz8kxwl1R3TPnjisSRs1f 5qXIaGg1uKAlCW0re2

[Twisted-Python] txtorcon 0.6

2012-10-15 Thread meejah
URIs for ReadTheDocs Code and built documentation may be obtained: https://github.com/meejah/txtorcon https://txtorcon.readthedocs.org/en/latest/index.html git clone git://github.com/meejah/txtorcon.git You may also install it directly: pip install txtorcon easy_install txtorcon

[Twisted-Python] txtorcon 0.2

2012-06-01 Thread meejah
to circuit_failure_rates.py example to make it actually-useful; . include built documentation + sources in tarball; . include tests in tarball; . improved logging; . a few patches from mmaker and kneufeld docs: http://readthedocs.org/docs/txtorcon/en/latest/ code: https://github.com/meejah/txtorcon https