Categories News

Python 3 – large numbers of tasks with limited concurrency

May 31, 2017 [Performance, Programming, Python, Tech] Series: asyncio basics, large numbers in parallel, parallel HTTP requests, adding to stdlib I am interested in running large numbers of tasks in parallel, so I need something like asyncio.as_completed, but taking an iterable instead of a list, and with a…

Read More
Categories News

Python – printing UTC dates in ISO8601 format with time zone

June 09, 2017 [Programming, Python, Tech] By default, when you make a UTC date from a Unix timestamp in Python and print it in ISO format, it has no time zone: $ python3 >>> from datetime import datetime >>> datetime.utcfromtimestamp(1496998804).isoformat() '2017-06-09T09:00:04' Whenever you talk about a datetime, I…

Read More
Categories News

Making 100 million requests with Python aiohttp

June 12, 2017 [Performance, Programming, Python, Tech] Series: asyncio basics, large numbers in parallel, parallel HTTP requests, adding to stdlib Update: slides of a talk I gave at the London Python Meetup on this: Talk slides: Making 100 million HTTP requests with Python aiohttp. Update: see how Cristian…

Read More
Categories News

"git what" is "git status" on steroids

For when git status is not enough, I wrote git what: If you often have a few branches on the go, it could be useful. PakarPBN A Private Blog Network (PBN) is a collection of websites that are controlled by a single individual or organization and used primarily…

Read More
Categories News

Adding a concurrency limit to Python’s asyncio.as_completed

June 27, 2017 [Performance, Programming, Programming Languages, Python] Series: asyncio basics, large numbers in parallel, parallel HTTP requests, adding to stdlib In the previous post I demonstrated how the limited_as_completed method allows us to run a very large number of tasks using concurrency, but limiting the number of…

Read More
Categories News

Running a virtualenv with a custom-built Python

June 27, 2017 [Programming, Python, Tech] For my attempt to improve the asyncio.as_completed Python standard library function I needed to build a local copy of cpython (the Python interpreter). To test it, I needed the aiohttp module, which is not part of the standard library, so the easiest…

Read More
Categories News

Adding balls to our JezzBall clone

Last time we started a JezzBall clone by allowing you to move a cursor around the screen and draw lines across the playing area. This time, we add balls bouncing around. Will we get far enough for them to collide with the walls? The code is at Follow…

Read More