apify-haystack 0.1.8b2__tar.gz → 0.1.8b3__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: apify_haystack
3
- Version: 0.1.8b2
3
+ Version: 0.1.8b3
4
4
  Summary: Apify-haystack integration
5
5
  Keywords: apify,crawler,haystack,rag,scraper,scraping
6
6
  Author: Apify Technologies s.r.o.
@@ -16,7 +16,7 @@ Classifier: Programming Language :: Python :: 3.13
16
16
  Classifier: Programming Language :: Python :: 3.14
17
17
  Classifier: Topic :: Software Development :: Libraries
18
18
  Classifier: Typing :: Typed
19
- Requires-Dist: apify-client>=3.3.0,<4.0.0
19
+ Requires-Dist: apify-client>=3.4.0,<4.0.0
20
20
  Requires-Dist: haystack-ai>=3.0.0,<4.0.0
21
21
  Requires-Python: >=3.11
22
22
  Project-URL: Homepage, https://apify.com
@@ -4,7 +4,7 @@ build-backend = "uv_build"
4
4
 
5
5
  [project]
6
6
  name = "apify_haystack"
7
- version = "0.1.8b2"
7
+ version = "0.1.8b3"
8
8
  description = "Apify-haystack integration"
9
9
  license = "Apache-2.0"
10
10
  license-files = ["LICENSE"]
@@ -30,7 +30,7 @@ keywords = [
30
30
  "scraping",
31
31
  ]
32
32
  dependencies = [
33
- "apify-client>=3.3.0,<4.0.0",
33
+ "apify-client>=3.4.0,<4.0.0",
34
34
  "haystack-ai>=3.0.0,<4.0.0",
35
35
  ]
36
36
 
@@ -4,7 +4,7 @@ build-backend = "uv_build"
4
4
 
5
5
  [project]
6
6
  name = "apify_haystack"
7
- version = "0.1.8b2"
7
+ version = "0.1.8b3"
8
8
  description = "Apify-haystack integration"
9
9
  authors = [{ name = "Apify Technologies s.r.o.", email = "support@apify.com" }]
10
10
  license = "Apache-2.0"
@@ -24,7 +24,7 @@ classifiers = [
24
24
  ]
25
25
  keywords = ["apify", "crawler", "haystack", "rag", "scraper", "scraping"]
26
26
  dependencies = [
27
- "apify-client>=3.3.0,<4.0.0",
27
+ "apify-client>=3.4.0,<4.0.0",
28
28
  "haystack-ai>=3.0.0,<4.0.0",
29
29
  ]
30
30
 
@@ -58,12 +58,11 @@ class ApifyClientComponent:
58
58
 
59
59
  def create_client(client_class: type[_ClientT], token: str | None) -> _ClientT:
60
60
  """Create an Apify client that identifies its requests as coming from this integration."""
61
- client = client_class(token, headers={'x-apify-integration-platform': HAYSTACK_INTEGRATION_PLATFORM})
62
-
63
- # Older platform paths attribute requests by the user-agent marker. Passing it through `headers` would replace
64
- # apify-client's own user agent, so the header is extended in place.
65
- client.http_client._headers['User-Agent'] += f'; {HAYSTACK_ATTRIBUTE_USER_AGENT}' # noqa: SLF001
66
- return client
61
+ return client_class(
62
+ token,
63
+ headers={'x-apify-integration-platform': HAYSTACK_INTEGRATION_PLATFORM},
64
+ user_agent_suffix=HAYSTACK_ATTRIBUTE_USER_AGENT,
65
+ )
67
66
 
68
67
 
69
68
  def get_dataset_id(run: Run | None, label: str) -> str: