Skip to main content
https://travis-ci.org/mosquito/rest-client.svg Latest Version https://img.shields.io/pypi/wheel/rest-client.svg https://img.shields.io/pypi/pyversions/rest-client.svg https://img.shields.io/pypi/l/rest-client.svg

RESTful Client for tornado with support cookies.

Example:

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

io_loop = IOLoop.current()

@coroutine
def repo_list():
    client = RESTClient(headers={'User-Agent': 'curl/7.43.0'})
    # check api
    yield client.get('https://api.github.com/users/octocat/orgs')

    response = yield client.get('https://api.github.com/repos/vmg/redcarpet/issues?state=closed')
    data = sum(map(lambda x: x.comments, response.body))
    print('Total comments: {0}'.format(data))

exit(io_loop.run_sync(repo_list))

Download files

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

Source Distribution

rest-client-0.3.8.tar.gz (4.4 kB view details)

Uploaded Source

File details

Details for the file rest-client-0.3.8.tar.gz.

File metadata

  • Download URL: rest-client-0.3.8.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for rest-client-0.3.8.tar.gz
Algorithm Hash digest
SHA256 48272968da18047fef84dc3317a31a6bff16195ab44588c3aabbd4dccc6e3c5f
MD5 7cde8e93242bcc9b9200998318a3a940
BLAKE2b-256 08dcef96cdb16bd9eeab57ed73658b2d28716d50e1180ccb31cfff3c98de4b3d

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.8 This release

1 file

0.3.7

1 file

0.3.6

1 file

0.3.5

1 file

0.3.4

1 file

0.3.3

1 file

0.3.2

1 file

0.3.1

1 file

0.3.0

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page