prefect-client
Workflow orchestration and management.
What it is and what it does
prefect-client is a stripped-down distribution of Prefect designed to run in resource-constrained environments. It removes the CLI, server components, and related dependencies, keeping only what's needed to communicate with a remote Prefect server or Prefect Cloud. You use it to trigger deployments, emit events, and query the Prefect API from lightweight applications—particularly useful in ephemeral compute like Lambda functions where installation size and startup time matter.
The package shares the same API surface as the full Prefect library for client-side operations, so existing code often works unchanged. However, it explicitly omits server-oriented functionality and CLI tools; attempting to use those will fail. It requires Python 3.10 or later and depends on 42 runtime packages including FastAPI, Pydantic, httpx, and OpenTelemetry for observability.
Use it for:
- Trigger Prefect deployments from AWS Lambda or other serverless functions without installing the full Prefect package.
- Emit events into a Prefect event-driven system from lightweight, ephemeral workloads.
- Query Prefect's orchestration API (read concurrency limits, deployment status, etc.) from a minimal client application.
- Deploy client-side Prefect integrations in container images where installation size is constrained.
- Monitor and observe workflows from remote applications using OpenTelemetry without server-side overhead.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A lightweight client library for interacting with Prefect Cloud or remote Prefect servers, designed for resource-constrained environments like AWS Lambda by omitting CLI and server components.
Yes, if you need to interact with Prefect from a resource-constrained environment (Lambda, lightweight containers, edge functions). The low install friction, active maintenance, and permissive license make it a straightforward choice. Not suitable if you need the CLI, server components, or full Prefect functionality—use the main prefect package instead.
Install
prefect-client on PyPI
pip
pip install prefect-clientuv
uv add prefect-clientpoetry
poetry add prefect-clientInstalling prefect-client
Before you install
Low friction: pure Python wheel with no compiled dependencies. Active maintenance—released 1 day ago with 23623 repository stars. Supports Python 3.10 through 3.14.
License in practice
Apache-2.0 permissive license allows commercial use, modification, and distribution with minimal restrictions; suitable for most production and proprietary contexts.
Quickstart
pip install prefect-client
from prefect.deployments import run_deployment
run_deployment(
name="my-flow/my-deployment",
parameters={"foo": "bar"},
timeout=0,
)
Requires Python 3.10 or later; PREFECT_API_KEY and PREFECT_API_URL environment variables must be set to connect to a remote Prefect server or Prefect Cloud.
Verify before relying
- Whether all 42 runtime dependencies are truly required for typical client-side workflows or if some are optional.
- Performance characteristics and memory footprint compared to the full prefect package in Lambda or other constrained environments.
- Completeness of API coverage—which server-oriented classes or methods remain unavailable despite being importable.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (<3.15,>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 42 — amplitude-analytics, anyio, asgi-lifespan, cachetools, cloudpickle, coolname, dateparser, exceptiongroup, fastapi, fsspec, graphviz, griffe, httpcore, httpx, humanize, jsonpatch, jsonschema, opentelemetry-api, orjson, packaging, pathspec, pendulum, prometheus-client, pydantic, pydantic-core, pydantic-extra-types, pydantic-settings, python-dateutil, python-slugify, pytz |
| Maintenance | actively maintained — 1 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 456,523/month — #6,554 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: prefect_client-3.8.3-py3-none-any.whl
Tags
More Libraries packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
pluggyPluggy provides a plugin system that lets you…
permissive · top 100 on PyPI
python-dateutilProvides parsing, arithmetic, and recurrence…
permissive · top 100 on PyPI
sixSix provides utility functions to write Python…
permissive · top 100 on PyPI
pytestpytest is a testing framework that lets you…
permissive · top 100 on PyPI
prefectPrefect is a Python workflow orchestration…
permissive · top 5,000 on PyPI
prefect-cloudDeploys Python functions to Prefect Cloud and…
unclear · top 5,000 on PyPI
prefect-emailProvides Prefect workflow integration for…
permissive · top 15,000 on PyPI
prefect-dockerProvides Docker task execution and container…
permissive · top 5,000 on PyPI
prefect-gitlabIntegrates Prefect workflow orchestration with…
permissive · top 15,000 on PyPI
prefect-rayIntegrates Ray distributed computing with…
permissive · top 15,000 on PyPI
prefect-awsProvides pre-built blocks, tasks, and workers…
permissive · top 5,000 on PyPI
prefect-gcpIntegrates Prefect workflow orchestration with…
permissive · top 5,000 on PyPI
prefect-daskIntegrates Prefect workflow orchestration with…
permissive · top 15,000 on PyPI
prefect-snowflakePrefect integration that provides tasks and…
permissive · top 15,000 on PyPI