{"id":22706728,"url":"https://github.com/mbari-org/fastapi-tator","last_synced_at":"2026-04-28T01:32:18.502Z","repository":{"id":250936598,"uuid":"835909929","full_name":"mbari-org/fastapi-tator","owner":"mbari-org","description":"RESTful API for bulk operations on a Tator annotation database on clustered, labeled, localization data. It uses the Python web framework FastAPI. ","archived":false,"fork":false,"pushed_at":"2025-12-11T23:12:31.000Z","size":1299,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-12-13T04:49:00.528Z","etag":null,"topics":["annotation-processing","fastapi","tator"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mbari-org.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-07-30T19:11:01.000Z","updated_at":"2025-12-11T23:12:34.000Z","dependencies_parsed_at":"2024-08-13T02:38:29.556Z","dependency_job_id":"870b582f-1059-4303-a704-5a8b5cdb5a1a","html_url":"https://github.com/mbari-org/fastapi-tator","commit_stats":null,"previous_names":["mbari-org/fastapi-tator"],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/mbari-org/fastapi-tator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbari-org%2Ffastapi-tator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbari-org%2Ffastapi-tator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbari-org%2Ffastapi-tator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbari-org%2Ffastapi-tator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mbari-org","download_url":"https://codeload.github.com/mbari-org/fastapi-tator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mbari-org%2Ffastapi-tator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32362781,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"ssl_error","status_checked_at":"2026-04-27T20:07:00.910Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["annotation-processing","fastapi","tator"],"created_at":"2024-12-10T10:09:33.414Z","updated_at":"2026-04-28T01:32:18.496Z","avatar_url":"https://github.com/mbari-org.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![MBARI](https://www.mbari.org/wp-content/uploads/2014/11/logo-mbari-3b.png)](http://www.mbari.org)\n\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n[![Python](https://img.shields.io/badge/language-Python-blue.svg)](https://www.python.org/downloads/)\n\n**fastapi-tator** A RESTful API for bulk operations on a Tator database on clustered, labeled, localization data.\nIt uses the Python web framework [FastAPI](https://fastapi.tiangolo.com/). \n\nThis accelerates machine learning workflows that use clustered, labeled, localization data\n\nIt is currently live at http://mantis.shore.mbari.org:8001/docs.\n\nFeatures\n-  Get a list of all unique labels for a given project\n-  Change a localization label in a given [sdcat](https://github.com/mbari-org/sdcat) generated cluster by query criteria, e.g. media (partial) name, model version\n-  Delete localizations with low saliency scores in a given project\n-  Report how many localizations for a given project are flagged for deletion\n-  Delete all localizations flagged for deletion in a given project\n-  Change a localization label for a particular database id\n\n--- \n![](https://raw.githubusercontent.com/mbari-org/fastapi-tator/main/docs/imgs/restwebui.png)\n---\n\n# Requirements\n\nFor deployment, you will need:\n- [Docker](https://docs.docker.com/get-docker/)\n- [Docker Compose](https://docs.docker.com/compose/install/)\n\nFor development, you will need:\n- [Python \u003e=3.12](https://www.python.org/downloads/)\n- [Anaconda](https://www.anaconda.com/)\n- [Docker](https://docs.docker.com/get-docker/)\n- [Docker Compose](https://docs.docker.com/compose/install/)\n- [Tator](http://github.com/mbari-org/tator)\n\n# Deployment\n\n## Clone the repository and run the docker compose file\n\n```shell\ngit clone --recurse-submodules https://github.com/mbari-org/fastapi-tator\ncd fastapi-tator\ncp example-env .env\nmake tator\nmake superuser\n```\n\n## Fetch your API key for Tator\n\nCreate an API token for a user with full admin and set that in the .env file\nalong with the Tator server URL.\n\n```shell\necho \"TATOR_API_HOST=http://localhost\" \u003e .env\necho \"TATOR_API_TOKEN=15a0f486cde0f09329b09f3274de1b962c2273a4\" \u003e\u003e .env\n```\n\n![tatorAPItoken](./docs/imgs/apitoken.png)\n\n## Build and start the docker containers\n\n```shell\n./bin/docker_build.sh\n./bin/run_prod.sh\n```\nOptionally, set the environment variable `TATOR_DEFAULT_PROJECT` to the value of the project you would like to default to.\n```shell\nexport TATOR_DEFAULT_PROJECT=\"901103-biodiversity\"\n```\n\nYour server is now running at `http://localhost:8000/docs`\n\n## Try it out\n\nOpen the browser to http://localhost:8000/docs to see the API documentation.\n\n### Health Check\nCheck the health of the server by going to `http://localhost:8000/health`.  You should see the following response:\n\n```json\n{\"status\":\"ok\"}\n```\n\n## Related work\n \n* https://github.com/mbari-org/sdcat [Sliced Detection and Clustering Analysis Toolkit]","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbari-org%2Ffastapi-tator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmbari-org%2Ffastapi-tator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmbari-org%2Ffastapi-tator/lists"}