Skip to content

Conversation

@MateoLostanlen
Copy link
Member

Make import_annotations script work against remote annotator with token refresh and TLS flag

Body

  • Read annotation API credentials from ANNOTATOR_LOGIN and ANNOTATOR_PASSWORD environment variables with CLI overrides
  • Add robust token management with automatic refresh on HTTP 401 for list and patch operations
  • Add --verify-ssl flag to control TLS validation when calling the annotation API
  • Keep existing behaviour of merging old labels into new annotations while preserving bounding boxes
  • Manually tested against https://annotationdev.pyronear.org/api/v1 with a real backup file and the new environment variables

@MateoLostanlen MateoLostanlen changed the title Short and to the point so it fits your usual style Make import_annotations script work against remote annotator Dec 6, 2025
@MateoLostanlen MateoLostanlen merged commit ef1e848 into main Dec 6, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants