Skip to Content
Building RESTful Python Web Services
book

Building RESTful Python Web Services

by Gastón C. Hillar
October 2016
Intermediate to advanced
418 pages
9h 52m
English
Packt Publishing
Content preview from Building RESTful Python Web Services

Test your knowledge

  1. The concurrent.futures.ThreadPoolExecutor class provides us:
    1. A high-level interface for synchronously executing callables.
    2. A high-level interface for asynchronously executing callables.
    3. A high-level interface for composing HTTP requests.

  2. The @tornado.concurrent.run_on_executor decorator allows us to:
    1. Run an asynchronous method synchronously on an executor.
    2. Run an asynchronous method on an executor without generating a Future.
    3. Run a synchronous method asynchronously on an executor.

  3. The recommended way to write asynchronous code in Tornado is to use:
    1. Coroutines.
    2. Chained callbacks.
    3. Subroutines.

  4. The tornado.Testing.AsyncHTTPTestCase class represents:
    1. A test case that starts up a Flask HTTP Server.
    2. A test case that starts up a Tornado HTTP ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On RESTful Python Web Services - Second Edition

Hands-On RESTful Python Web Services - Second Edition

Gastón C. Hillar

Publisher Resources

ISBN: 9781786462251Supplemental Content