Skip to content

v0.1.1 - Regenerate Python SDK 0.1.1 with package metadata (#13)

Choose a tag to compare

@github-actions github-actions released this 12 Aug 15:19
· 162 commits to main since this release
d0058ad

🌟 Summary

v0.1.1 modernizes the standalone Ultralytics Platform Python SDK with regenerated API clients, richer package metadata, more flexible inference requests, and improved deployment status typing. 🚀

📊 Key Changes

  • Regenerated the Python SDK from the merged Ultralytics OpenAPI definition using the current generic generator.
  • Updated the package version to 0.1.1 and added complete PyPI metadata, including:
    • Authors and maintainers
    • Project description and keywords
    • Python 3.11–3.14 classifiers
    • Production/stable and typed-library classifications
  • Improved standalone installation guidance in the English, Chinese, and Python SDK READMEs:
    • The package requires only the lightweight httpx runtime dependency.
    • It does not install the larger ultralytics package.
    • PyPI version, download, and supported-Python badges are now shown beside the installation instructions.
  • Made model and deployment inference requests more flexible:
    • Synchronous and asynchronous predict() methods now accept a generic body dictionary.
    • Multipart form fields and uploaded files are separated automatically.
    • This supports the current API schema more directly and avoids duplicated generated request parameters.
  • Expanded deployment response typing to represent transitional states such as:
    • deploying after updates or starts
    • stopping after stops
    • Existing ready and stopped states remain supported.
  • Validated the release thoroughly with formatting and lint checks, Python compilation, package builds, consumer tests, deterministic regeneration, and repository diff checks. ✅

🎯 Purpose & Impact

  • Easier integration: Developers can install a smaller, focused SDK for the Ultralytics Platform API without pulling in unrelated dependencies.
  • Better compatibility with API evolution: Generic request bodies allow inference endpoints to accommodate current and future multipart parameters more easily.
  • More accurate type checking: Deployment status unions help typed Python users correctly handle asynchronous state transitions.
  • Clearer package discovery on PyPI: Metadata and keywords improve searchability and communicate supported Python versions and project maturity.
  • Potential migration note: Existing code calling predict() with individual keyword arguments such as file, source, or conf may need to move those values into the new body dictionary.
  • No direct model change: This release updates the SDK and API client behavior rather than YOLO model architectures or model weights.
  • Release-process clarification: Although the package version is set to 0.1.1, this PR by @glenn-jocher did not publish to or modify PyPI.

What's Changed

Full Changelog: v0.1.0...v0.1.1