Back to Prefect

__init__

docs/v3/api-ref/python/prefect-client-__init__.mdx

3.6.30.dev3512 B
Original Source

prefect.client

Asynchronous client implementation for communicating with the Prefect REST API.

Explore the client by communicating with an in-memory webserver - no setup required:

<div class="termy">

$ # start python REPL with native await functionality
$ python -m asyncio
from prefect.client.orchestration import get_client
async with get_client() as client:
    response = await client.hello()
    print(response.json())
šŸ‘‹

</div>