Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include rasterio.show_versions() output in healthz endpoint #1056

Merged
merged 5 commits into from
Dec 19, 2024

Conversation

scottyhq
Copy link
Contributor

This is a hasty attempt to add rasterio.show_versions() to the healthz endpoint as discussed in #731 . It "works" but formatting could be improved...

curl -X 'GET' \
  'http://127.0.0.1:8000/healthz' \
  -H 'accept: application/json' | jq
{
  "Hello from titiler!": [
    "rasterio info:",
    "  rasterio: 1.4.3",
    "      GDAL: 3.9.3",
    "      PROJ: 9.4.1",
    "      GEOS: 0.0.0",
    " PROJ DATA: /Users/scotthenderson/miniforge3/envs/titiler/lib/python3.11/site-packages/rasterio/proj_data",
    " GDAL DATA: /Users/scotthenderson/miniforge3/envs/titiler/lib/python3.11/site-packages/rasterio/gdal_data",
    "",
    "System:",
    "    python: 3.11.11 | packaged by conda-forge | (main, Dec  5 2024, 14:21:42) [Clang 18.1.8 ]",
    "executable: /Users/scotthenderson/miniforge3/envs/titiler/bin/python",
    "   machine: macOS-15.2-arm64-arm-64bit",
    "",
    "Python deps:",
    "    affine: 2.4.0",
    "     attrs: 24.3.0",
    "   certifi: 2024.12.14",
    "     click: 8.1.7",
    "     cligj: 0.7.2",
    "    cython: None",
    "     numpy: 2.2.0",
    "click-plugins: None",
    "setuptools: 75.6.0"
  ]
}

@vincentsarago vincentsarago self-requested a review December 19, 2024 17:39
@vincentsarago
Copy link
Member

thanks @scottyhq 🙏

@vincentsarago vincentsarago merged commit 35b3a0b into developmentseed:main Dec 19, 2024
10 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