Re: [Twisted-Python] Release blocker: Use latest pydoctor release ?

2021-03-03 Thread Maarten ter Huurne
On Sunday, 28 February 2021 23:04:49 CET Craig Rodrigues wrote: > With respect to API docs, I am not as familiar with the whole process, > with how they are generated > and what are doing with readthedocs vs. docs on twistedmatrix.com. > API docs are generated and don't live in the source tree. >

Re: [Twisted-Python] Release blocker: Use latest pydoctor release ?

2021-02-28 Thread Maarten ter Huurne
.html Those are good points, but I meant API docs specifically and I don't think there should be any overlap between the wiki and the API docs. If I'm mistaken, please let me know. Bye, Maarten > -- > Craig > > > On Sunday, February 28, 2021, Maarten ter Huu

Re: [Twisted-Python] Release blocker: Use latest pydoctor release ?

2021-02-28 Thread Maarten ter Huurne
On Sunday, 28 February 2021 19:26:16 CET I wrote: > I'll try to get a pydoctor release out today from the current master > branch. While the release publishing is automated, writing the release > notes is not, but that shouldn't take too long. pydoctor 21.2.0 is now available on PyPI:

Re: [Twisted-Python] Release blocker: Use latest pydoctor release ?

2021-02-28 Thread Maarten ter Huurne
On Sunday, 28 February 2021 08:20:22 CET Craig Rodrigues wrote: > Thanks for the clarification. > > You have provided a lot of useful details. There are a lot of > interconnected pieces, with > multiple people working on different things. > > For now, I am going to proceed to finish the release

[Twisted-Python] pydoctor 20.7.0

2020-07-03 Thread Maarten ter Huurne
Hi all, I'm happy to announce that a new release of pydoctor, the documentation extractor used by Twisted, is available on PyPI. https://pypi.org/project/pydoctor/ Thanks to everyone who contributed with patches and reviews! Major changes in this release: - Python 3 support - Type

Re: [Twisted-Python] mypy integrated with CI for twisted

2020-06-25 Thread Maarten ter Huurne
On Thursday, 25 June 2020 14:18:04 CEST Adi Roiban wrote: > On Wed, 24 Jun 2020 at 13:48, Jean-Paul Calderone > > wrote: > > On Wed, Jun 24, 2020 at 12:44 AM Glyph wrote: > >> On Jun 23, 2020, at 5:34 AM, Adi Roiban wrote: > >> > >> Hi Craig, > >> > >> On Tue, 23 Jun 2020 at 00:36, Craig

Re: [Twisted-Python] Running tests with monkeytype

2020-06-20 Thread Maarten ter Huurne
On Saturday, 20 June 2020 06:51:21 CEST Moshe Zadka wrote: > Hi all, > > If you want to get a first rough draft of types for mypy, has anyone > tried running the tests under monkeytype[1]? > > Moshe Z. > > [1] https://monkeytype.readthedocs.io/en/stable/ That would be worth running in any

Re: [Twisted-Python] Question about FileDescriptor.loseConnection() signature found by mypy

2020-06-16 Thread Maarten ter Huurne
On Tuesday, 16 June 2020 10:51:21 CEST Glyph wrote: > > On Jun 15, 2020, at 8:43 PM, Craig Rodrigues > > wrote: > > > > In twisted.internet.abstract.FileDescriptor.loseConnection, the > > loseConnection method> > > is defined like: > > def loseConnection(self,

Re: [Twisted-Python] Inheriting DatagramProtocol, which is an old-style class

2020-02-07 Thread Maarten ter Huurne
On Saturday, 8 February 2020 01:50:04 CET Go Luhng wrote: > I am creating a child class > `Child(twisted.internet.protocol.DatagramProtocol)` to implement a > custom UDP multicast protocol. > > I need to add an `__init__()` to `Child`, but as part of that I need > to call `super()` which is

Re: [Twisted-Python] sharing a dict between child processes

2019-11-06 Thread Maarten ter Huurne
On Wednesday, 6 November 2019 07:19:56 CET Waqar Khan wrote: > Hi, > So, I am writing a twisted server. This server spawn multiple child > processes using reactor spawnProcess that initializes a process > protocol. > > Now, each of the childprocess receives some REST requests. Each > process has

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

2019-09-26 Thread Maarten ter Huurne
On Friday, 27 September 2019 05:48:35 CEST Waqar Khan wrote: > Hi Maarten, >I think you have hit the problem in the head. I do think this is > feasible as I have observed that as size of cache increases, things do > get better which might support your theory. > > Is there a simple example you

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

2019-09-26 Thread Maarten ter Huurne
On Friday, 27 September 2019 04:38:46 CEST Waqar Khan wrote: > Hi, > What's a good way to use a simple dictionary as a cache in twisted > framework? > Basically, I have this callback chain where I ultimately make a rest > call (in non-blocking way using treq) to fetch some data. But before > I

Re: [Twisted-Python] Need some enlightenment on using web client properly, or maybe nudge a bug to get fixed

2019-07-11 Thread Maarten ter Huurne
On Thursday, 11 July 2019 12:00:33 CEST Jarosław Fedewicz wrote: > Is there a neat way to list all pyOpenSSL objects in a running Twisted > program? Or maybe TCPConnection objects, since those might hook to > the zope.interface machinery? Not specific to Twisted, but you can get a list of all

Re: [Twisted-Python] finding out what's blocking the reactor

2019-05-15 Thread Maarten ter Huurne
On Wednesday, 15 May 2019 13:11:29 CEST Scott, Barry wrote: > In my experience gc is low level noise only. > Our work load is very heavy and its never been an issue. It depends entirely on how many objects you have. With a few GBs worth of relatively small objects, a full garbage collection

Re: [Twisted-Python] finding out what's blocking the reactor

2019-05-15 Thread Maarten ter Huurne
On Wednesday, 15 May 2019 07:30:54 CEST Chris Withers wrote: > On 14/05/2019 22:14, Werner Thie wrote: > > Hi all > > > > with periods of seemingly no activity the gc comes to mind. > > Hmm, gc blocking the process is an interesting thought, what evidence > would you see with gdb, etc, to show

Re: [Twisted-Python] Drop support for Python 3.4?

2019-03-27 Thread Maarten ter Huurne
On Wednesday, 27 March 2019 06:04:17 CET Glyph wrote: > > On Mar 26, 2019, at 7:59 PM, Craig Rodrigues > > wrote: > > > > What do people think of dropping Twisted support for Python 3.4? > > > > According to https://devguide.python.org/#status-of-python-branches > >

Re: [Twisted-Python] A Proposal for reducing the burden of developing on Twisted by dropping Python 2 support

2019-03-25 Thread Maarten ter Huurne
On Monday, 25 March 2019 11:15:22 CET Amber Brown wrote: > One of my rationales is that from some analysis of PyPI download > statistics, the vast majority of Python 2 users are using old versions > of Twisted, while nearly all our Python 3 users are on the latest > version. As such, I believe

Re: [Twisted-Python] Thread Consumption Problem in Daemon?

2018-11-19 Thread Maarten ter Huurne
On maandag 19 november 2018 12:40:20 CET Darren Govoni wrote: > Hi, > I am using twisted to run my Flask app via WSGI like so. > > twistd --pidfile $PORT/pidfile -l $PORT/logfile -n web --port > tcp:$PORT --wsgi my.app > > Naturally, I have functions representing routes that enter and exit >

Re: [Twisted-Python] Using twistd with -c option causes permission error

2018-08-27 Thread Maarten ter Huurne
On Tuesday, August 28, 2018 2:10:22 AM CEST Richard Shea wrote: > I'm trying to use the -c option of twistd like this : > > twistd web --wsgi bar.app -c foo.cer -k privkey.pem --https=4433 > > I'm pointing it at a cert with perms like this "-rw-r--r-- 1 root root" but > twistd complains about a

Re: [Twisted-Python] Deferred getChild (#3621)

2011-05-30 Thread Maarten ter Huurne
On Monday 30 May 2011, Laurens Van Houtven wrote: My use case for this is txYoga https://github.com/lvh/txyoga. Long story short, it lets you write REST-y webapps. So, you could have something like: http://www.twistedmatrix.com/labs/glyph In local jargon, labs is a collection, and glyph

Re: [Twisted-Python] CentOS error installing

2010-08-18 Thread Maarten ter Huurne
On Wednesday 18 August 2010, Landreville wrote: Hello, I'm running CentOS 5.5 64bit and when I tried to install twisted using easy_install I get this error message: Running Twisted-10.1.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-tgKRDq/Twisted-10.1.0/egg-dist-tmp-wd-5Ri

Re: [Twisted-Python] Punching a firewall with Twisted?

2010-06-17 Thread Maarten ter Huurne
On Thursday 17 June 2010, Stefan Reich wrote: Yeah, I found that too... it looks quite interesting, but as you say, it is UDP-based. I know that there is a working TCP-solution. As I said, Deluge does it, and for example, the original Bittorrent client does it too. Maybe it uses UPNP to tell

Re: [Twisted-Python] Twisted easy bugs, and other thoughts about getting people involved in Twisted

2010-03-17 Thread Maarten ter Huurne
On Wednesday 17 March 2010, Asheesh Laroia wrote: Then it actually scrapes the Trac-rendered HTML because the CSV export (as far as I know) can't tell us answers to questions like, How many people were active on this bug? I find that's a useful thing to show off. Not sure if it helps in your

Re: [Twisted-Python] Escaping variable names

2010-03-05 Thread Maarten ter Huurne
On Friday 05 March 2010, Kamil Wasilewski wrote: server.doGetCountries(**{ 'country-code': COUNTRYID, 'webapi-key': WEBAPIKEY }) The above gives a syntax error... What kind of syntax error? I tested this approached on the interactive Python shell and it worked

Re: [Twisted-Python] Does the default session expiry work?

2010-03-02 Thread Maarten ter Huurne
On Tuesday 02 March 2010, markscottwri...@gmail.com wrote: I'm using twisted 8.2 and (after reading glyph's latest Twisted in 60 seconds entry), I've realized that my sessions never expire. I never added any session expiration code, but I thought that the default code expires after 15

Re: [Twisted-Python] debugging a memory leak

2010-02-22 Thread Maarten ter Huurne
On Tuesday 23 February 2010, Alec Matusis wrote: When I start the process, both python object sizes and their counts rise proportionally to the numbers of reconnected clients, and then they stabilize after all clients have reconnected. At that moment, the external RSS process size is about

Re: [Twisted-Python] Sending jpeg data over TCP/IP

2010-02-13 Thread Maarten ter Huurne
On Sunday 14 February 2010, Alexandre Quessy wrote: This said, sending them using a programmer's solution - not a sysadmin solution - would be closer to my own skills, so I am interested in knowing if this could be suitable. I think, though, that it would be faster to use a transfert protocol

Re: [Twisted-Python] Twisted webserver performance issues

2009-11-08 Thread Maarten ter Huurne
On Sunday 08 November 2009, James Y Knight wrote: When I last looked into the performance issues, I found that sometimes trac appears to block for long periods of time without releasing the GIL. That seems to be the core of the performance issues, currently. When it's responding normally,

Re: [Twisted-Python] Can browse, but getPage() fails on localhost address

2009-10-29 Thread Maarten ter Huurne
On Thursday 29 October 2009, Steve Steiner (listsin) wrote: I can browse to either URL in any browser, getPage() works fine on the external address, 404's on the localhost address. Does the same thing happen with 127.0.0.1 instead of localhost in the URL? I once encountered a nasty setup

Re: [Twisted-Python] Gridspy - a new project using Twisted

2009-10-26 Thread Maarten ter Huurne
On Monday 26 October 2009, Tom Leys wrote: Gridspy provides you with an interactive view of resource usage in your building. It gives you hard data on your consumption patterns and helps you to make informed decisions. How can other people get their own Gridspy? Do you plan to release it as a

Re: [Twisted-Python] inlineCallbacksDecorator

2009-06-06 Thread Maarten ter Huurne
On Sunday 07 June 2009, Terry Jones wrote: So I wrote a decorator specifically for inlineCallbacks decorated functions: from twisted.internet import defer def inlineCallbacksDecorator(callback, errback=defer.passthru): def wrap(f): def wrapper(*args, **kw):

Re: [Twisted-Python] high server loads on FreeBSD - does kqueue reactor help?

2009-01-25 Thread Maarten ter Huurne
On Tuesday 20 January 2009, Werner Thie wrote: With a four core, four twisted http server processes (nevow/athena on top), dual 100 MBps interfaces, all four cores showing CPU loads of 50% plus, I observe the following degradation in the network traffic with tcpdump: - 'TCP checksum

Re: [Twisted-Python] monitoring net resources with twisted

2008-12-04 Thread Maarten ter Huurne
On Thursday 04 December 2008, Sidharth Jain wrote: I want to track a set network resources like Linux servers,hosts for network connectivity , and want to keep track of their activeness and possible inactivity due to network outage or any other reason. The hosts/serves I'm trying to monitor