Skip to main content

HTTP REST Client based on aiohttp with dynamic url building

Project description

https://badge.fury.io/py/async-mgun.svg https://travis-ci.org/maximdanilchenko/async-mgun.svg https://codecov.io/gh/maximdanilchenko/async-mgun/branch/master/graph/badge.svg

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


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

If you're not sure about the file name format, learn more about wheel file names.

async_mgun-0.1.3-py2-none-any.whl (4.8 kB view details)

Uploaded Python 2

File details

Details for the file async_mgun-0.1.3-py2-none-any.whl.

File metadata

File hashes

Hashes for async_mgun-0.1.3-py2-none-any.whl
Algorithm Hash digest
SHA256 519f8445cb99c47a08ab409fb7ab903a4681fab7a21592447b38c627ee6a7943
MD5 4c6198235262f1fb4c95051a49d43d62
BLAKE2b-256 d74bb9d1076d9f1d5f08929ffb16344fe0a597dac1a39cd7a3fb64fe13aec641

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page