Code examples from my toptal engineering blog article
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
README.md
async_imgur.py
download.py
multiprocessing_imgur.py
processpool_thumbnails.py
requirements.txt
rq_imgur.py
single.py
single_thumbnails.py
threading_imgur.py
threadpool_imgur.py

README.md

Python concurrency

This is the code used as examples in the post that I wrote for the Toptal Engineering Blog.

Running the examples

The examples have all been tested under Python 3.6.4 running on OS X. They should work on other operating systems and Python 3.5+, but I haven't tested it everywhere.

  1. Get an Imgur API Key
  2. Install dependencies with pip install -r requirements.txt
  3. Run an example IMGUR_CLIENT_ID=your_client_id threading_imgur.py
    1. For the rq_imgur.py example you will also need to be running a redis server