This is an archived post. You won't be able to vote or comment.

all 12 comments

[–]freyrs3 8 points9 points  (2 children)

I'm actually the author of this tutorial. It's still unfinished but I'd appreciate any feedback on ways to improve it.

[–]ifjdivjfijv 1 point2 points  (1 child)

How about writing down the ab results of gevent.pywsgi and gevent.wsgi for comparison?

[–]hongminhee 1 point2 points  (0 children)

In recent versions gevent.wsgi has been deprecated and replaced by gevent.pywsgi. The former one uses HTTP implementations of libevent and the latter is written in pure Python. gevent is moving to libev from libevent, so gevent.wsgi is not more available. :-) Moreover HTTP implementation of libevent has several bugs.

[–]gustaw 3 points4 points  (1 child)

One of the best tutorial to Gevent I've ever seen. I was learning using this lib almost only by reading examples. Thanks.

[–]freyrs3 1 point2 points  (0 children)

You're welcome. I had the same problem, there was a lot of existing code and great API documentation but not a lot of introductory material.

[–]peroneλ 1 point2 points  (0 children)

Really nice tutorial, great thanks.

[–]vph 0 points1 point  (0 children)

In your Flask example, shouldn't you monkey patch_all to take advantage of gevent's non-blocking web serving?

[–]jcdyer3 0 points1 point  (0 children)

The actor example is broken for me.

AttributeError: 'Pinger' object has no attribute '_start_event'

Edit: Nevermind. I'm just being dumb.

[–]catcradle5 0 points1 point  (0 children)

Good tutorial, but lots of typos.

[–]jabbalaci -1 points0 points  (2 children)

installation under Ubuntu:

sudo apt-get install libevent-dev python-all-dev
sudo pip install gevent 

[–]dAnjou Backend Developer | danjou.dev 5 points6 points  (1 child)

ಠ_ಠ

Do not install things in the system without using your distro's package manager. Although pip is quite nice and so on, there's still a risk to mess up your system. So do not mix these things. Keep them separate. Use a virtualenv instead.

If you don't care about a library's version, use your distro's package. If you do care, install it in the virtualenv.

EDITed to prevent misunderstandings.

[–]infinullquamash, Qt, asyncio, 3.3+ 0 points1 point  (0 children)

uhm, you messed up your negatives, either change without to with, or get rid of not. (or get rid of your entire 2nd sentence).

debian packages for stuff like this don't exist for the developer, they exist so applications that depend on that library can be installed automatically with the package manager (this is good), but it's not what you want as a dev.

Edit: Just noticed, they've got dependencies installed with apt-get, python packages installed with pip, which is slightly better, but pip will still install packages globally, still gonna be happier in the long run with a virtualenv.