cartography-client 0.3.0__tar.gz → 0.4.0__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.

Potentially problematic release.


This version of cartography-client might be problematic. Click here for more details.

Files changed (112) hide show
  1. cartography_client-0.4.0/.release-please-manifest.json +3 -0
  2. {cartography_client-0.3.0 → cartography_client-0.4.0}/CHANGELOG.md +22 -0
  3. {cartography_client-0.3.0 → cartography_client-0.4.0}/PKG-INFO +1 -1
  4. {cartography_client-0.3.0 → cartography_client-0.4.0}/pyproject.toml +1 -1
  5. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/_version.py +1 -1
  6. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/resources/crawl.py +4 -3
  7. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/resources/workflows/request/crawl.py +4 -3
  8. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/types/crawl_create_graph_params.py +3 -3
  9. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/types/downloader_type.py +1 -1
  10. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/types/scrape_engine_param.py +1 -2
  11. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/types/workflows/request/crawl_create_params.py +3 -3
  12. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/types/workflows/request/crawl_request_param.py +3 -3
  13. {cartography_client-0.3.0 → cartography_client-0.4.0}/tests/api_resources/test_api_info.py +6 -6
  14. {cartography_client-0.3.0 → cartography_client-0.4.0}/tests/api_resources/test_crawl.py +36 -36
  15. {cartography_client-0.3.0 → cartography_client-0.4.0}/tests/api_resources/test_download.py +20 -20
  16. {cartography_client-0.3.0 → cartography_client-0.4.0}/tests/api_resources/test_health.py +6 -6
  17. {cartography_client-0.3.0 → cartography_client-0.4.0}/tests/api_resources/test_scrape.py +28 -28
  18. {cartography_client-0.3.0 → cartography_client-0.4.0}/tests/api_resources/test_workflows.py +16 -16
  19. {cartography_client-0.3.0 → cartography_client-0.4.0}/tests/api_resources/workflows/request/test_crawl.py +28 -28
  20. {cartography_client-0.3.0 → cartography_client-0.4.0}/tests/api_resources/workflows/test_request.py +6 -6
  21. cartography_client-0.3.0/.release-please-manifest.json +0 -3
  22. {cartography_client-0.3.0 → cartography_client-0.4.0}/.gitignore +0 -0
  23. {cartography_client-0.3.0 → cartography_client-0.4.0}/CONTRIBUTING.md +0 -0
  24. {cartography_client-0.3.0 → cartography_client-0.4.0}/LICENSE +0 -0
  25. {cartography_client-0.3.0 → cartography_client-0.4.0}/README.md +0 -0
  26. {cartography_client-0.3.0 → cartography_client-0.4.0}/SECURITY.md +0 -0
  27. {cartography_client-0.3.0 → cartography_client-0.4.0}/api.md +0 -0
  28. {cartography_client-0.3.0 → cartography_client-0.4.0}/bin/check-release-environment +0 -0
  29. {cartography_client-0.3.0 → cartography_client-0.4.0}/bin/publish-pypi +0 -0
  30. {cartography_client-0.3.0 → cartography_client-0.4.0}/examples/.keep +0 -0
  31. {cartography_client-0.3.0 → cartography_client-0.4.0}/mypy.ini +0 -0
  32. {cartography_client-0.3.0 → cartography_client-0.4.0}/noxfile.py +0 -0
  33. {cartography_client-0.3.0 → cartography_client-0.4.0}/release-please-config.json +0 -0
  34. {cartography_client-0.3.0 → cartography_client-0.4.0}/requirements-dev.lock +0 -0
  35. {cartography_client-0.3.0 → cartography_client-0.4.0}/requirements.lock +0 -0
  36. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/__init__.py +0 -0
  37. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/_base_client.py +0 -0
  38. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/_client.py +0 -0
  39. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/_compat.py +0 -0
  40. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/_constants.py +0 -0
  41. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/_exceptions.py +0 -0
  42. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/_files.py +0 -0
  43. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/_models.py +0 -0
  44. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/_qs.py +0 -0
  45. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/_resource.py +0 -0
  46. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/_response.py +0 -0
  47. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/_streaming.py +0 -0
  48. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/_types.py +0 -0
  49. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/_utils/__init__.py +0 -0
  50. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/_utils/_logs.py +0 -0
  51. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/_utils/_proxy.py +0 -0
  52. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/_utils/_reflection.py +0 -0
  53. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/_utils/_resources_proxy.py +0 -0
  54. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/_utils/_streams.py +0 -0
  55. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/_utils/_sync.py +0 -0
  56. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/_utils/_transform.py +0 -0
  57. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/_utils/_typing.py +0 -0
  58. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/_utils/_utils.py +0 -0
  59. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/lib/.keep +0 -0
  60. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/py.typed +0 -0
  61. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/resources/__init__.py +0 -0
  62. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/resources/api_info.py +0 -0
  63. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/resources/download.py +0 -0
  64. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/resources/health.py +0 -0
  65. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/resources/scrape.py +0 -0
  66. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/resources/workflows/__init__.py +0 -0
  67. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/resources/workflows/request/__init__.py +0 -0
  68. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/resources/workflows/request/request.py +0 -0
  69. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/resources/workflows/workflows.py +0 -0
  70. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/types/__init__.py +0 -0
  71. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/types/api_info_retrieve_response.py +0 -0
  72. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/types/bulk_download_result.py +0 -0
  73. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/types/bulk_scrape_result.py +0 -0
  74. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/types/crawl_create_graph_response.py +0 -0
  75. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/types/download_create_bulk_params.py +0 -0
  76. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/types/download_create_bulk_response.py +0 -0
  77. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/types/download_create_single_params.py +0 -0
  78. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/types/download_create_single_response.py +0 -0
  79. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/types/health_check_response.py +0 -0
  80. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/types/scrape_scrape_bulk_params.py +0 -0
  81. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/types/scrape_scrape_bulk_response.py +0 -0
  82. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/types/scrape_scrape_single_params.py +0 -0
  83. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/types/scrape_scrape_single_response.py +0 -0
  84. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/types/wait_until.py +0 -0
  85. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/types/workflow_describe_response.py +0 -0
  86. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/types/workflow_results_response.py +0 -0
  87. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/types/workflows/__init__.py +0 -0
  88. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/types/workflows/request/__init__.py +0 -0
  89. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/types/workflows/request/crawl_create_bulk_params.py +0 -0
  90. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/types/workflows/request/crawl_create_bulk_response.py +0 -0
  91. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/types/workflows/request/workflow_result.py +0 -0
  92. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/types/workflows/request_create_download_params.py +0 -0
  93. {cartography_client-0.3.0 → cartography_client-0.4.0}/src/cartography/types/workflows/request_create_download_response.py +0 -0
  94. {cartography_client-0.3.0 → cartography_client-0.4.0}/tests/__init__.py +0 -0
  95. {cartography_client-0.3.0 → cartography_client-0.4.0}/tests/api_resources/__init__.py +0 -0
  96. {cartography_client-0.3.0 → cartography_client-0.4.0}/tests/api_resources/workflows/__init__.py +0 -0
  97. {cartography_client-0.3.0 → cartography_client-0.4.0}/tests/api_resources/workflows/request/__init__.py +0 -0
  98. {cartography_client-0.3.0 → cartography_client-0.4.0}/tests/conftest.py +0 -0
  99. {cartography_client-0.3.0 → cartography_client-0.4.0}/tests/sample_file.txt +0 -0
  100. {cartography_client-0.3.0 → cartography_client-0.4.0}/tests/test_client.py +0 -0
  101. {cartography_client-0.3.0 → cartography_client-0.4.0}/tests/test_deepcopy.py +0 -0
  102. {cartography_client-0.3.0 → cartography_client-0.4.0}/tests/test_extract_files.py +0 -0
  103. {cartography_client-0.3.0 → cartography_client-0.4.0}/tests/test_files.py +0 -0
  104. {cartography_client-0.3.0 → cartography_client-0.4.0}/tests/test_models.py +0 -0
  105. {cartography_client-0.3.0 → cartography_client-0.4.0}/tests/test_qs.py +0 -0
  106. {cartography_client-0.3.0 → cartography_client-0.4.0}/tests/test_required_args.py +0 -0
  107. {cartography_client-0.3.0 → cartography_client-0.4.0}/tests/test_response.py +0 -0
  108. {cartography_client-0.3.0 → cartography_client-0.4.0}/tests/test_streaming.py +0 -0
  109. {cartography_client-0.3.0 → cartography_client-0.4.0}/tests/test_transform.py +0 -0
  110. {cartography_client-0.3.0 → cartography_client-0.4.0}/tests/test_utils/test_proxy.py +0 -0
  111. {cartography_client-0.3.0 → cartography_client-0.4.0}/tests/test_utils/test_typing.py +0 -0
  112. {cartography_client-0.3.0 → cartography_client-0.4.0}/tests/utils.py +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.4.0"
3
+ }
@@ -1,5 +1,27 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.0 (2025-08-12)
4
+
5
+ Full Changelog: [v0.3.1...v0.4.0](https://github.com/evrimai/cartography-client/compare/v0.3.1...v0.4.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([153bc19](https://github.com/evrimai/cartography-client/commit/153bc192d14eb79fdfa4f145993aebbf15e5c36d))
10
+
11
+
12
+ ### Chores
13
+
14
+ * **internal:** codegen related update ([b85c126](https://github.com/evrimai/cartography-client/commit/b85c12659f0b39c6199de08fe7056c7e99b1f02c))
15
+ * **internal:** update comment in script ([a07f9a0](https://github.com/evrimai/cartography-client/commit/a07f9a0d031cd204b36c9809aa836a41141e1f75))
16
+
17
+ ## 0.3.1 (2025-08-09)
18
+
19
+ Full Changelog: [v0.3.0...v0.3.1](https://github.com/evrimai/cartography-client/compare/v0.3.0...v0.3.1)
20
+
21
+ ### Chores
22
+
23
+ * update @stainless-api/prism-cli to v5.15.0 ([5cd60ac](https://github.com/evrimai/cartography-client/commit/5cd60acb8f0654f9b86003f311aaeab26c0a63aa))
24
+
3
25
  ## 0.3.0 (2025-08-05)
4
26
 
5
27
  Full Changelog: [v0.2.0...v0.3.0](https://github.com/evrimai/cartography-client/compare/v0.2.0...v0.3.0)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: cartography-client
3
- Version: 0.3.0
3
+ Version: 0.4.0
4
4
  Summary: The official Python library for the cartography API
5
5
  Project-URL: Homepage, https://github.com/evrimai/cartography-client
6
6
  Project-URL: Repository, https://github.com/evrimai/cartography-client
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "cartography-client"
3
- version = "0.3.0"
3
+ version = "0.4.0"
4
4
  description = "The official Python library for the cartography API"
5
5
  dynamic = ["readme"]
6
6
  license = "Apache-2.0"
@@ -1,4 +1,4 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  __title__ = "cartography"
4
- __version__ = "0.3.0" # x-release-please-version
4
+ __version__ = "0.4.0" # x-release-please-version
@@ -2,7 +2,8 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Dict, Iterable, Optional
5
+ from typing import List, Optional
6
+ from typing_extensions import Literal
6
7
 
7
8
  import httpx
8
9
 
@@ -47,7 +48,7 @@ class CrawlResource(SyncAPIResource):
47
48
  self,
48
49
  *,
49
50
  crawl_id: str,
50
- engines: Iterable[Dict[str, object]],
51
+ engines: List[Literal["FLEET", "ZENROWS", "SCRAPINGBEE", "FLEET_ASYNC", "FLEET_WORKFLOW"]],
51
52
  s3_bucket: str,
52
53
  url: str,
53
54
  absolute_only: bool | NotGiven = NOT_GIVEN,
@@ -157,7 +158,7 @@ class AsyncCrawlResource(AsyncAPIResource):
157
158
  self,
158
159
  *,
159
160
  crawl_id: str,
160
- engines: Iterable[Dict[str, object]],
161
+ engines: List[Literal["FLEET", "ZENROWS", "SCRAPINGBEE", "FLEET_ASYNC", "FLEET_WORKFLOW"]],
161
162
  s3_bucket: str,
162
163
  url: str,
163
164
  absolute_only: bool | NotGiven = NOT_GIVEN,
@@ -2,7 +2,8 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Dict, Iterable
5
+ from typing import List, Iterable
6
+ from typing_extensions import Literal
6
7
 
7
8
  import httpx
8
9
 
@@ -50,7 +51,7 @@ class CrawlResource(SyncAPIResource):
50
51
  *,
51
52
  bucket_name: str,
52
53
  crawl_id: str,
53
- engines: Iterable[Dict[str, object]],
54
+ engines: List[Literal["FLEET", "ZENROWS", "SCRAPINGBEE", "FLEET_ASYNC", "FLEET_WORKFLOW"]],
54
55
  url: str,
55
56
  absolute_only: bool | NotGiven = NOT_GIVEN,
56
57
  batch_size: int | NotGiven = NOT_GIVEN,
@@ -161,7 +162,7 @@ class AsyncCrawlResource(AsyncAPIResource):
161
162
  *,
162
163
  bucket_name: str,
163
164
  crawl_id: str,
164
- engines: Iterable[Dict[str, object]],
165
+ engines: List[Literal["FLEET", "ZENROWS", "SCRAPINGBEE", "FLEET_ASYNC", "FLEET_WORKFLOW"]],
165
166
  url: str,
166
167
  absolute_only: bool | NotGiven = NOT_GIVEN,
167
168
  batch_size: int | NotGiven = NOT_GIVEN,
@@ -2,8 +2,8 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Dict, Iterable, Optional
6
- from typing_extensions import Required, TypedDict
5
+ from typing import List, Optional
6
+ from typing_extensions import Literal, Required, TypedDict
7
7
 
8
8
  __all__ = ["CrawlCreateGraphParams"]
9
9
 
@@ -12,7 +12,7 @@ class CrawlCreateGraphParams(TypedDict, total=False):
12
12
  crawl_id: Required[str]
13
13
  """Unique identifier for this crawl"""
14
14
 
15
- engines: Required[Iterable[Dict[str, object]]]
15
+ engines: Required[List[Literal["FLEET", "ZENROWS", "SCRAPINGBEE", "FLEET_ASYNC", "FLEET_WORKFLOW"]]]
16
16
  """List of engines to use"""
17
17
 
18
18
  s3_bucket: Required[str]
@@ -4,4 +4,4 @@ from typing_extensions import Literal, TypeAlias
4
4
 
5
5
  __all__ = ["DownloaderType"]
6
6
 
7
- DownloaderType: TypeAlias = Literal["async_fleet"]
7
+ DownloaderType: TypeAlias = Literal["FLEET_ASYNC"]
@@ -9,8 +9,7 @@ __all__ = ["ScrapeEngineParam"]
9
9
 
10
10
 
11
11
  class ScrapeEngineParam(TypedDict, total=False):
12
- engine_type: Required[Literal["SCRAPINGBEE", "ZENROWS", "FLEET", "ASYNC_FLEET"]]
13
- """Available engine types"""
12
+ engine_type: Required[Literal["FLEET", "ZENROWS", "SCRAPINGBEE", "FLEET_ASYNC", "FLEET_WORKFLOW"]]
14
13
 
15
14
  headers: Optional[Dict[str, str]]
16
15
  """Custom headers"""
@@ -2,8 +2,8 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Dict, Iterable
6
- from typing_extensions import Required, TypedDict
5
+ from typing import List
6
+ from typing_extensions import Literal, Required, TypedDict
7
7
 
8
8
  __all__ = ["CrawlCreateParams"]
9
9
 
@@ -13,7 +13,7 @@ class CrawlCreateParams(TypedDict, total=False):
13
13
 
14
14
  crawl_id: Required[str]
15
15
 
16
- engines: Required[Iterable[Dict[str, object]]]
16
+ engines: Required[List[Literal["FLEET", "ZENROWS", "SCRAPINGBEE", "FLEET_ASYNC", "FLEET_WORKFLOW"]]]
17
17
 
18
18
  url: Required[str]
19
19
 
@@ -2,8 +2,8 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Dict, Iterable
6
- from typing_extensions import Required, TypedDict
5
+ from typing import List
6
+ from typing_extensions import Literal, Required, TypedDict
7
7
 
8
8
  __all__ = ["CrawlRequestParam"]
9
9
 
@@ -13,7 +13,7 @@ class CrawlRequestParam(TypedDict, total=False):
13
13
 
14
14
  crawl_id: Required[str]
15
15
 
16
- engines: Required[Iterable[Dict[str, object]]]
16
+ engines: Required[List[Literal["FLEET", "ZENROWS", "SCRAPINGBEE", "FLEET_ASYNC", "FLEET_WORKFLOW"]]]
17
17
 
18
18
  url: Required[str]
19
19
 
@@ -17,13 +17,13 @@ base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
17
17
  class TestAPIInfo:
18
18
  parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])
19
19
 
20
- @pytest.mark.skip()
20
+ @pytest.mark.skip(reason="Prism tests are disabled")
21
21
  @parametrize
22
22
  def test_method_retrieve(self, client: Cartography) -> None:
23
23
  api_info = client.api_info.retrieve()
24
24
  assert_matches_type(APIInfoRetrieveResponse, api_info, path=["response"])
25
25
 
26
- @pytest.mark.skip()
26
+ @pytest.mark.skip(reason="Prism tests are disabled")
27
27
  @parametrize
28
28
  def test_raw_response_retrieve(self, client: Cartography) -> None:
29
29
  response = client.api_info.with_raw_response.retrieve()
@@ -33,7 +33,7 @@ class TestAPIInfo:
33
33
  api_info = response.parse()
34
34
  assert_matches_type(APIInfoRetrieveResponse, api_info, path=["response"])
35
35
 
36
- @pytest.mark.skip()
36
+ @pytest.mark.skip(reason="Prism tests are disabled")
37
37
  @parametrize
38
38
  def test_streaming_response_retrieve(self, client: Cartography) -> None:
39
39
  with client.api_info.with_streaming_response.retrieve() as response:
@@ -51,13 +51,13 @@ class TestAsyncAPIInfo:
51
51
  "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
52
52
  )
53
53
 
54
- @pytest.mark.skip()
54
+ @pytest.mark.skip(reason="Prism tests are disabled")
55
55
  @parametrize
56
56
  async def test_method_retrieve(self, async_client: AsyncCartography) -> None:
57
57
  api_info = await async_client.api_info.retrieve()
58
58
  assert_matches_type(APIInfoRetrieveResponse, api_info, path=["response"])
59
59
 
60
- @pytest.mark.skip()
60
+ @pytest.mark.skip(reason="Prism tests are disabled")
61
61
  @parametrize
62
62
  async def test_raw_response_retrieve(self, async_client: AsyncCartography) -> None:
63
63
  response = await async_client.api_info.with_raw_response.retrieve()
@@ -67,7 +67,7 @@ class TestAsyncAPIInfo:
67
67
  api_info = await response.parse()
68
68
  assert_matches_type(APIInfoRetrieveResponse, api_info, path=["response"])
69
69
 
70
- @pytest.mark.skip()
70
+ @pytest.mark.skip(reason="Prism tests are disabled")
71
71
  @parametrize
72
72
  async def test_streaming_response_retrieve(self, async_client: AsyncCartography) -> None:
73
73
  async with async_client.api_info.with_streaming_response.retrieve() as response:
@@ -17,43 +17,43 @@ base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
17
17
  class TestCrawl:
18
18
  parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])
19
19
 
20
- @pytest.mark.skip()
20
+ @pytest.mark.skip(reason="Prism tests are disabled")
21
21
  @parametrize
22
22
  def test_method_create_graph(self, client: Cartography) -> None:
23
23
  crawl = client.crawl.create_graph(
24
- crawl_id="crawl-123",
25
- engines=[{"engine_type": "bar"}],
26
- s3_bucket="my-crawl-bucket",
24
+ crawl_id="crawl_id",
25
+ engines=["FLEET"],
26
+ s3_bucket="s3_bucket",
27
27
  url="https://example.com",
28
28
  )
29
29
  assert_matches_type(CrawlCreateGraphResponse, crawl, path=["response"])
30
30
 
31
- @pytest.mark.skip()
31
+ @pytest.mark.skip(reason="Prism tests are disabled")
32
32
  @parametrize
33
33
  def test_method_create_graph_with_all_params(self, client: Cartography) -> None:
34
34
  crawl = client.crawl.create_graph(
35
- crawl_id="crawl-123",
36
- engines=[{"engine_type": "bar"}],
37
- s3_bucket="my-crawl-bucket",
35
+ crawl_id="crawl_id",
36
+ engines=["FLEET"],
37
+ s3_bucket="s3_bucket",
38
38
  url="https://example.com",
39
39
  absolute_only=True,
40
40
  batch_size=1,
41
41
  debug=True,
42
- depth=3,
42
+ depth=1,
43
43
  keep_external=True,
44
- max_urls=500,
44
+ max_urls=1,
45
45
  max_workers=1,
46
46
  visit_external=True,
47
47
  )
48
48
  assert_matches_type(CrawlCreateGraphResponse, crawl, path=["response"])
49
49
 
50
- @pytest.mark.skip()
50
+ @pytest.mark.skip(reason="Prism tests are disabled")
51
51
  @parametrize
52
52
  def test_raw_response_create_graph(self, client: Cartography) -> None:
53
53
  response = client.crawl.with_raw_response.create_graph(
54
- crawl_id="crawl-123",
55
- engines=[{"engine_type": "bar"}],
56
- s3_bucket="my-crawl-bucket",
54
+ crawl_id="crawl_id",
55
+ engines=["FLEET"],
56
+ s3_bucket="s3_bucket",
57
57
  url="https://example.com",
58
58
  )
59
59
 
@@ -62,13 +62,13 @@ class TestCrawl:
62
62
  crawl = response.parse()
63
63
  assert_matches_type(CrawlCreateGraphResponse, crawl, path=["response"])
64
64
 
65
- @pytest.mark.skip()
65
+ @pytest.mark.skip(reason="Prism tests are disabled")
66
66
  @parametrize
67
67
  def test_streaming_response_create_graph(self, client: Cartography) -> None:
68
68
  with client.crawl.with_streaming_response.create_graph(
69
- crawl_id="crawl-123",
70
- engines=[{"engine_type": "bar"}],
71
- s3_bucket="my-crawl-bucket",
69
+ crawl_id="crawl_id",
70
+ engines=["FLEET"],
71
+ s3_bucket="s3_bucket",
72
72
  url="https://example.com",
73
73
  ) as response:
74
74
  assert not response.is_closed
@@ -85,43 +85,43 @@ class TestAsyncCrawl:
85
85
  "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
86
86
  )
87
87
 
88
- @pytest.mark.skip()
88
+ @pytest.mark.skip(reason="Prism tests are disabled")
89
89
  @parametrize
90
90
  async def test_method_create_graph(self, async_client: AsyncCartography) -> None:
91
91
  crawl = await async_client.crawl.create_graph(
92
- crawl_id="crawl-123",
93
- engines=[{"engine_type": "bar"}],
94
- s3_bucket="my-crawl-bucket",
92
+ crawl_id="crawl_id",
93
+ engines=["FLEET"],
94
+ s3_bucket="s3_bucket",
95
95
  url="https://example.com",
96
96
  )
97
97
  assert_matches_type(CrawlCreateGraphResponse, crawl, path=["response"])
98
98
 
99
- @pytest.mark.skip()
99
+ @pytest.mark.skip(reason="Prism tests are disabled")
100
100
  @parametrize
101
101
  async def test_method_create_graph_with_all_params(self, async_client: AsyncCartography) -> None:
102
102
  crawl = await async_client.crawl.create_graph(
103
- crawl_id="crawl-123",
104
- engines=[{"engine_type": "bar"}],
105
- s3_bucket="my-crawl-bucket",
103
+ crawl_id="crawl_id",
104
+ engines=["FLEET"],
105
+ s3_bucket="s3_bucket",
106
106
  url="https://example.com",
107
107
  absolute_only=True,
108
108
  batch_size=1,
109
109
  debug=True,
110
- depth=3,
110
+ depth=1,
111
111
  keep_external=True,
112
- max_urls=500,
112
+ max_urls=1,
113
113
  max_workers=1,
114
114
  visit_external=True,
115
115
  )
116
116
  assert_matches_type(CrawlCreateGraphResponse, crawl, path=["response"])
117
117
 
118
- @pytest.mark.skip()
118
+ @pytest.mark.skip(reason="Prism tests are disabled")
119
119
  @parametrize
120
120
  async def test_raw_response_create_graph(self, async_client: AsyncCartography) -> None:
121
121
  response = await async_client.crawl.with_raw_response.create_graph(
122
- crawl_id="crawl-123",
123
- engines=[{"engine_type": "bar"}],
124
- s3_bucket="my-crawl-bucket",
122
+ crawl_id="crawl_id",
123
+ engines=["FLEET"],
124
+ s3_bucket="s3_bucket",
125
125
  url="https://example.com",
126
126
  )
127
127
 
@@ -130,13 +130,13 @@ class TestAsyncCrawl:
130
130
  crawl = await response.parse()
131
131
  assert_matches_type(CrawlCreateGraphResponse, crawl, path=["response"])
132
132
 
133
- @pytest.mark.skip()
133
+ @pytest.mark.skip(reason="Prism tests are disabled")
134
134
  @parametrize
135
135
  async def test_streaming_response_create_graph(self, async_client: AsyncCartography) -> None:
136
136
  async with async_client.crawl.with_streaming_response.create_graph(
137
- crawl_id="crawl-123",
138
- engines=[{"engine_type": "bar"}],
139
- s3_bucket="my-crawl-bucket",
137
+ crawl_id="crawl_id",
138
+ engines=["FLEET"],
139
+ s3_bucket="s3_bucket",
140
140
  url="https://example.com",
141
141
  ) as response:
142
142
  assert not response.is_closed
@@ -20,7 +20,7 @@ base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
20
20
  class TestDownload:
21
21
  parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])
22
22
 
23
- @pytest.mark.skip()
23
+ @pytest.mark.skip(reason="Prism tests are disabled")
24
24
  @parametrize
25
25
  def test_method_create_bulk(self, client: Cartography) -> None:
26
26
  download = client.download.create_bulk(
@@ -30,7 +30,7 @@ class TestDownload:
30
30
  )
31
31
  assert_matches_type(DownloadCreateBulkResponse, download, path=["response"])
32
32
 
33
- @pytest.mark.skip()
33
+ @pytest.mark.skip(reason="Prism tests are disabled")
34
34
  @parametrize
35
35
  def test_method_create_bulk_with_all_params(self, client: Cartography) -> None:
36
36
  download = client.download.create_bulk(
@@ -39,13 +39,13 @@ class TestDownload:
39
39
  urls=["https://example.com/file1.pdf", "https://example.com/file2.pdf"],
40
40
  batch_size=1,
41
41
  debug=True,
42
- downloader_type="async_fleet",
42
+ downloader_type="FLEET_ASYNC",
43
43
  max_workers=8,
44
44
  wait_until="commit",
45
45
  )
46
46
  assert_matches_type(DownloadCreateBulkResponse, download, path=["response"])
47
47
 
48
- @pytest.mark.skip()
48
+ @pytest.mark.skip(reason="Prism tests are disabled")
49
49
  @parametrize
50
50
  def test_raw_response_create_bulk(self, client: Cartography) -> None:
51
51
  response = client.download.with_raw_response.create_bulk(
@@ -59,7 +59,7 @@ class TestDownload:
59
59
  download = response.parse()
60
60
  assert_matches_type(DownloadCreateBulkResponse, download, path=["response"])
61
61
 
62
- @pytest.mark.skip()
62
+ @pytest.mark.skip(reason="Prism tests are disabled")
63
63
  @parametrize
64
64
  def test_streaming_response_create_bulk(self, client: Cartography) -> None:
65
65
  with client.download.with_streaming_response.create_bulk(
@@ -75,7 +75,7 @@ class TestDownload:
75
75
 
76
76
  assert cast(Any, response.is_closed) is True
77
77
 
78
- @pytest.mark.skip()
78
+ @pytest.mark.skip(reason="Prism tests are disabled")
79
79
  @parametrize
80
80
  def test_method_create_single(self, client: Cartography) -> None:
81
81
  download = client.download.create_single(
@@ -84,20 +84,20 @@ class TestDownload:
84
84
  )
85
85
  assert_matches_type(DownloadCreateSingleResponse, download, path=["response"])
86
86
 
87
- @pytest.mark.skip()
87
+ @pytest.mark.skip(reason="Prism tests are disabled")
88
88
  @parametrize
89
89
  def test_method_create_single_with_all_params(self, client: Cartography) -> None:
90
90
  download = client.download.create_single(
91
91
  s3_bucket="my-downloads",
92
92
  url="https://example.com/file.pdf",
93
- downloader_type="async_fleet",
93
+ downloader_type="FLEET_ASYNC",
94
94
  s3_key="s3_key",
95
95
  api_timeout=1000,
96
96
  wait_until="load",
97
97
  )
98
98
  assert_matches_type(DownloadCreateSingleResponse, download, path=["response"])
99
99
 
100
- @pytest.mark.skip()
100
+ @pytest.mark.skip(reason="Prism tests are disabled")
101
101
  @parametrize
102
102
  def test_raw_response_create_single(self, client: Cartography) -> None:
103
103
  response = client.download.with_raw_response.create_single(
@@ -110,7 +110,7 @@ class TestDownload:
110
110
  download = response.parse()
111
111
  assert_matches_type(DownloadCreateSingleResponse, download, path=["response"])
112
112
 
113
- @pytest.mark.skip()
113
+ @pytest.mark.skip(reason="Prism tests are disabled")
114
114
  @parametrize
115
115
  def test_streaming_response_create_single(self, client: Cartography) -> None:
116
116
  with client.download.with_streaming_response.create_single(
@@ -131,7 +131,7 @@ class TestAsyncDownload:
131
131
  "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
132
132
  )
133
133
 
134
- @pytest.mark.skip()
134
+ @pytest.mark.skip(reason="Prism tests are disabled")
135
135
  @parametrize
136
136
  async def test_method_create_bulk(self, async_client: AsyncCartography) -> None:
137
137
  download = await async_client.download.create_bulk(
@@ -141,7 +141,7 @@ class TestAsyncDownload:
141
141
  )
142
142
  assert_matches_type(DownloadCreateBulkResponse, download, path=["response"])
143
143
 
144
- @pytest.mark.skip()
144
+ @pytest.mark.skip(reason="Prism tests are disabled")
145
145
  @parametrize
146
146
  async def test_method_create_bulk_with_all_params(self, async_client: AsyncCartography) -> None:
147
147
  download = await async_client.download.create_bulk(
@@ -150,13 +150,13 @@ class TestAsyncDownload:
150
150
  urls=["https://example.com/file1.pdf", "https://example.com/file2.pdf"],
151
151
  batch_size=1,
152
152
  debug=True,
153
- downloader_type="async_fleet",
153
+ downloader_type="FLEET_ASYNC",
154
154
  max_workers=8,
155
155
  wait_until="commit",
156
156
  )
157
157
  assert_matches_type(DownloadCreateBulkResponse, download, path=["response"])
158
158
 
159
- @pytest.mark.skip()
159
+ @pytest.mark.skip(reason="Prism tests are disabled")
160
160
  @parametrize
161
161
  async def test_raw_response_create_bulk(self, async_client: AsyncCartography) -> None:
162
162
  response = await async_client.download.with_raw_response.create_bulk(
@@ -170,7 +170,7 @@ class TestAsyncDownload:
170
170
  download = await response.parse()
171
171
  assert_matches_type(DownloadCreateBulkResponse, download, path=["response"])
172
172
 
173
- @pytest.mark.skip()
173
+ @pytest.mark.skip(reason="Prism tests are disabled")
174
174
  @parametrize
175
175
  async def test_streaming_response_create_bulk(self, async_client: AsyncCartography) -> None:
176
176
  async with async_client.download.with_streaming_response.create_bulk(
@@ -186,7 +186,7 @@ class TestAsyncDownload:
186
186
 
187
187
  assert cast(Any, response.is_closed) is True
188
188
 
189
- @pytest.mark.skip()
189
+ @pytest.mark.skip(reason="Prism tests are disabled")
190
190
  @parametrize
191
191
  async def test_method_create_single(self, async_client: AsyncCartography) -> None:
192
192
  download = await async_client.download.create_single(
@@ -195,20 +195,20 @@ class TestAsyncDownload:
195
195
  )
196
196
  assert_matches_type(DownloadCreateSingleResponse, download, path=["response"])
197
197
 
198
- @pytest.mark.skip()
198
+ @pytest.mark.skip(reason="Prism tests are disabled")
199
199
  @parametrize
200
200
  async def test_method_create_single_with_all_params(self, async_client: AsyncCartography) -> None:
201
201
  download = await async_client.download.create_single(
202
202
  s3_bucket="my-downloads",
203
203
  url="https://example.com/file.pdf",
204
- downloader_type="async_fleet",
204
+ downloader_type="FLEET_ASYNC",
205
205
  s3_key="s3_key",
206
206
  api_timeout=1000,
207
207
  wait_until="load",
208
208
  )
209
209
  assert_matches_type(DownloadCreateSingleResponse, download, path=["response"])
210
210
 
211
- @pytest.mark.skip()
211
+ @pytest.mark.skip(reason="Prism tests are disabled")
212
212
  @parametrize
213
213
  async def test_raw_response_create_single(self, async_client: AsyncCartography) -> None:
214
214
  response = await async_client.download.with_raw_response.create_single(
@@ -221,7 +221,7 @@ class TestAsyncDownload:
221
221
  download = await response.parse()
222
222
  assert_matches_type(DownloadCreateSingleResponse, download, path=["response"])
223
223
 
224
- @pytest.mark.skip()
224
+ @pytest.mark.skip(reason="Prism tests are disabled")
225
225
  @parametrize
226
226
  async def test_streaming_response_create_single(self, async_client: AsyncCartography) -> None:
227
227
  async with async_client.download.with_streaming_response.create_single(
@@ -17,13 +17,13 @@ base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
17
17
  class TestHealth:
18
18
  parametrize = pytest.mark.parametrize("client", [False, True], indirect=True, ids=["loose", "strict"])
19
19
 
20
- @pytest.mark.skip()
20
+ @pytest.mark.skip(reason="Prism tests are disabled")
21
21
  @parametrize
22
22
  def test_method_check(self, client: Cartography) -> None:
23
23
  health = client.health.check()
24
24
  assert_matches_type(HealthCheckResponse, health, path=["response"])
25
25
 
26
- @pytest.mark.skip()
26
+ @pytest.mark.skip(reason="Prism tests are disabled")
27
27
  @parametrize
28
28
  def test_raw_response_check(self, client: Cartography) -> None:
29
29
  response = client.health.with_raw_response.check()
@@ -33,7 +33,7 @@ class TestHealth:
33
33
  health = response.parse()
34
34
  assert_matches_type(HealthCheckResponse, health, path=["response"])
35
35
 
36
- @pytest.mark.skip()
36
+ @pytest.mark.skip(reason="Prism tests are disabled")
37
37
  @parametrize
38
38
  def test_streaming_response_check(self, client: Cartography) -> None:
39
39
  with client.health.with_streaming_response.check() as response:
@@ -51,13 +51,13 @@ class TestAsyncHealth:
51
51
  "async_client", [False, True, {"http_client": "aiohttp"}], indirect=True, ids=["loose", "strict", "aiohttp"]
52
52
  )
53
53
 
54
- @pytest.mark.skip()
54
+ @pytest.mark.skip(reason="Prism tests are disabled")
55
55
  @parametrize
56
56
  async def test_method_check(self, async_client: AsyncCartography) -> None:
57
57
  health = await async_client.health.check()
58
58
  assert_matches_type(HealthCheckResponse, health, path=["response"])
59
59
 
60
- @pytest.mark.skip()
60
+ @pytest.mark.skip(reason="Prism tests are disabled")
61
61
  @parametrize
62
62
  async def test_raw_response_check(self, async_client: AsyncCartography) -> None:
63
63
  response = await async_client.health.with_raw_response.check()
@@ -67,7 +67,7 @@ class TestAsyncHealth:
67
67
  health = await response.parse()
68
68
  assert_matches_type(HealthCheckResponse, health, path=["response"])
69
69
 
70
- @pytest.mark.skip()
70
+ @pytest.mark.skip(reason="Prism tests are disabled")
71
71
  @parametrize
72
72
  async def test_streaming_response_check(self, async_client: AsyncCartography) -> None:
73
73
  async with async_client.health.with_streaming_response.check() as response: