Remove API client from LightlySSL#1939
Open
gabrielfruet wants to merge 11 commits into
Open
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1939 +/- ##
==========================================
- Coverage 86.46% 85.77% -0.70%
==========================================
Files 170 142 -28
Lines 7271 5730 -1541
==========================================
- Hits 6287 4915 -1372
+ Misses 984 815 -169 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Contributor
Author
|
/review |
liopeer
reviewed
Jun 12, 2026
MalteEbner
reviewed
Jun 12, 2026
MalteEbner
approved these changes
Jun 15, 2026
| configuration_cls=_Configuration, | ||
| _ERROR_MESSAGE = ( | ||
| "lightly.api and ApiWorkflowClient have been removed from the lightly package. " | ||
| "The API workflow client is deprecated. If you need ApiWorkflowClient, use " |
Contributor
There was a problem hiding this comment.
No need to repeat the previous sentence in other words
Suggested change
| "The API workflow client is deprecated. If you need ApiWorkflowClient, use " | |
| "If you need ApiWorkflowClient, use " |
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
Removes the LightlyOne/API client surface from LightlySSL.
This includes:
lightly.api,lightly.openapi_generated, andlightly.active_learninglightly-downloadandlightly-serveCLI commands1.5.24Breaking Changes
lightly.apiis no longer availablelightly.openapi_generatedis no longer availablelightly.active_learningis no longer availablelightly-downloadandlightly-serveCLI commands are removedUsers on the old
ApiWorkflowClientworkflow should pin topip install "lightly<1.16"(see the deprecationImportErrorraised by the package).Verification
Before commit:
make formatpassedruff format-check: 446 files already formattedlightlyversion1.5.24, all public subpackages import OKpytest: 1347 passed, 3 failedVideoLoaderpickle x2torch.allclosenumerical failuremypy: pre-existing INTERNAL ERROR in third-partytransformerson Python 3.13, unrelated to these changesimport lightly.api,from lightly import api,from lightly.api import ApiWorkflowClient,importlib.import_module("lightly.api")all raise the expectedImportError(tests/test_deprecated_api_import.py)Follow-ups (intentionally deferred to separate PRs)
1.5.24while the latest tag isv1.15.24. Fixing that (and coordinating the release notes) will be its own PR so this one stays scoped to the API removal."lightly<1.16"in the three tutorials/recipes that still useApiWorkflowClient(active-learning-for-waste-sorting, active-learning-yolov7, recipes/create-dataset).f06dd3eper the liopeer review (now points tohttps://docs.lightly.ai/studio/instead of the renamed "Lightly Platform" strings).Notes
No release/version bump and no customer communications work included.