Repository navigation
v2.1.0: live try-on, error handling fixes, contract tests and CI - #1
Merged
Merged
Conversation
- Live try-on server methods: prepare garment, start/get/stop session, config - API errors carry the envelope's error.name / error.message (they were "HTTP 4xx" with a wrong or missing name) - TypedDict response types and py.typed; mypy --strict clean - wait_for_result no longer crashes on a failed job (AttributeError); job ids escaped - User-Agent: tryiton-python/2.1.0 on every request - Shared contract test suite (fixtures from tryiton/backend/api-contract) + GitHub Actions CI - CHANGELOG.md; README live try-on and development sections - Includes earlier uncommitted comment edits Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ubuntu-latest (26.04) has no setup-python build for 3.9 any more, same as 3.8. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Version 2.1.0: live try-on server methods, correct API error handling, a shared contract test suite with CI, and a
User-Agentheader.Added
prepare_live_garment,start_live_session,get_live_session,stop_live_session,get_live_config. The shopper's browser streams with thetryiton-livepackage using the start-session response; the API key never reaches the browser.User-Agent: tryiton-python/2.1.0on every request.TypedDictresponse types (tryiton.types) and apy.typedmarker; values are still plain dicts at runtime.CHANGELOG.md; README sections for live try-on and development.Fixed
error.nameanderror.message. Before, the error envelope was read incorrectly, so errors reported "HTTP 4xx" with a missing or wrong name.wait_for_resultraisedAttributeErroron a failed job; it now raisesTryItOnErrorwith the job's reason (error_name="ProcessingError").get_status.__version__was stale (0.1.0); it now matches the package version.Testing
pytest: 42 tests pass;mypy --strictclean. Run locally on Python 3.8, 3.12 and 3.13; CI covers 3.8 to 3.13.🤖 Generated with Claude Code