Re: [Twisted-Python] composition VS. inheritance

2020-06-30 Thread meejah
latively 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-p

[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 preper

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-Python] txtorcon 19.1.0

2019-09-10 Thread meejah
decorators 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/

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

2019-06-24 Thread meejah
eed) 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
uses 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 _

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

2019-05-24 Thread meejah
WAMP protocol (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
>> 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 rou

[Twisted-Python] txtorcon 19.0.0

2019-01-15 Thread meejah
rcuit 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/

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

2018-11-05 Thread meejah
re's *some* examples in the Autobahn 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.

[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
` via `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://timaq4y

[Twisted-Python] txtorcon 18.1.0

2018-09-26 Thread meejah
fying 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
ized 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 int

[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
pport listening on Unix 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 R

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_authen

[Twisted-Python] txtorcon 0.20.0

2018-02-22 Thread meejah
ers always 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/v

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

2017-07-17 Thread meejah
hoe-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 #tahoe-lafs on Freenode IRC if you'd like to discuss. -

[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
wnload 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.1

2017-04-26 Thread meejah
19.1 https://github.com/meejah/txtorcon/releases/tag/v0.19.1 Releases are also available from the hidden service: http://timaq4ygg2iegci7.onion/txtorcon-0.19.1.tar.gz http://timaq4ygg2iegci7.onion/txtorcon-0.19.1.tar.gz.asc You can verify the sha256sum of both by running the following 4 lines in a shell wh

[Twisted-Python] txtorcon 0.19.0

2017-04-20 Thread meejah
of the documentation, 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: t

Re: [Twisted-Python] txtorcon versioning

2017-04-13 Thread meejah
;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
Existing 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
xing 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... -- meejah _

[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
ty API 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 hidd

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

2016-10-03 Thread meejah
or). 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

Re: [Twisted-Python] Endpoint composition syntax

2016-09-06 Thread meejah
's already used - shouldn't already be in popular protocols/options (e.g. anything valid in a URI?) In some ways having a two-character separator could be really nice, as it's far less likely to collide with things? I like that the intent of "->" is also reasonably o

[Twisted-Python] txtorcon 0.16.1

2016-08-31 Thread meejah
s 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 ar

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
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

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

2016-07-29 Thread meejah
ers) which methods are (or might-be) async. So, try a signature like "def terrific_method(reactor):" instead. Now when you're writing tests, you can do this: fake_reactor = Clock() d = terrific_method(fake_reactor) fake_reactor.advance(

[Twisted-Python] txtorcon 0.15.0

2016-07-26 Thread meejah
.g. because the file isn'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 GitHu

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

2016-06-30 Thread meejah
f.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__ but, *shruggy-face*. The point be

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

2016-05-22 Thread meejah
27; workflows like Twisted's) and keeps 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
etup 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
d = something_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-Pyth

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

2015-12-25 Thread meejah
n 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

Re: [Twisted-Python] ssl APIs

2015-12-18 Thread meejah
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@twistedmatri

[Twisted-Python] ssl APIs

2015-12-03 Thread meejah
icate as trustRoot. The 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

[Twisted-Python] txtorcon 0.14.2

2015-12-02 Thread meejah
https://pypi.python.org/pypi/txtorcon/0.14.2 https://github.com/meejah/txtorcon/releases/tag/v0.14.2 Releases are also available from the hidden service: http://timaq4ygg2iegci7.onion/txtorcon-0.14.2.tar.gz http://timaq4ygg2iegci7.onion/txtorcon-0.14.2.tar.gz.asc http://timaq4ygg2ie

Re: [Twisted-Python] txtorcon 0.14.0

2015-10-25 Thread meejah
meejah 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 API introduce

Re: [Twisted-Python] txtorcon 0.14.0

2015-09-28 Thread meejah
PHiddenServiceEndpoints 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 discussed there. Note that c

[Twisted-Python] txtorcon 0.14.0

2015-09-26 Thread meejah
hon.org/pypi/txtorcon/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-

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

2015-04-03 Thread meejah
txaio.add_callbacks(f0, callback, errback) # either can be None txaio.add_callbacks(f1, 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
from "sammyshj" You can download the release from PyPI 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

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

2015-01-23 Thread meejah
ttps://github.com/twisted-infra/twisted-buildbot-configuration/> is > available for your perusal if you want 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

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

2015-01-23 Thread meejah
hash if I recall 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

[Twisted-Python] ANN: txtorcon 0.10.1

2014-07-20 Thread meejah
i/txtorcon/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 than

[Twisted-Python] ANN: txtorcon 0.10.0

2014-06-15 Thread meejah
/howtos.html#endpoints-enable-tor-with-any-twisted-service You 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: 910f

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

2014-05-31 Thread meejah
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 endp

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

2014-05-02 Thread meejah
p etc in connect(). Perhaps "looking similar" is a non-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
from 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 dist

Re: [Twisted-Python] github, again

2013-06-08 Thread meejah
s... The rebase way of squashing does re-write the commits. For fun times, look into "git rebase --interactive" (or as this guy calls it, ``a bit like git commit --amend hopped up on acid and holding a chainsaw''): http://tomayko.com/writings/the-thing-ab

Re: [Twisted-Python] github, again

2013-06-03 Thread meejah
the latest stuff, however, so it might work like 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-11 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
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Is this an acceptable (ab)use of the twisted logo? I can't find anything obvious on twistedmatrix.com about this sort of thing. <> More information about txtorcon is at https://txtorcon.readthedocs.org thanks, meejah -BEGIN PG

[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
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