Skip to main content

RESTful Client for tornado

Project description Latest Version

RESTful Client for tornado with support cookies.


# encoding: utf-8
from tornado.ioloop import IOLoop
from tornado.gen import coroutine, Return
from rest_client.async import RESTClient

io_loop = IOLoop.current()

def repo_list():
    client = RESTClient(headers={'User-Agent': 'curl/7.43.0'})
    # check api
    yield client.get('')

    response = yield client.get('')
    data = sum(map(lambda x: x.comments, response.body))
    print('Total comments: {0}'.format(data))


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for rest-client, version 0.3.8
Filename, size File type Python version Upload date Hashes
Filename, size rest-client-0.3.8.tar.gz (4.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page