FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

thoufer/python-http-client: HTTP client for RESTful APIs, simplified for Python · GitHub

 
 

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

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages


Back | FazBrowse Home | New Git URL