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

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page