athena-intelligence 0.1.36__tar.gz → 0.1.38__tar.gz

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 (49) hide show
  1. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/PKG-INFO +1 -1
  2. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/pyproject.toml +1 -1
  3. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/src/athena/__init__.py +2 -0
  4. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/src/athena/core/client_wrapper.py +1 -1
  5. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/src/athena/search/client.py +9 -4
  6. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/src/athena/types/__init__.py +2 -0
  7. athena_intelligence-0.1.38/src/athena/types/scrape_markdown_result.py +28 -0
  8. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/README.md +0 -0
  9. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/src/athena/base_client.py +0 -0
  10. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/src/athena/client.py +0 -0
  11. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/src/athena/core/__init__.py +0 -0
  12. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/src/athena/core/api_error.py +0 -0
  13. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/src/athena/core/datetime_utils.py +0 -0
  14. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/src/athena/core/file.py +0 -0
  15. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/src/athena/core/http_client.py +0 -0
  16. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/src/athena/core/jsonable_encoder.py +0 -0
  17. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/src/athena/core/remove_none_from_dict.py +0 -0
  18. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/src/athena/core/request_options.py +0 -0
  19. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/src/athena/dataset/__init__.py +0 -0
  20. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/src/athena/dataset/client.py +0 -0
  21. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/src/athena/environment.py +0 -0
  22. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/src/athena/errors/__init__.py +0 -0
  23. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/src/athena/errors/unprocessable_entity_error.py +0 -0
  24. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/src/athena/message/__init__.py +0 -0
  25. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/src/athena/message/client.py +0 -0
  26. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/src/athena/polling_message_client.py +0 -0
  27. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/src/athena/py.typed +0 -0
  28. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/src/athena/query/__init__.py +0 -0
  29. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/src/athena/query/client.py +0 -0
  30. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/src/athena/report/__init__.py +0 -0
  31. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/src/athena/report/client.py +0 -0
  32. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/src/athena/search/__init__.py +0 -0
  33. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/src/athena/snippet/__init__.py +0 -0
  34. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/src/athena/snippet/client.py +0 -0
  35. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/src/athena/types/dataset.py +0 -0
  36. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/src/athena/types/get_datasets_response.py +0 -0
  37. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/src/athena/types/get_snippets_response.py +0 -0
  38. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/src/athena/types/http_validation_error.py +0 -0
  39. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/src/athena/types/message_out.py +0 -0
  40. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/src/athena/types/message_out_dto.py +0 -0
  41. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/src/athena/types/model.py +0 -0
  42. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/src/athena/types/report.py +0 -0
  43. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/src/athena/types/snippet.py +0 -0
  44. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/src/athena/types/sql_results.py +0 -0
  45. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/src/athena/types/status_enum.py +0 -0
  46. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/src/athena/types/tools.py +0 -0
  47. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/src/athena/types/url_result.py +0 -0
  48. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/src/athena/types/validation_error.py +0 -0
  49. {athena_intelligence-0.1.36 → athena_intelligence-0.1.38}/src/athena/types/validation_error_loc_item.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: athena-intelligence
3
- Version: 0.1.36
3
+ Version: 0.1.38
4
4
  Summary:
5
5
  Requires-Python: >=3.8,<4.0
6
6
  Classifier: Programming Language :: Python :: 3
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "athena-intelligence"
3
- version = "0.1.36"
3
+ version = "0.1.38"
4
4
  description = ""
5
5
  readme = "README.md"
6
6
  authors = []
@@ -9,6 +9,7 @@ from .types import (
9
9
  MessageOutDto,
10
10
  Model,
11
11
  Report,
12
+ ScrapeMarkdownResult,
12
13
  Snippet,
13
14
  SqlResults,
14
15
  StatusEnum,
@@ -31,6 +32,7 @@ __all__ = [
31
32
  "MessageOutDto",
32
33
  "Model",
33
34
  "Report",
35
+ "ScrapeMarkdownResult",
34
36
  "Snippet",
35
37
  "SqlResults",
36
38
  "StatusEnum",
@@ -16,7 +16,7 @@ class BaseClientWrapper:
16
16
  headers: typing.Dict[str, str] = {
17
17
  "X-Fern-Language": "Python",
18
18
  "X-Fern-SDK-Name": "athena-intelligence",
19
- "X-Fern-SDK-Version": "0.1.36",
19
+ "X-Fern-SDK-Version": "0.1.38",
20
20
  }
21
21
  headers["X-API-KEY"] = self.api_key
22
22
  return headers
@@ -11,6 +11,7 @@ from ..core.remove_none_from_dict import remove_none_from_dict
11
11
  from ..core.request_options import RequestOptions
12
12
  from ..errors.unprocessable_entity_error import UnprocessableEntityError
13
13
  from ..types.http_validation_error import HttpValidationError
14
+ from ..types.scrape_markdown_result import ScrapeMarkdownResult
14
15
  from ..types.url_result import UrlResult
15
16
 
16
17
  try:
@@ -107,7 +108,9 @@ class SearchClient:
107
108
  raise ApiError(status_code=_response.status_code, body=_response.text)
108
109
  raise ApiError(status_code=_response.status_code, body=_response_json)
109
110
 
110
- def get_markdown(self, *, url: str, request_options: typing.Optional[RequestOptions] = None) -> UrlResult:
111
+ def get_markdown(
112
+ self, *, url: str, request_options: typing.Optional[RequestOptions] = None
113
+ ) -> ScrapeMarkdownResult:
111
114
  """
112
115
  Parameters:
113
116
  - url: str.
@@ -150,7 +153,7 @@ class SearchClient:
150
153
  max_retries=request_options.get("max_retries") if request_options is not None else 0, # type: ignore
151
154
  )
152
155
  if 200 <= _response.status_code < 300:
153
- return pydantic.parse_obj_as(UrlResult, _response.json()) # type: ignore
156
+ return pydantic.parse_obj_as(ScrapeMarkdownResult, _response.json()) # type: ignore
154
157
  if _response.status_code == 422:
155
158
  raise UnprocessableEntityError(pydantic.parse_obj_as(HttpValidationError, _response.json())) # type: ignore
156
159
  try:
@@ -245,7 +248,9 @@ class AsyncSearchClient:
245
248
  raise ApiError(status_code=_response.status_code, body=_response.text)
246
249
  raise ApiError(status_code=_response.status_code, body=_response_json)
247
250
 
248
- async def get_markdown(self, *, url: str, request_options: typing.Optional[RequestOptions] = None) -> UrlResult:
251
+ async def get_markdown(
252
+ self, *, url: str, request_options: typing.Optional[RequestOptions] = None
253
+ ) -> ScrapeMarkdownResult:
249
254
  """
250
255
  Parameters:
251
256
  - url: str.
@@ -288,7 +293,7 @@ class AsyncSearchClient:
288
293
  max_retries=request_options.get("max_retries") if request_options is not None else 0, # type: ignore
289
294
  )
290
295
  if 200 <= _response.status_code < 300:
291
- return pydantic.parse_obj_as(UrlResult, _response.json()) # type: ignore
296
+ return pydantic.parse_obj_as(ScrapeMarkdownResult, _response.json()) # type: ignore
292
297
  if _response.status_code == 422:
293
298
  raise UnprocessableEntityError(pydantic.parse_obj_as(HttpValidationError, _response.json())) # type: ignore
294
299
  try:
@@ -8,6 +8,7 @@ from .message_out import MessageOut
8
8
  from .message_out_dto import MessageOutDto
9
9
  from .model import Model
10
10
  from .report import Report
11
+ from .scrape_markdown_result import ScrapeMarkdownResult
11
12
  from .snippet import Snippet
12
13
  from .sql_results import SqlResults
13
14
  from .status_enum import StatusEnum
@@ -25,6 +26,7 @@ __all__ = [
25
26
  "MessageOutDto",
26
27
  "Model",
27
28
  "Report",
29
+ "ScrapeMarkdownResult",
28
30
  "Snippet",
29
31
  "SqlResults",
30
32
  "StatusEnum",
@@ -0,0 +1,28 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import datetime as dt
4
+ import typing
5
+
6
+ from ..core.datetime_utils import serialize_datetime
7
+
8
+ try:
9
+ import pydantic.v1 as pydantic # type: ignore
10
+ except ImportError:
11
+ import pydantic # type: ignore
12
+
13
+
14
+ class ScrapeMarkdownResult(pydantic.BaseModel):
15
+ markdown: str
16
+
17
+ def json(self, **kwargs: typing.Any) -> str:
18
+ kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
19
+ return super().json(**kwargs_with_defaults)
20
+
21
+ def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
22
+ kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
23
+ return super().dict(**kwargs_with_defaults)
24
+
25
+ class Config:
26
+ frozen = True
27
+ smart_union = True
28
+ json_encoders = {dt.datetime: serialize_datetime}