Repository navigation
v0.1.3 - Exercise every Platform API operation in live SDK CI (#17)
🌟 Summary
v0.1.3 transforms the Ultralytics Platform Python SDK’s production checks from a small smoke test into a comprehensive, contract-validated API lifecycle suite, while adding SDK improvements and clearer API schemas. 🚀
📊 Key Changes
-
Full live API coverage through the generated Python SDK by @glenn-jocher:
- Exercises all 80 operations currently defined in the live OpenAPI contract.
- Tests complete resource lifecycles for projects, datasets, images, models, versions, labels, metadata, embeddings, and storage integrations.
- Creates, edits, verifies, deletes, restores, and permanently cleans up canary resources using the shared
coco32fixture. - Covers both successful operations and intentionally safe error-only paths.
-
Stronger response and contract validation ✅:
- Validates successful JSON responses against their documented OpenAPI schemas.
- Detects undocumented status codes, authentication regressions, permission problems, rate-limit exhaustion, server errors, and API/SDK drift.
- Automatically synchronizes the contract from the main and production APIs before lifecycle testing.
- Runs on main-branch pushes, daily schedules, and manual dispatches; secret-bearing live tests remain skipped for pull requests.
-
New cloud storage integration capability ☁️:
- Added SDK support for disconnecting cloud storage integrations without deleting provider data.
- Added the corresponding
DeleteBucketIntegrationResponsetype and API contract definition.
-
Updated SDK request interfaces 🛠️:
- Several endpoints now accept a complete
bodydictionary instead of individual request parameters, including dataset ingestion, file uploads, and cloud storage operations. - Image update documentation now clarifies metadata replacement and supported flat keypoint formats.
- Generated Python SDK examples now use more realistic placeholder values.
- Several endpoints now accept a complete
-
More precise OpenAPI schemas and generated types 📘:
- Dataset split counts and training epochs are now represented as integers rather than floating-point values.
- Non-negative constraints were clarified for counts, dimensions, versions, and training metrics.
- Added examples and descriptions for account data, image keypoints, dataset statistics, and other response fields.
-
GPU availability documentation updated 🔐:
- Managed GPU-capacity checks now explicitly document that authentication is required and may return
401.
- Managed GPU-capacity checks now explicitly document that authentication is required and may return
-
Package version updated to
0.1.3📦:- Applies to both the OpenAPI configuration and the
ultralytics-platformPython package.
- Applies to both the OpenAPI configuration and the
🎯 Purpose & Impact
- Higher production confidence: Every generated SDK operation is now exercised against the real Platform API, making regressions much easier to detect before they affect users.
- Safer API evolution: Contract synchronization and schema validation help keep the OpenAPI specification, generated SDK, and production behavior aligned.
- Better lifecycle reliability: The canary creates and cleans up its own resources, reducing dependence on pre-existing account data and validating real user workflows more realistically.
- Clearer developer experience: Improved schemas, examples, documentation, and generated types make API responses and request formats easier to understand.
- Potential migration consideration: Users upgrading from
0.1.2may need to update calls to endpoints whose individual arguments have been consolidated into abodyparameter, such as dataset ingestion, signed upload URLs, and cloud storage connections.
What's Changed
- Require exhaustive API and SDK coverage ownership by @glenn-jocher in #15
- Update Platform API contract by @UltralyticsAssistant in #16
- Exercise every Platform API operation in live SDK CI by @glenn-jocher in #17
New Contributors
- @UltralyticsAssistant made their first contribution in #16
Full Changelog: v0.1.2...v0.1.3