PrefectHQ
prefect
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
Fix recursive local module discovery in bundle serialization (#19124)
main
6 hours ago
Rename test_api.py to test_api_command.py Fixes naming conflict with existing tests/_internal/concurrency/test_api.py that was causing pytest import errors. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
19130-api-command
13 hours ago
Add future annotations to cloud.py for Python 3.9 Added `from __future__ import annotations` to cloud.py to fix import error in Python 3.9. The `raw_request` method signature uses `dict[str, Any] | None` which requires this import for 3.9 compatibility. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
19130-api-command
13 hours ago
Address PR feedback from Alex and Nate Simplified the interface and improved the implementation based on reviewer feedback: - Removed `-X` flag complexity - HTTP method is now only a positional argument - Using `client.request()` for PrefectClient (returns Response objects) - Added `CloudClient.raw_request()` to match PrefectClient's signature for --root/--account - Validate --root/--account flags are Cloud-only - Removed "HTTP/1.1" from verbose output (just show status code) - Use `typing.Annotated` instead of `typing_extensions.Annotated` - Complete type hints for all dicts: `dict[str, str]`, `dict[str, Any]` - Wrapped examples in triple backticks - Rich output formatting with syntax highlighting for JSON - Refactored all 25 tests to use respx (cleaner, no manual mocking) - Added UUID fixtures for account_id/workspace_id All tests passing with proper respx mocking and CSRF disabled in test settings. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
19130-api-command
13 hours ago
Update src/prefect/cli/api.py Co-authored-by: Alex Streed <desertaxle@users.noreply.github.com>
19130-api-command
14 hours ago
Add `prefect api` command for direct API access This adds a new `prefect api` command that works like `gh api` for GitHub - a generic HTTP client for the Prefect API that handles auth and URL construction automatically. Key features: - HTTP method as positional argument (e.g., `prefect api POST /flows/filter`) - Smart path handling for Cloud (workspace/account prefixes) and OSS (`/api` prefix) - Multiple input methods: `--data` flag, `@filename`, or auto-detected stdin - Custom headers with `-H` flag (curl/gh compatible) - Alternative `-X` flag for method specification - Pretty-printed JSON output (compact when piped) - Verbose mode with `--verbose` shows request/response headers - Meaningful exit codes: 0=success, 3=auth, 4=client error, 5=server error, 7=network - Default empty body `{}` for POST/PUT/PATCH to support filter endpoints - Uses PrefectClient internally for ephemeral server support and connection pooling URL building uses proper `urllib.parse` for robustness and settings are accessed via `get_current_settings()` following Prefect conventions. Closes #19130 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
19130-api-command
15 hours ago
chore(deps): update whenever requirement from <0.9.0,>=0.7.3 to >=0.7.3,<0.10.0 (#19034) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alex Streed <ajstreed1@gmail.com>
main
20 hours ago
Remove duplicate import
fix/recurse-local-module-discovery
20 hours ago
Active Branches
Add `prefect api` command for direct API access
last run
13 hours ago
#19131
CodSpeed Performance Gauge
0%
chore(deps): bump ruff from 0.13.2 to 0.13.3
last run
2 days ago
#19093
CodSpeed Performance Gauge
0%
Fix multiprocessing deadlock after using prefect_test_harness on Linux
last run
2 days ago
#19116
CodSpeed Performance Gauge
0%
© 2025 CodSpeed Technology
Home
Terms
Privacy
Docs