eggfetch-python 0.2.2

Python sync and asyncio bindings for the eggfetch HTTP engine (Rust core via PyO3; Python users install from PyPI)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"""Downstream-style smoke fixture for the intentionally public facades."""

from eggfetch.compat.httpx import Client, Response
from eggfetch.compat.httpx2 import AsyncClient


def sync_facade() -> Response:
    with Client() as client:
        return client.get("http://127.0.0.1/")


async def async_facade() -> None:
    async with AsyncClient() as client:
        response = await client.get("http://127.0.0.1/")
        assert response.status_code >= 0