aviationstack-mcp-server 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. aviationstack_mcp_server/__init__.py +0 -0
  2. aviationstack_mcp_server/__main__.py +15 -0
  3. aviationstack_mcp_server/client/__init__.py +9 -0
  4. aviationstack_mcp_server/client/aviationstack.py +138 -0
  5. aviationstack_mcp_server/client/factory.py +30 -0
  6. aviationstack_mcp_server/client/http.py +292 -0
  7. aviationstack_mcp_server/config/__init__.py +3 -0
  8. aviationstack_mcp_server/config/settings.py +162 -0
  9. aviationstack_mcp_server/errors/__init__.py +25 -0
  10. aviationstack_mcp_server/errors/exceptions.py +56 -0
  11. aviationstack_mcp_server/logging_config.py +52 -0
  12. aviationstack_mcp_server/mcp/__init__.py +3 -0
  13. aviationstack_mcp_server/mcp/dependencies.py +64 -0
  14. aviationstack_mcp_server/mcp/errors.py +118 -0
  15. aviationstack_mcp_server/mcp/prompts/__init__.py +0 -0
  16. aviationstack_mcp_server/mcp/prompts/aviation.py +98 -0
  17. aviationstack_mcp_server/mcp/resources/__init__.py +0 -0
  18. aviationstack_mcp_server/mcp/resources/documentation.py +165 -0
  19. aviationstack_mcp_server/mcp/resources/metadata.py +46 -0
  20. aviationstack_mcp_server/mcp/server.py +164 -0
  21. aviationstack_mcp_server/mcp/tools/__init__.py +0 -0
  22. aviationstack_mcp_server/mcp/tools/aircraft.py +64 -0
  23. aviationstack_mcp_server/mcp/tools/airlines.py +43 -0
  24. aviationstack_mcp_server/mcp/tools/airports.py +43 -0
  25. aviationstack_mcp_server/mcp/tools/flights.py +125 -0
  26. aviationstack_mcp_server/mcp/tools/reference.py +129 -0
  27. aviationstack_mcp_server/models/__init__.py +81 -0
  28. aviationstack_mcp_server/models/aircraft.py +43 -0
  29. aviationstack_mcp_server/models/airline.py +29 -0
  30. aviationstack_mcp_server/models/airport.py +33 -0
  31. aviationstack_mcp_server/models/common.py +20 -0
  32. aviationstack_mcp_server/models/flight.py +125 -0
  33. aviationstack_mcp_server/models/location.py +50 -0
  34. aviationstack_mcp_server/models/queries.py +284 -0
  35. aviationstack_mcp_server/models/route.py +24 -0
  36. aviationstack_mcp_server/models/tax.py +20 -0
  37. aviationstack_mcp_server/observability.py +27 -0
  38. aviationstack_mcp_server/security.py +62 -0
  39. aviationstack_mcp_server/services/__init__.py +13 -0
  40. aviationstack_mcp_server/services/aircraft_service.py +156 -0
  41. aviationstack_mcp_server/services/airline_service.py +89 -0
  42. aviationstack_mcp_server/services/airport_service.py +116 -0
  43. aviationstack_mcp_server/services/flight_service.py +366 -0
  44. aviationstack_mcp_server/services/reference_service.py +315 -0
  45. aviationstack_mcp_server/utils/__init__.py +0 -0
  46. aviationstack_mcp_server-0.1.0.dist-info/METADATA +57 -0
  47. aviationstack_mcp_server-0.1.0.dist-info/RECORD +50 -0
  48. aviationstack_mcp_server-0.1.0.dist-info/WHEEL +4 -0
  49. aviationstack_mcp_server-0.1.0.dist-info/entry_points.txt +3 -0
  50. aviationstack_mcp_server-0.1.0.dist-info/licenses/LICENSE +21 -0
File without changes
@@ -0,0 +1,15 @@
1
+ from aviationstack_mcp_server.config import get_settings
2
+ from aviationstack_mcp_server.logging_config import configure_logging
3
+ from aviationstack_mcp_server.mcp.server import create_server
4
+
5
+
6
+ def main() -> None:
7
+ settings = get_settings()
8
+ configure_logging(settings.log_level)
9
+
10
+ server = create_server()
11
+ server.run()
12
+
13
+
14
+ if __name__ == "__main__":
15
+ main()
@@ -0,0 +1,9 @@
1
+ from .aviationstack import AviationstackClient
2
+ from .factory import create_aviationstack_client
3
+ from .http import HTTPClient
4
+
5
+ __all__ = [
6
+ "AviationstackClient",
7
+ "HTTPClient",
8
+ "create_aviationstack_client",
9
+ ]
@@ -0,0 +1,138 @@
1
+ from __future__ import annotations
2
+
3
+ import logging
4
+ from collections.abc import Mapping
5
+ from typing import Any
6
+
7
+ from aviationstack_mcp_server.client.http import HTTPClient
8
+ from aviationstack_mcp_server.config import Settings
9
+ from aviationstack_mcp_server.errors import (
10
+ AviationstackAPIError,
11
+ )
12
+ from aviationstack_mcp_server.security import validate_endpoint
13
+
14
+ logger = logging.getLogger(__name__)
15
+
16
+
17
+ class AviationstackClient:
18
+ """Asynchronous client for the Aviationstack REST API."""
19
+
20
+ def __init__(
21
+ self,
22
+ settings: Settings,
23
+ http_client: HTTPClient,
24
+ ) -> None:
25
+ self._settings = settings
26
+ self._http_client = http_client
27
+
28
+ async def get(
29
+ self,
30
+ endpoint: str,
31
+ *,
32
+ params: Mapping[str, Any] | None = None,
33
+ ) -> dict[str, Any]:
34
+ """Perform a GET request against an Aviationstack endpoint."""
35
+
36
+ url = self._build_url(endpoint)
37
+
38
+ request_params = {
39
+ "access_key": self._settings.aviationstack_api_key.get_secret_value(),
40
+ }
41
+
42
+ if params:
43
+ request_params.update(
44
+ {key: value for key, value in params.items() if value is not None}
45
+ )
46
+
47
+ logger.debug(
48
+ "Sending Aviationstack request: method=%s endpoint=%s params=%s",
49
+ "GET",
50
+ endpoint,
51
+ sorted(key for key in request_params if key != "access_key"),
52
+ )
53
+
54
+ response = await self._http_client.request(
55
+ "GET",
56
+ url,
57
+ params=request_params,
58
+ )
59
+
60
+ logger.debug(
61
+ "Received Aviationstack response: method=%s endpoint=%s status=%s",
62
+ "GET",
63
+ endpoint,
64
+ response.status_code,
65
+ )
66
+
67
+ payload = self._parse_response(response)
68
+
69
+ self._raise_for_api_error(payload)
70
+
71
+ return payload
72
+
73
+ async def close(self) -> None:
74
+ logger.debug("Closing Aviationstack HTTP client")
75
+ await self._http_client.close()
76
+
77
+ def _build_url(self, endpoint: str) -> str:
78
+ """Build an endpoint URL safely."""
79
+
80
+ validate_endpoint(endpoint)
81
+ normalized_base_url = self._settings.aviationstack_base_url.rstrip("/")
82
+ normalized_endpoint = endpoint.strip("/")
83
+
84
+ return f"{normalized_base_url}/{normalized_endpoint}"
85
+
86
+ @staticmethod
87
+ def _parse_response(response: Any) -> dict[str, Any]:
88
+ """Parse an Aviationstack JSON response."""
89
+
90
+ try:
91
+ payload = response.json()
92
+ except ValueError as exc:
93
+ logger.warning("Aviationstack returned invalid JSON")
94
+ raise AviationstackAPIError("Aviationstack returned an invalid JSON response.") from exc
95
+
96
+ if not isinstance(payload, dict):
97
+ logger.warning(
98
+ "Aviationstack returned an unexpected response type: %s",
99
+ type(payload).__name__,
100
+ )
101
+ raise AviationstackAPIError("Aviationstack returned an unexpected response format.")
102
+
103
+ return payload
104
+
105
+ @staticmethod
106
+ def _raise_for_api_error(
107
+ payload: dict[str, Any],
108
+ ) -> None:
109
+ """Translate Aviationstack application-level errors."""
110
+
111
+ error = payload.get("error")
112
+
113
+ if not isinstance(error, dict):
114
+ return
115
+
116
+ error_type = error.get("type")
117
+ error_code = error.get("code")
118
+ message = error.get("message")
119
+
120
+ if not isinstance(error_type, str):
121
+ error_type = "api_error"
122
+
123
+ if not isinstance(error_code, str):
124
+ error_code = None
125
+
126
+ if not isinstance(message, str):
127
+ message = "Aviationstack returned an API error."
128
+
129
+ logger.warning(
130
+ "Aviationstack API error: type=%s code=%s",
131
+ error_type,
132
+ error_code,
133
+ )
134
+
135
+ raise AviationstackAPIError(
136
+ f"{error_type}: {message}",
137
+ error_code=error_code,
138
+ )
@@ -0,0 +1,30 @@
1
+ import logging
2
+
3
+ from aviationstack_mcp_server.client.aviationstack import AviationstackClient
4
+ from aviationstack_mcp_server.client.http import HTTPClient
5
+ from aviationstack_mcp_server.config import Settings
6
+
7
+ logger = logging.getLogger(__name__)
8
+
9
+
10
+ def create_aviationstack_client(
11
+ settings: Settings,
12
+ ) -> AviationstackClient:
13
+ """Create a configured Aviationstack API client."""
14
+
15
+ logger.debug(
16
+ "Creating Aviationstack client: base_url=%s connect_timeout=%s "
17
+ "read_timeout=%s max_retries=%s retry_backoff=%s",
18
+ settings.aviationstack_base_url,
19
+ settings.aviationstack_connect_timeout,
20
+ settings.aviationstack_read_timeout,
21
+ settings.aviationstack_retry_max_attempts,
22
+ settings.aviationstack_retry_backoff_factor,
23
+ )
24
+
25
+ http_client = HTTPClient(settings)
26
+
27
+ return AviationstackClient(
28
+ settings=settings,
29
+ http_client=http_client,
30
+ )
@@ -0,0 +1,292 @@
1
+ from __future__ import annotations
2
+
3
+ import asyncio
4
+ import logging
5
+ import random
6
+ from collections.abc import Mapping
7
+ from time import perf_counter
8
+ from typing import Any
9
+
10
+ import httpx
11
+
12
+ from aviationstack_mcp_server.config import Settings
13
+ from aviationstack_mcp_server.errors import (
14
+ AviationstackAuthenticationError,
15
+ AviationstackAuthorizationError,
16
+ AviationstackNotFoundError,
17
+ AviationstackRateLimitError,
18
+ AviationstackRequestError,
19
+ AviationstackServerError,
20
+ AviationstackTimeoutError,
21
+ )
22
+
23
+ logger = logging.getLogger(__name__)
24
+
25
+ MAX_RETRY_DELAY = 30.0
26
+ RETRYABLE_STATUS_CODES = frozenset({408, 429, 500, 502, 503, 504})
27
+
28
+
29
+ def is_retryable_status(status_code: int) -> bool:
30
+ """Return whether an HTTP status represents a transient failure."""
31
+
32
+ return status_code in RETRYABLE_STATUS_CODES
33
+
34
+
35
+ class HTTPClient:
36
+ """Reusable asynchronous HTTP client with retry and timeout handling."""
37
+
38
+ def __init__(self, settings: Settings) -> None:
39
+ self._settings = settings
40
+
41
+ timeout = httpx.Timeout(
42
+ connect=settings.aviationstack_connect_timeout,
43
+ read=settings.aviationstack_read_timeout,
44
+ write=settings.aviationstack_write_timeout,
45
+ pool=settings.aviationstack_pool_timeout,
46
+ )
47
+
48
+ self._client = httpx.AsyncClient(
49
+ timeout=timeout,
50
+ follow_redirects=True,
51
+ headers={
52
+ "Accept": "application/json",
53
+ "User-Agent": "aviationstack-mcp-server/0.1.0",
54
+ },
55
+ )
56
+
57
+ async def request(
58
+ self,
59
+ method: str,
60
+ url: str,
61
+ *,
62
+ params: Mapping[str, Any] | None = None,
63
+ headers: Mapping[str, str] | None = None,
64
+ ) -> httpx.Response:
65
+ """Execute an HTTP request with retry handling."""
66
+
67
+ max_attempts = self._settings.aviationstack_retry_max_attempts
68
+ endpoint = httpx.URL(url).path or "/"
69
+
70
+ for attempt_number in range(1, max_attempts + 1):
71
+ started_at = perf_counter()
72
+ logger.debug(
73
+ "HTTP request started method=%s endpoint=%s attempt=%s params=%s",
74
+ method,
75
+ endpoint,
76
+ attempt_number,
77
+ sorted(key for key in params if key != "access_key") if params else [],
78
+ )
79
+
80
+ try:
81
+ response = await self._client.request(
82
+ method=method,
83
+ url=url,
84
+ params=params,
85
+ headers=headers,
86
+ )
87
+ except httpx.TimeoutException as exc:
88
+ duration_ms = (perf_counter() - started_at) * 1000
89
+ if attempt_number >= max_attempts:
90
+ logger.error(
91
+ "HTTP request failed after %s attempts: method=%s endpoint=%s "
92
+ "error_type=%s duration_ms=%.2f",
93
+ max_attempts,
94
+ method,
95
+ endpoint,
96
+ type(exc).__name__,
97
+ duration_ms,
98
+ )
99
+ raise AviationstackTimeoutError("Aviationstack request timed out.") from exc
100
+
101
+ await self._sleep_before_retry(
102
+ attempt_number,
103
+ method=method,
104
+ url=url,
105
+ )
106
+ continue
107
+ except httpx.RequestError as exc:
108
+ duration_ms = (perf_counter() - started_at) * 1000
109
+ if attempt_number >= max_attempts:
110
+ logger.error(
111
+ "HTTP request failed after %s attempts: method=%s endpoint=%s "
112
+ "error_type=%s duration_ms=%.2f",
113
+ max_attempts,
114
+ method,
115
+ endpoint,
116
+ type(exc).__name__,
117
+ duration_ms,
118
+ )
119
+ raise AviationstackRequestError(
120
+ "Unable to reach the Aviationstack API."
121
+ ) from exc
122
+
123
+ await self._sleep_before_retry(
124
+ attempt_number,
125
+ method=method,
126
+ url=url,
127
+ )
128
+ continue
129
+
130
+ duration_ms = (perf_counter() - started_at) * 1000
131
+ logger.debug(
132
+ "HTTP response received method=%s endpoint=%s status=%s "
133
+ "attempt=%s duration_ms=%.2f",
134
+ method,
135
+ endpoint,
136
+ response.status_code,
137
+ attempt_number,
138
+ duration_ms,
139
+ )
140
+
141
+ if is_retryable_status(response.status_code):
142
+ if attempt_number >= max_attempts:
143
+ logger.error(
144
+ "HTTP request failed after %s attempts: method=%s endpoint=%s "
145
+ "status=%s duration_ms=%.2f",
146
+ max_attempts,
147
+ method,
148
+ endpoint,
149
+ response.status_code,
150
+ duration_ms,
151
+ )
152
+ self._raise_for_status(response)
153
+
154
+ await self._sleep_before_retry(
155
+ attempt_number,
156
+ method=method,
157
+ url=url,
158
+ response=response,
159
+ )
160
+ continue
161
+
162
+ self._raise_for_status(response)
163
+ return response
164
+
165
+ raise AviationstackRequestError("Aviationstack request failed unexpectedly.")
166
+
167
+ async def _sleep_before_retry(
168
+ self,
169
+ attempt_number: int,
170
+ *,
171
+ method: str,
172
+ url: str,
173
+ response: httpx.Response | None = None,
174
+ ) -> None:
175
+ """Wait before a retry using Retry-After or capped jittered backoff."""
176
+
177
+ retry_after = self._retry_after_seconds(response)
178
+ if retry_after is not None:
179
+ delay = min(retry_after, MAX_RETRY_DELAY)
180
+ retry_after_detail = f" retry_after={delay}"
181
+ else:
182
+ base_delay = min(
183
+ self._settings.aviationstack_retry_backoff_factor * (2 ** (attempt_number - 1)),
184
+ MAX_RETRY_DELAY,
185
+ )
186
+ jitter = random.uniform(0, base_delay * 0.1)
187
+ delay = min(base_delay + jitter, MAX_RETRY_DELAY)
188
+ retry_after_detail = ""
189
+
190
+ logger.warning(
191
+ "Retrying HTTP request: method=%s endpoint=%s attempt=%s delay=%.3f%s",
192
+ method,
193
+ httpx.URL(url).path or "/",
194
+ attempt_number + 1,
195
+ delay,
196
+ retry_after_detail,
197
+ )
198
+ await asyncio.sleep(delay)
199
+
200
+ @staticmethod
201
+ def _retry_after_seconds(response: httpx.Response | None) -> float | None:
202
+ """Parse a non-negative numeric Retry-After header, if present."""
203
+
204
+ if response is None:
205
+ return None
206
+
207
+ retry_after = response.headers.get("Retry-After")
208
+ if retry_after is None:
209
+ return None
210
+
211
+ try:
212
+ delay = float(retry_after)
213
+ except ValueError:
214
+ return None
215
+
216
+ return delay if delay >= 0 else None
217
+
218
+ async def close(self) -> None:
219
+ """Close the underlying HTTP client."""
220
+
221
+ logger.debug("Closing HTTP client")
222
+ await self._client.aclose()
223
+
224
+ @staticmethod
225
+ def _raise_for_status(
226
+ response: httpx.Response,
227
+ ) -> None:
228
+ status_code = response.status_code
229
+ error_code = HTTPClient._extract_error_code(response)
230
+
231
+ if status_code >= 400:
232
+ logger.warning(
233
+ "Aviationstack HTTP error response: status=%s",
234
+ status_code,
235
+ )
236
+
237
+ if status_code == 401:
238
+ raise AviationstackAuthenticationError(
239
+ "Aviationstack authentication failed.",
240
+ status_code=status_code,
241
+ error_code=error_code,
242
+ )
243
+
244
+ if status_code == 403:
245
+ raise AviationstackAuthorizationError(
246
+ "Aviationstack authorization failed.",
247
+ status_code=status_code,
248
+ error_code=error_code,
249
+ )
250
+
251
+ if status_code == 404:
252
+ raise AviationstackNotFoundError(
253
+ "The requested Aviationstack resource was not found.",
254
+ status_code=status_code,
255
+ )
256
+
257
+ if status_code == 429:
258
+ raise AviationstackRateLimitError(
259
+ "Aviationstack rate limit exceeded.",
260
+ status_code=status_code,
261
+ error_code=error_code,
262
+ )
263
+ if 500 <= status_code <= 599:
264
+ raise AviationstackServerError(
265
+ "Aviationstack returned a server error.",
266
+ status_code=status_code,
267
+ )
268
+
269
+ if status_code >= 400:
270
+ raise AviationstackRequestError(
271
+ "Aviationstack request failed.",
272
+ status_code=status_code,
273
+ )
274
+
275
+ @staticmethod
276
+ def _extract_error_code(response: httpx.Response) -> str | None:
277
+ """Extract only a structured provider error code from an error response."""
278
+
279
+ try:
280
+ payload = response.json()
281
+ except ValueError:
282
+ return None
283
+
284
+ if not isinstance(payload, dict):
285
+ return None
286
+
287
+ error = payload.get("error")
288
+ if not isinstance(error, dict):
289
+ return None
290
+
291
+ error_code = error.get("code")
292
+ return error_code if isinstance(error_code, str) else None
@@ -0,0 +1,3 @@
1
+ from .settings import Settings, get_settings
2
+
3
+ __all__ = ["Settings", "get_settings"]
@@ -0,0 +1,162 @@
1
+ from __future__ import annotations
2
+
3
+ import logging
4
+ from enum import StrEnum
5
+ from functools import lru_cache
6
+
7
+ from pydantic import (
8
+ AnyHttpUrl,
9
+ Field,
10
+ SecretStr,
11
+ TypeAdapter,
12
+ field_validator,
13
+ model_validator,
14
+ )
15
+ from pydantic_settings import BaseSettings, SettingsConfigDict
16
+
17
+ from aviationstack_mcp_server.security import validate_api_base_url
18
+
19
+ _http_url_adapter = TypeAdapter(AnyHttpUrl)
20
+
21
+ logger = logging.getLogger(__name__)
22
+
23
+
24
+ class Environment(StrEnum):
25
+ """Supported application environments."""
26
+
27
+ DEVELOPMENT = "development"
28
+ TESTING = "testing"
29
+ STAGING = "staging"
30
+ PRODUCTION = "production"
31
+
32
+
33
+ class Settings(BaseSettings):
34
+ """Application configuration loaded from environment variables."""
35
+
36
+ model_config = SettingsConfigDict(
37
+ env_file=".env",
38
+ env_file_encoding="utf-8",
39
+ case_sensitive=False,
40
+ extra="ignore",
41
+ )
42
+
43
+ # ------------------------------------------------------------------
44
+ # Application
45
+ # ------------------------------------------------------------------
46
+
47
+ app_name: str = "aviationstack-mcp-server"
48
+
49
+ environment: Environment = Environment.DEVELOPMENT
50
+
51
+ log_level: str = Field(
52
+ default="INFO",
53
+ )
54
+
55
+ # ------------------------------------------------------------------
56
+ # Aviationstack
57
+ # ------------------------------------------------------------------
58
+
59
+ aviationstack_api_key: SecretStr = Field(
60
+ ...,
61
+ min_length=1,
62
+ )
63
+
64
+ aviationstack_base_url: str = Field(
65
+ default="https://api.aviationstack.com/v1",
66
+ )
67
+
68
+ # ------------------------------------------------------------------
69
+ # HTTP client
70
+ # ------------------------------------------------------------------
71
+
72
+ aviationstack_connect_timeout: float = Field(
73
+ default=5.0,
74
+ gt=0,
75
+ )
76
+
77
+ aviationstack_read_timeout: float = Field(
78
+ default=30.0,
79
+ gt=0,
80
+ )
81
+
82
+ aviationstack_write_timeout: float = Field(
83
+ default=30.0,
84
+ gt=0,
85
+ )
86
+
87
+ aviationstack_pool_timeout: float = Field(
88
+ default=5.0,
89
+ gt=0,
90
+ )
91
+
92
+ # ------------------------------------------------------------------
93
+ # Retry configuration
94
+ # ------------------------------------------------------------------
95
+
96
+ aviationstack_retry_max_attempts: int = Field(
97
+ default=3,
98
+ ge=1,
99
+ le=10,
100
+ )
101
+
102
+ aviationstack_retry_backoff_factor: float = Field(
103
+ default=0.5,
104
+ ge=0,
105
+ )
106
+
107
+ # ------------------------------------------------------------------
108
+ # Validators
109
+ # ------------------------------------------------------------------
110
+
111
+ @field_validator("aviationstack_api_key")
112
+ @classmethod
113
+ def validate_api_key(
114
+ cls,
115
+ value: SecretStr,
116
+ ) -> SecretStr:
117
+ """Reject empty or whitespace-only API keys."""
118
+
119
+ if not value.get_secret_value().strip():
120
+ raise ValueError("AVIATIONSTACK_API_KEY must not be empty.")
121
+
122
+ return value
123
+
124
+ @field_validator("aviationstack_base_url")
125
+ @classmethod
126
+ def validate_base_url(cls, value: str) -> str:
127
+ """Ensure the base URL is a valid HTTP/HTTPS URL."""
128
+
129
+ _http_url_adapter.validate_python(value)
130
+
131
+ return value
132
+
133
+ @model_validator(mode="after")
134
+ def validate_environment_security(self) -> Settings:
135
+ """Apply stricter API URL policy to production configuration."""
136
+
137
+ validate_api_base_url(
138
+ self.aviationstack_base_url,
139
+ environment=self.environment.value,
140
+ )
141
+ return self
142
+
143
+
144
+ @lru_cache
145
+ def get_settings() -> Settings:
146
+ """Return the cached application settings."""
147
+
148
+ settings = Settings()
149
+ logger.debug(
150
+ "Loaded Aviationstack settings: environment=%s log_level=%s "
151
+ "base_url=%s connect_timeout=%s read_timeout=%s max_retries=%s "
152
+ "retry_backoff=%s",
153
+ settings.environment,
154
+ settings.log_level,
155
+ settings.aviationstack_base_url,
156
+ settings.aviationstack_connect_timeout,
157
+ settings.aviationstack_read_timeout,
158
+ settings.aviationstack_retry_max_attempts,
159
+ settings.aviationstack_retry_backoff_factor,
160
+ )
161
+
162
+ return settings
@@ -0,0 +1,25 @@
1
+ from .exceptions import (
2
+ AviationstackAPIError,
3
+ AviationstackAuthenticationError,
4
+ AviationstackAuthorizationError,
5
+ AviationstackConfigurationError,
6
+ AviationstackError,
7
+ AviationstackNotFoundError,
8
+ AviationstackRateLimitError,
9
+ AviationstackRequestError,
10
+ AviationstackServerError,
11
+ AviationstackTimeoutError,
12
+ )
13
+
14
+ __all__ = [
15
+ "AviationstackAPIError",
16
+ "AviationstackAuthenticationError",
17
+ "AviationstackAuthorizationError",
18
+ "AviationstackConfigurationError",
19
+ "AviationstackError",
20
+ "AviationstackNotFoundError",
21
+ "AviationstackRateLimitError",
22
+ "AviationstackRequestError",
23
+ "AviationstackServerError",
24
+ "AviationstackTimeoutError",
25
+ ]