{"id":19310204,"url":"https://github.com/cedadev/stac-fastapi-elasticsearch","last_synced_at":"2025-08-13T23:04:48.385Z","repository":{"id":37966784,"uuid":"378995036","full_name":"cedadev/stac-fastapi-elasticsearch","owner":"cedadev","description":"Elasticsearch backend for the stac-fastapi server","archived":false,"fork":false,"pushed_at":"2023-09-26T13:39:40.000Z","size":409,"stargazers_count":9,"open_issues_count":7,"forks_count":3,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-06-08T16:39:40.749Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cedadev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2021-06-21T16:27:14.000Z","updated_at":"2024-05-02T04:57:20.000Z","dependencies_parsed_at":"2023-09-26T17:14:20.879Z","dependency_job_id":null,"html_url":"https://github.com/cedadev/stac-fastapi-elasticsearch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cedadev/stac-fastapi-elasticsearch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedadev%2Fstac-fastapi-elasticsearch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedadev%2Fstac-fastapi-elasticsearch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedadev%2Fstac-fastapi-elasticsearch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedadev%2Fstac-fastapi-elasticsearch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cedadev","download_url":"https://codeload.github.com/cedadev/stac-fastapi-elasticsearch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cedadev%2Fstac-fastapi-elasticsearch/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270330595,"owners_count":24565816,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-13T02:00:09.904Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-10T00:23:06.630Z","updated_at":"2025-08-13T23:04:48.361Z","avatar_url":"https://github.com/cedadev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Elasticsearch Backend for the stac-fastapi server\n\n[![stac-fastapi-elasticsearch](https://github.com/cedadev/stac-fastapi-elasticsearch/actions/workflows/test.yml/badge.svg)](https://github.com/cedadev/stac-fastapi-elasticsearch/actions/workflows/test.yml)\n\n## Getting started\n\nCopy settings.py.tmpl and remove the tmpl extension. \nFill in \n- ELASTICSEARCH_HOST\n- api_key\n\nCreate a virtualenv and install requirements\n```bash\npython -m venv venv\n./venv/bin/activate\npip intall -r requirements.txt\n```\n\n## Running the development server\n\n**Option 1 (virtual environment):**\n\nThis option makes use of traditional virtual environment. You might need to specify the path\nto the uvicorn binary e.g. `/venv/bin/uvicorn` to make sure you are using the right environment.\n\n    ```bash\n    export STAC_ELASTICSEARCH_SETTINGS=stac_fastapi.elasticsearch.settings\n    ```\n    \n    ```bash\n    uvicorn stac_fastapi.elasticsearch.app:app --reload\n    ```\n**Option 2 (Docker):**\n\nThis option makes use of Docker compose and includes some sample data. It will start a local elasticsearch instance, \npopulate with some data and start the application which will reload if you modify the code or configuration.\n   ```bash\n   make run-sample-elasticsearch\n   ```\n\nYou can change the default settings by creating a file in `/conf/settings.d` and adding `include_dir(base_dir / 'settings.d')` \nto `/conf/settings.py`\nHere you can set:\n   - `ELASTICSEARCH_CONNECTION`\n   - `COLLECTION_INDEX`\n   - `ITEM_INDEX`\n   - `ASSET_INDEX`\n\nYou could use this to point at production or staging data instead of the local instance.\n\n### Demo Application\n\nYou can use docker-compose to create a demo instance. This will create an elasticsearch node, add some sample data and run the API.\n\n```bash\nmake run-sample-elasticsearch\n```\n\n**NOTE: You will need to build the image first** `docker-compose build`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcedadev%2Fstac-fastapi-elasticsearch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcedadev%2Fstac-fastapi-elasticsearch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcedadev%2Fstac-fastapi-elasticsearch/lists"}