Skip to content

tr11/python-http-client

 
 

Repository files navigation

Installation

Prerequisites

  • Python version 3.6

Quick Start

Here is a quick example:

GET /your/api/{param}/call

async def test():
    import python_http_client
    global_headers = {"Authorization": "Basic XXXXXXX"}
    client = Client(host='base_url', request_headers=global_headers)
    response = await client.your.api._(param).call.get()
    print(response.status_code)
    print(response.headers)
    print(response.body)

import asyncio
loop = asyncio.get_event_loop()
loop.run_until_complete(go())

About

HTTP client for RESTful APIs, simplified for Python

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 99.3%
  • Shell 0.7%