Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions akd_ext/structures.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,29 @@ class SDEIndexedDocumentType(StrEnum):
DOCUMENTATION = "Documentation"
SOFTWARE_TOOLS = "Software and Tools"
MISSIONS_INSTRUMENTS = "Missions and Instruments"


class EONETCategory(StrEnum):
"""EONET v3 event categories. Values match the IDs accepted by the EONET API."""

DROUGHT = "drought"
DUST_HAZE = "dustHaze"
EARTHQUAKES = "earthquakes"
FLOODS = "floods"
LANDSLIDES = "landslides"
MANMADE = "manmade"
SEA_LAKE_ICE = "seaLakeIce"
SEVERE_STORMS = "severeStorms"
SNOW = "snow"
TEMP_EXTREMES = "tempExtremes"
VOLCANOES = "volcanoes"
WATER_COLOR = "waterColor"
WILDFIRES = "wildfires"


class EONETStatus(StrEnum):
"""EONET event lifecycle status filter."""

OPEN = "open"
CLOSED = "closed"
ALL = "all"
18 changes: 18 additions & 0 deletions akd_ext/tools/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
"""Tools module for akd_ext."""

from .dummy import DummyInputSchema, DummyOutputSchema, DummyTool
from .eonet import (
EONETCategoryRef,
EONETEvent,
EONETGeometry,
EONETSearchInputSchema,
EONETSearchOutputSchema,
EONETSearchTool,
EONETSearchToolConfig,
EONETSource,
)
from .sde_search import (
SDEDocument,
SDESearchTool,
Expand All @@ -25,6 +35,14 @@
"DummyTool",
"DummyInputSchema",
"DummyOutputSchema",
"EONETSearchTool",
"EONETSearchInputSchema",
"EONETSearchOutputSchema",
"EONETSearchToolConfig",
"EONETEvent",
"EONETGeometry",
"EONETCategoryRef",
"EONETSource",
"SDESearchTool",
"SDESearchToolInputSchema",
"SDESearchToolOutputSchema",
Expand Down
Loading