Repository navigation
v0.1.5 - Regenerate Python SDK 0.1.5 with concise method names (#24)
🌟 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 oflist_images()client.models.files()instead ofretrieve_files()client.models.training()instead ofretrieve_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-requesttimeoutandextra_headersoptions. Retry handling was also refined for temporary failures, rate limits, and server errors. - Better handling of optional values and payloads 📦
Added the publicNOT_GIVENsentinel for distinguishing omitted parameters from explicitly suppliedNonevalues. Multipart and JSON payload serialization was improved, including nested object handling. - Richer API errors 🔍
APIErrornow exposes a parsed.jsonproperty when the server returns a JSON error response. - Updated Platform API contract 📄
- Removed the unsupported
vocdataset format. - Added optional deployment
apiKeyIdmetadata. - Improved GPU availability documentation and authentication behavior.
- Documented HTTP
429rate-limit responses. - Added clearer examples and descriptions for common model, dataset, and training fields.
- Removed the unsupported
- Repository cleanup 🧹
Updated issue templates, links, package examples, and.gitignoreto 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()ordatasets.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
Sequencesupport 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
- Update Platform API contract by @UltralyticsAssistant in #22
- Adapt issue templates and .gitignore to the SDK repository by @glenn-jocher in #23
- Regenerate Python SDK 0.1.5 with concise method names by @glenn-jocher in #24
Full Changelog: v0.1.4...v0.1.5