Registry / devops / fleet-python

fleet-python

JSON →
library0.2.126pypypi✓ verified 81d ago

Python SDK for interacting with Fleet environments. Currently at version 0.2.126, actively maintained. Provides client for task execution, file management, and environment metadata. Releases are frequent (multiple per week). Requires Python >=3.9.

pip install fleet-python
INSTALL
IMPORT
SIG · FLEET-PYTHON
F
fleet-python
devopspythonv0.2.126
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Fleet
from fleet import Fleet
from fleet import FleetClient
AsyncFleet
from fleet import AsyncFleet
Environment
from fleet import Environment

Initialize FleetClient and list tasks. Ensure FLEET_API_KEY and optionally FLEET_BASE_URL are set as environment variables.

import os from fleet import FleetClient client = FleetClient( api_key=os.environ.get('FLEET_API_KEY', ''), base_url=os.environ.get('FLEET_BASE_URL', 'https://api.fleet.com') ) try: tasks = client.list_tasks() print(tasks) except Exception as e: print(f'Error: {e}')
Debug
Known issues
breakingIn version 0.2.106, metadata fields were consolidated. Code relying on deprecated field names (e.g., 'task_type') may break. Use the new unified 'metadata' dictionary.
fix
Update attribute access to use metadata dict: task.metadata.get('field_name') instead of task.field_name.
affects: >=0.2.106
deprecatedThe old pattern of instantiating FleetClient without an explicit base_url may stop working in future releases.
fix
Always pass base_url parameter. Use the default only if you are targeting Fleet Cloud.
affects: <=0.2.125
gotchaThe SDK uses httpx for async by default. Using blocking calls in an async event loop can lead to performance issues.
fix
Use await client.some_async_method() inside async functions, or ensure you are using the synchronous client correctly.
affects: all
Upgrade
Version history
0.2.126latest on PyPI · released May 9, 2026
Audit
Dependencies
httpxrequiredUsed for making HTTP requests
pydanticrequiredUsed for data validation and settings management
Agent activity
12 hits · last 30 days
node
12
Resources
fleet-python — pip install fleet-python · libregistry