Skip to content

v0.1.5 - Regenerate Python SDK 0.1.5 with concise method names (#24)

Choose a tag to compare

@github-actions github-actions released this 15 Aug 17:21
· 151 commits to main since this release
7ce9b78

🌟 Summary

Ultralytics Platform Python SDK 0.1.5 introduces clearer, more concise API method names, refreshed API definitions, and more robust request handling—making Platform integrations easier to use and maintain. 🚀

📊 Key Changes

  • Concise method names across the SDK 🐍
    Regenerated all 80 synchronous and asynchronous methods with simpler names based on the resource and operation, such as:
    • client.datasets.images() instead of list_images()
    • client.models.files() instead of retrieve_files()
    • client.models.training() instead of retrieve_training()
    • client.deployments.health(), .logs(), and .metrics()
    • client.exports.list(), .create(), .retrieve(), and .delete()
    • client.account.summary(), .api_keys(), .storage(), .profile(), and .follow()
  • More consistent generated response types ✨
    Response class names now match the shorter method names, improving readability and discoverability.
  • Improved request customization and reliability 🛠️
    SDK methods now consistently support per-request timeout and extra_headers options. Retry handling was also refined for temporary failures, rate limits, and server errors.
  • Better handling of optional values and payloads 📦
    Added the public NOT_GIVEN sentinel for distinguishing omitted parameters from explicitly supplied None values. Multipart and JSON payload serialization was improved, including nested object handling.
  • Richer API errors 🔍
    APIError now exposes a parsed .json property when the server returns a JSON error response.
  • Updated Platform API contract 📄
    • Removed the unsupported voc dataset format.
    • Added optional deployment apiKeyId metadata.
    • Improved GPU availability documentation and authentication behavior.
    • Documented HTTP 429 rate-limit responses.
    • Added clearer examples and descriptions for common model, dataset, and training fields.
  • Repository cleanup 🧹
    Updated issue templates, links, package examples, and .gitignore to reflect the Platform SDK rather than the core Ultralytics model repository.

🎯 Purpose & Impact

  • Easier to learn and remember: Shorter names make the SDK feel more natural and reduce confusion for new users.
  • More consistent development experience: Synchronous and asynchronous clients now expose the same streamlined resource structure.
  • Potential migration impact: Existing code using renamed methods—such as exports.export_model() or datasets.list_images()—must be updated to the new names. This is the main compatibility consideration in 0.1.5. ⚠️
  • More dependable production integrations: Improved retries, timeout overrides, custom headers, multipart encoding, and structured errors help applications handle real-world network and API conditions.
  • Better type safety and editor support: Regenerated types and broader Sequence support make the SDK more flexible while preserving helpful Python typing.
  • Clearer API documentation: Refreshed examples and contract metadata improve generated documentation and make Platform workflows easier to discover. 📚

What's Changed

Full Changelog: v0.1.4...v0.1.5