HTTP REST Client based on aiohttp with dynamic url building
Project description
HTTP REST Client based on aiohttp with dynamic url building. Useful for microservices non-blocking communication
Quickstart
from mgun import HttpClient
import asyncio
client = HttpClient('https://httpbin.org')
async def request():
resp = await client.anything.api.users[23].address.get({'q': '12'})
print(resp.status) # 200
print(resp.data['url']) # https://httpbin.org/anything/api/users/23/address?q=12
loop = asyncio.get_event_loop()
loop.run_until_complete(asyncio.wait([request()]))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file async_mgun-0.1.3-py2-none-any.whl
.
File metadata
- Download URL: async_mgun-0.1.3-py2-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 519f8445cb99c47a08ab409fb7ab903a4681fab7a21592447b38c627ee6a7943 |
|
MD5 | 4c6198235262f1fb4c95051a49d43d62 |
|
BLAKE2b-256 | d74bb9d1076d9f1d5f08929ffb16344fe0a597dac1a39cd7a3fb64fe13aec641 |