cartography-client 0.1.0__tar.gz → 0.3.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.3.0/.release-please-manifest.json +3 -0
  2. {cartography_client-0.1.0 → cartography_client-0.3.0}/CHANGELOG.md +16 -0
  3. {cartography_client-0.1.0 → cartography_client-0.3.0}/PKG-INFO +1 -1
  4. {cartography_client-0.1.0 → cartography_client-0.3.0}/pyproject.toml +1 -1
  5. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/_client.py +2 -2
  6. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/_version.py +1 -1
  7. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/types/scrape_engine_param.py +1 -1
  8. {cartography_client-0.1.0 → cartography_client-0.3.0}/tests/api_resources/test_scrape.py +14 -14
  9. cartography_client-0.1.0/.release-please-manifest.json +0 -3
  10. {cartography_client-0.1.0 → cartography_client-0.3.0}/.gitignore +0 -0
  11. {cartography_client-0.1.0 → cartography_client-0.3.0}/CONTRIBUTING.md +0 -0
  12. {cartography_client-0.1.0 → cartography_client-0.3.0}/LICENSE +0 -0
  13. {cartography_client-0.1.0 → cartography_client-0.3.0}/README.md +0 -0
  14. {cartography_client-0.1.0 → cartography_client-0.3.0}/SECURITY.md +0 -0
  15. {cartography_client-0.1.0 → cartography_client-0.3.0}/api.md +0 -0
  16. {cartography_client-0.1.0 → cartography_client-0.3.0}/bin/check-release-environment +0 -0
  17. {cartography_client-0.1.0 → cartography_client-0.3.0}/bin/publish-pypi +0 -0
  18. {cartography_client-0.1.0 → cartography_client-0.3.0}/examples/.keep +0 -0
  19. {cartography_client-0.1.0 → cartography_client-0.3.0}/mypy.ini +0 -0
  20. {cartography_client-0.1.0 → cartography_client-0.3.0}/noxfile.py +0 -0
  21. {cartography_client-0.1.0 → cartography_client-0.3.0}/release-please-config.json +0 -0
  22. {cartography_client-0.1.0 → cartography_client-0.3.0}/requirements-dev.lock +0 -0
  23. {cartography_client-0.1.0 → cartography_client-0.3.0}/requirements.lock +0 -0
  24. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/__init__.py +0 -0
  25. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/_base_client.py +0 -0
  26. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/_compat.py +0 -0
  27. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/_constants.py +0 -0
  28. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/_exceptions.py +0 -0
  29. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/_files.py +0 -0
  30. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/_models.py +0 -0
  31. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/_qs.py +0 -0
  32. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/_resource.py +0 -0
  33. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/_response.py +0 -0
  34. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/_streaming.py +0 -0
  35. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/_types.py +0 -0
  36. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/_utils/__init__.py +0 -0
  37. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/_utils/_logs.py +0 -0
  38. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/_utils/_proxy.py +0 -0
  39. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/_utils/_reflection.py +0 -0
  40. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/_utils/_resources_proxy.py +0 -0
  41. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/_utils/_streams.py +0 -0
  42. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/_utils/_sync.py +0 -0
  43. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/_utils/_transform.py +0 -0
  44. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/_utils/_typing.py +0 -0
  45. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/_utils/_utils.py +0 -0
  46. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/lib/.keep +0 -0
  47. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/py.typed +0 -0
  48. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/resources/__init__.py +0 -0
  49. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/resources/api_info.py +0 -0
  50. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/resources/crawl.py +0 -0
  51. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/resources/download.py +0 -0
  52. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/resources/health.py +0 -0
  53. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/resources/scrape.py +0 -0
  54. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/resources/workflows/__init__.py +0 -0
  55. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/resources/workflows/request/__init__.py +0 -0
  56. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/resources/workflows/request/crawl.py +0 -0
  57. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/resources/workflows/request/request.py +0 -0
  58. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/resources/workflows/workflows.py +0 -0
  59. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/types/__init__.py +0 -0
  60. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/types/api_info_retrieve_response.py +0 -0
  61. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/types/bulk_download_result.py +0 -0
  62. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/types/bulk_scrape_result.py +0 -0
  63. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/types/crawl_create_graph_params.py +0 -0
  64. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/types/crawl_create_graph_response.py +0 -0
  65. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/types/download_create_bulk_params.py +0 -0
  66. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/types/download_create_bulk_response.py +0 -0
  67. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/types/download_create_single_params.py +0 -0
  68. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/types/download_create_single_response.py +0 -0
  69. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/types/downloader_type.py +0 -0
  70. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/types/health_check_response.py +0 -0
  71. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/types/scrape_scrape_bulk_params.py +0 -0
  72. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/types/scrape_scrape_bulk_response.py +0 -0
  73. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/types/scrape_scrape_single_params.py +0 -0
  74. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/types/scrape_scrape_single_response.py +0 -0
  75. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/types/wait_until.py +0 -0
  76. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/types/workflow_describe_response.py +0 -0
  77. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/types/workflow_results_response.py +0 -0
  78. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/types/workflows/__init__.py +0 -0
  79. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/types/workflows/request/__init__.py +0 -0
  80. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/types/workflows/request/crawl_create_bulk_params.py +0 -0
  81. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/types/workflows/request/crawl_create_bulk_response.py +0 -0
  82. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/types/workflows/request/crawl_create_params.py +0 -0
  83. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/types/workflows/request/crawl_request_param.py +0 -0
  84. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/types/workflows/request/workflow_result.py +0 -0
  85. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/types/workflows/request_create_download_params.py +0 -0
  86. {cartography_client-0.1.0 → cartography_client-0.3.0}/src/cartography/types/workflows/request_create_download_response.py +0 -0
  87. {cartography_client-0.1.0 → cartography_client-0.3.0}/tests/__init__.py +0 -0
  88. {cartography_client-0.1.0 → cartography_client-0.3.0}/tests/api_resources/__init__.py +0 -0
  89. {cartography_client-0.1.0 → cartography_client-0.3.0}/tests/api_resources/test_api_info.py +0 -0
  90. {cartography_client-0.1.0 → cartography_client-0.3.0}/tests/api_resources/test_crawl.py +0 -0
  91. {cartography_client-0.1.0 → cartography_client-0.3.0}/tests/api_resources/test_download.py +0 -0
  92. {cartography_client-0.1.0 → cartography_client-0.3.0}/tests/api_resources/test_health.py +0 -0
  93. {cartography_client-0.1.0 → cartography_client-0.3.0}/tests/api_resources/test_workflows.py +0 -0
  94. {cartography_client-0.1.0 → cartography_client-0.3.0}/tests/api_resources/workflows/__init__.py +0 -0
  95. {cartography_client-0.1.0 → cartography_client-0.3.0}/tests/api_resources/workflows/request/__init__.py +0 -0
  96. {cartography_client-0.1.0 → cartography_client-0.3.0}/tests/api_resources/workflows/request/test_crawl.py +0 -0
  97. {cartography_client-0.1.0 → cartography_client-0.3.0}/tests/api_resources/workflows/test_request.py +0 -0
  98. {cartography_client-0.1.0 → cartography_client-0.3.0}/tests/conftest.py +0 -0
  99. {cartography_client-0.1.0 → cartography_client-0.3.0}/tests/sample_file.txt +0 -0
  100. {cartography_client-0.1.0 → cartography_client-0.3.0}/tests/test_client.py +0 -0
  101. {cartography_client-0.1.0 → cartography_client-0.3.0}/tests/test_deepcopy.py +0 -0
  102. {cartography_client-0.1.0 → cartography_client-0.3.0}/tests/test_extract_files.py +0 -0
  103. {cartography_client-0.1.0 → cartography_client-0.3.0}/tests/test_files.py +0 -0
  104. {cartography_client-0.1.0 → cartography_client-0.3.0}/tests/test_models.py +0 -0
  105. {cartography_client-0.1.0 → cartography_client-0.3.0}/tests/test_qs.py +0 -0
  106. {cartography_client-0.1.0 → cartography_client-0.3.0}/tests/test_required_args.py +0 -0
  107. {cartography_client-0.1.0 → cartography_client-0.3.0}/tests/test_response.py +0 -0
  108. {cartography_client-0.1.0 → cartography_client-0.3.0}/tests/test_streaming.py +0 -0
  109. {cartography_client-0.1.0 → cartography_client-0.3.0}/tests/test_transform.py +0 -0
  110. {cartography_client-0.1.0 → cartography_client-0.3.0}/tests/test_utils/test_proxy.py +0 -0
  111. {cartography_client-0.1.0 → cartography_client-0.3.0}/tests/test_utils/test_typing.py +0 -0
  112. {cartography_client-0.1.0 → cartography_client-0.3.0}/tests/utils.py +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.3.0"
3
+ }
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.0 (2025-08-05)
4
+
5
+ Full Changelog: [v0.2.0...v0.3.0](https://github.com/evrimai/cartography-client/compare/v0.2.0...v0.3.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([54ce37e](https://github.com/evrimai/cartography-client/commit/54ce37edecc328ec401a24e9ef4c8631086a2e23))
10
+
11
+ ## 0.2.0 (2025-08-05)
12
+
13
+ Full Changelog: [v0.1.0...v0.2.0](https://github.com/evrimai/cartography-client/compare/v0.1.0...v0.2.0)
14
+
15
+ ### Features
16
+
17
+ * **api:** manual updates ([99f1a13](https://github.com/evrimai/cartography-client/commit/99f1a133c89c4ed7d5fba0836aad152c775d8274))
18
+
3
19
  ## 0.1.0 (2025-08-05)
4
20
 
5
21
  Full Changelog: [v0.0.1...v0.1.0](https://github.com/evrimai/cartography-client/compare/v0.0.1...v0.1.0)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: cartography-client
3
- Version: 0.1.0
3
+ Version: 0.3.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.1.0"
3
+ version = "0.3.0"
4
4
  description = "The official Python library for the cartography API"
5
5
  dynamic = ["readme"]
6
6
  license = "Apache-2.0"
@@ -94,7 +94,7 @@ class Cartography(SyncAPIClient):
94
94
  if base_url is None:
95
95
  base_url = os.environ.get("CARTOGRAPHY_BASE_URL")
96
96
  if base_url is None:
97
- base_url = f"https:/https://cartography.evrim.ai"
97
+ base_url = f"https://cartography.evrim.ai"
98
98
 
99
99
  super().__init__(
100
100
  version=__version__,
@@ -272,7 +272,7 @@ class AsyncCartography(AsyncAPIClient):
272
272
  if base_url is None:
273
273
  base_url = os.environ.get("CARTOGRAPHY_BASE_URL")
274
274
  if base_url is None:
275
- base_url = f"https:/https://cartography.evrim.ai"
275
+ base_url = f"https://cartography.evrim.ai"
276
276
 
277
277
  super().__init__(
278
278
  version=__version__,
@@ -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.1.0" # x-release-please-version
4
+ __version__ = "0.3.0" # x-release-please-version
@@ -9,7 +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"]]
12
+ engine_type: Required[Literal["SCRAPINGBEE", "ZENROWS", "FLEET", "ASYNC_FLEET"]]
13
13
  """Available engine types"""
14
14
 
15
15
  headers: Optional[Dict[str, str]]
@@ -25,7 +25,7 @@ class TestScrape:
25
25
  def test_method_scrape_bulk(self, client: Cartography) -> None:
26
26
  scrape = client.scrape.scrape_bulk(
27
27
  crawl_id="crawl-123",
28
- engines=[{"engine_type": "scrapingbee"}],
28
+ engines=[{"engine_type": "SCRAPINGBEE"}],
29
29
  s3_bucket="my-scraping-bucket",
30
30
  urls=["https://example.com", "https://example.org"],
31
31
  )
@@ -38,7 +38,7 @@ class TestScrape:
38
38
  crawl_id="crawl-123",
39
39
  engines=[
40
40
  {
41
- "engine_type": "scrapingbee",
41
+ "engine_type": "SCRAPINGBEE",
42
42
  "headers": {"foo": "string"},
43
43
  "proxy": "proxy",
44
44
  "screenshot": True,
@@ -59,7 +59,7 @@ class TestScrape:
59
59
  def test_raw_response_scrape_bulk(self, client: Cartography) -> None:
60
60
  response = client.scrape.with_raw_response.scrape_bulk(
61
61
  crawl_id="crawl-123",
62
- engines=[{"engine_type": "scrapingbee"}],
62
+ engines=[{"engine_type": "SCRAPINGBEE"}],
63
63
  s3_bucket="my-scraping-bucket",
64
64
  urls=["https://example.com", "https://example.org"],
65
65
  )
@@ -74,7 +74,7 @@ class TestScrape:
74
74
  def test_streaming_response_scrape_bulk(self, client: Cartography) -> None:
75
75
  with client.scrape.with_streaming_response.scrape_bulk(
76
76
  crawl_id="crawl-123",
77
- engines=[{"engine_type": "scrapingbee"}],
77
+ engines=[{"engine_type": "SCRAPINGBEE"}],
78
78
  s3_bucket="my-scraping-bucket",
79
79
  urls=["https://example.com", "https://example.org"],
80
80
  ) as response:
@@ -90,7 +90,7 @@ class TestScrape:
90
90
  @parametrize
91
91
  def test_method_scrape_single(self, client: Cartography) -> None:
92
92
  scrape = client.scrape.scrape_single(
93
- engines=[{"engine_type": "scrapingbee"}],
93
+ engines=[{"engine_type": "SCRAPINGBEE"}],
94
94
  url="https://example.com",
95
95
  )
96
96
  assert_matches_type(ScrapeScrapeSingleResponse, scrape, path=["response"])
@@ -99,7 +99,7 @@ class TestScrape:
99
99
  @parametrize
100
100
  def test_raw_response_scrape_single(self, client: Cartography) -> None:
101
101
  response = client.scrape.with_raw_response.scrape_single(
102
- engines=[{"engine_type": "scrapingbee"}],
102
+ engines=[{"engine_type": "SCRAPINGBEE"}],
103
103
  url="https://example.com",
104
104
  )
105
105
 
@@ -112,7 +112,7 @@ class TestScrape:
112
112
  @parametrize
113
113
  def test_streaming_response_scrape_single(self, client: Cartography) -> None:
114
114
  with client.scrape.with_streaming_response.scrape_single(
115
- engines=[{"engine_type": "scrapingbee"}],
115
+ engines=[{"engine_type": "SCRAPINGBEE"}],
116
116
  url="https://example.com",
117
117
  ) as response:
118
118
  assert not response.is_closed
@@ -134,7 +134,7 @@ class TestAsyncScrape:
134
134
  async def test_method_scrape_bulk(self, async_client: AsyncCartography) -> None:
135
135
  scrape = await async_client.scrape.scrape_bulk(
136
136
  crawl_id="crawl-123",
137
- engines=[{"engine_type": "scrapingbee"}],
137
+ engines=[{"engine_type": "SCRAPINGBEE"}],
138
138
  s3_bucket="my-scraping-bucket",
139
139
  urls=["https://example.com", "https://example.org"],
140
140
  )
@@ -147,7 +147,7 @@ class TestAsyncScrape:
147
147
  crawl_id="crawl-123",
148
148
  engines=[
149
149
  {
150
- "engine_type": "scrapingbee",
150
+ "engine_type": "SCRAPINGBEE",
151
151
  "headers": {"foo": "string"},
152
152
  "proxy": "proxy",
153
153
  "screenshot": True,
@@ -168,7 +168,7 @@ class TestAsyncScrape:
168
168
  async def test_raw_response_scrape_bulk(self, async_client: AsyncCartography) -> None:
169
169
  response = await async_client.scrape.with_raw_response.scrape_bulk(
170
170
  crawl_id="crawl-123",
171
- engines=[{"engine_type": "scrapingbee"}],
171
+ engines=[{"engine_type": "SCRAPINGBEE"}],
172
172
  s3_bucket="my-scraping-bucket",
173
173
  urls=["https://example.com", "https://example.org"],
174
174
  )
@@ -183,7 +183,7 @@ class TestAsyncScrape:
183
183
  async def test_streaming_response_scrape_bulk(self, async_client: AsyncCartography) -> None:
184
184
  async with async_client.scrape.with_streaming_response.scrape_bulk(
185
185
  crawl_id="crawl-123",
186
- engines=[{"engine_type": "scrapingbee"}],
186
+ engines=[{"engine_type": "SCRAPINGBEE"}],
187
187
  s3_bucket="my-scraping-bucket",
188
188
  urls=["https://example.com", "https://example.org"],
189
189
  ) as response:
@@ -199,7 +199,7 @@ class TestAsyncScrape:
199
199
  @parametrize
200
200
  async def test_method_scrape_single(self, async_client: AsyncCartography) -> None:
201
201
  scrape = await async_client.scrape.scrape_single(
202
- engines=[{"engine_type": "scrapingbee"}],
202
+ engines=[{"engine_type": "SCRAPINGBEE"}],
203
203
  url="https://example.com",
204
204
  )
205
205
  assert_matches_type(ScrapeScrapeSingleResponse, scrape, path=["response"])
@@ -208,7 +208,7 @@ class TestAsyncScrape:
208
208
  @parametrize
209
209
  async def test_raw_response_scrape_single(self, async_client: AsyncCartography) -> None:
210
210
  response = await async_client.scrape.with_raw_response.scrape_single(
211
- engines=[{"engine_type": "scrapingbee"}],
211
+ engines=[{"engine_type": "SCRAPINGBEE"}],
212
212
  url="https://example.com",
213
213
  )
214
214
 
@@ -221,7 +221,7 @@ class TestAsyncScrape:
221
221
  @parametrize
222
222
  async def test_streaming_response_scrape_single(self, async_client: AsyncCartography) -> None:
223
223
  async with async_client.scrape.with_streaming_response.scrape_single(
224
- engines=[{"engine_type": "scrapingbee"}],
224
+ engines=[{"engine_type": "SCRAPINGBEE"}],
225
225
  url="https://example.com",
226
226
  ) as response:
227
227
  assert not response.is_closed
@@ -1,3 +0,0 @@
1
- {
2
- ".": "0.1.0"
3
- }