Repository navigation
v0.1.0 - Simplify the Platform Python SDK (#12)
🌟 Summary
🚀 v0.1.0 simplifies and modernizes the Ultralytics Platform Python SDK, delivering a focused 78-operation API surface, more reliable file predictions, and automated OpenAPI synchronization.
📊 Key Changes
-
Simplified the public SDK interface 🔄
- Regenerated the Python package from the streamlined 78-operation Platform API contract.
- Removed UI-only resource families such as billing, account, activity, explore, and teams.
- Added focused lifecycle resources for restoring or permanently deleting projects, datasets, and models.
- Added storage integration resources for connecting external cloud storage.
-
Improved file-based predictions 📁
- Fixed model and deployment prediction requests to correctly send uploaded files as multipart form data.
- This improves compatibility for workflows that run inference from local model or image files.
-
Updated the API contract and SDK usability ✨
- Added clearer schema descriptions, examples, enums, and generated Python usage examples.
- Updated dataset and project operations to use resource IDs consistently in the simplified contract.
- Added a dedicated Python package README with installation, authentication, synchronous, and asynchronous usage guidance.
-
Automated OpenAPI drift detection and SDK regeneration 🤖
- CI now tracks the
mainbranch of the OpenAPI generator. - Scheduled or manually triggered checks compare the live Platform contract with the repository snapshot.
- When changes are detected, CI regenerates, validates, and opens a content-addressed update pull request automatically.
- CI now tracks the
-
Modernized release and publishing automation 📦
- Standardized PyPI publishing through shared Ultralytics Actions.
- Added trusted publishing retries, SBOM generation, GitHub release creation, and Slack notifications.
- Bumped the package version from
0.0.1to0.1.0to reflect breaking public-surface changes.
🎯 Purpose & Impact
- More focused developer experience: Users see a smaller, clearer SDK that emphasizes practical Platform API workflows rather than UI-specific resources.
- More reliable inference uploads: File-based model and deployment predictions should now work correctly with multipart requests.
- Better long-term API consistency: Automated drift detection helps keep the Python SDK aligned with the live Platform contract and reduces manual synchronization work.
- Improved documentation and onboarding: Expanded README content makes installation, API-key authentication, and sync/async usage easier for new users.
⚠️ Breaking-change release: Applications using removed resource families, old method signatures, username-based resource lookup, or previous request requirements may need updates before moving to v0.1.0.- No new model architecture is introduced: The main release improvements concern the Platform SDK, API contract, file transport, and release automation rather than changes to YOLO model performance.
What's Changed
- Align publishing with standard release workflow by @glenn-jocher in #9
- Improve SDK package READMEs by @glenn-jocher in #10
- Track OpenAPI generator main by @glenn-jocher in #11
- Simplify the Platform Python SDK by @glenn-jocher in #12
Full Changelog: v0.0.1...v0.1.0