dominusnode-haystack 1.0.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 dominusnode-haystack might be problematic. Click here for more details.

@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 DomiNode
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,24 @@
1
+ Metadata-Version: 2.1
2
+ Name: dominusnode-haystack
3
+ Version: 1.0.0
4
+ Summary: DomiNode rotating proxy tools for Haystack AI pipelines
5
+ Author-email: DomiNode <dev@dominusnode.com>
6
+ License: MIT
7
+ Keywords: haystack,proxy,dominusnode,ai,tools
8
+ Classifier: Development Status :: 4 - Beta
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Programming Language :: Python :: 3.9
13
+ Classifier: Programming Language :: Python :: 3.10
14
+ Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Topic :: Internet :: Proxy Servers
17
+ Classifier: Topic :: Software Development :: Libraries
18
+ Requires-Python: >=3.9
19
+ License-File: LICENSE
20
+ Requires-Dist: httpx>=0.24.0
21
+ Requires-Dist: haystack-ai>=2.0.0
22
+ Provides-Extra: dev
23
+ Requires-Dist: pytest>=7.0; extra == "dev"
24
+ Requires-Dist: pytest-mock; extra == "dev"
@@ -0,0 +1,96 @@
1
+ # dominusnode-haystack
2
+
3
+ DomiNode rotating proxy tools for [Haystack](https://haystack.deepset.ai/) AI pipelines.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ pip install dominusnode-haystack
9
+ ```
10
+
11
+ ## Quick Start
12
+
13
+ ```python
14
+ from dominusnode_haystack import DominusNodeToolkit
15
+
16
+ # Initialize with your API key
17
+ toolkit = DominusNodeToolkit(api_key="dn_live_...")
18
+
19
+ # Get Haystack Tool objects for use in pipelines
20
+ tools = toolkit.get_tools()
21
+
22
+ # Or call methods directly
23
+ balance = toolkit.check_balance()
24
+ print(balance) # {"balanceCents": 5000}
25
+ ```
26
+
27
+ ## Usage with Haystack Pipelines
28
+
29
+ ```python
30
+ from haystack import Pipeline
31
+ from haystack.components.generators.chat import OpenAIChatGenerator
32
+ from haystack.components.tools import ToolInvoker
33
+ from dominusnode_haystack import DominusNodeToolkit
34
+
35
+ toolkit = DominusNodeToolkit(api_key="dn_live_...")
36
+ tools = toolkit.get_tools()
37
+
38
+ pipeline = Pipeline()
39
+ pipeline.add_component("llm", OpenAIChatGenerator(tools=tools))
40
+ pipeline.add_component("tool_invoker", ToolInvoker(tools=tools))
41
+ pipeline.connect("llm.replies", "tool_invoker.messages")
42
+ ```
43
+
44
+ ## Available Tools (22)
45
+
46
+ | Tool | Description |
47
+ |------|-------------|
48
+ | `dominusnode_proxied_fetch` | Fetch a URL through rotating proxy network |
49
+ | `dominusnode_check_balance` | Check wallet balance |
50
+ | `dominusnode_check_usage` | Check proxy usage statistics |
51
+ | `dominusnode_get_proxy_config` | Get proxy configuration |
52
+ | `dominusnode_list_sessions` | List active proxy sessions |
53
+ | `dominusnode_create_agentic_wallet` | Create an agentic sub-wallet |
54
+ | `dominusnode_fund_agentic_wallet` | Fund an agentic wallet |
55
+ | `dominusnode_agentic_wallet_balance` | Check agentic wallet balance |
56
+ | `dominusnode_list_agentic_wallets` | List all agentic wallets |
57
+ | `dominusnode_agentic_transactions` | Get agentic wallet transactions |
58
+ | `dominusnode_freeze_agentic_wallet` | Freeze an agentic wallet |
59
+ | `dominusnode_unfreeze_agentic_wallet` | Unfreeze an agentic wallet |
60
+ | `dominusnode_delete_agentic_wallet` | Delete an agentic wallet |
61
+ | `dominusnode_create_team` | Create a team |
62
+ | `dominusnode_list_teams` | List teams |
63
+ | `dominusnode_team_details` | Get team details |
64
+ | `dominusnode_team_fund` | Fund a team wallet |
65
+ | `dominusnode_team_create_key` | Create a team API key |
66
+ | `dominusnode_team_usage` | Get team usage history |
67
+ | `dominusnode_update_team` | Update team settings |
68
+ | `dominusnode_update_team_member_role` | Update team member role |
69
+ | `dominusnode_x402_info` | Get x402 micropayment info |
70
+ | `dominusnode_topup_paypal` | Create PayPal top-up order |
71
+
72
+ ## Configuration
73
+
74
+ ```python
75
+ toolkit = DominusNodeToolkit(
76
+ api_key="dn_live_...", # or set DOMINUSNODE_API_KEY env var
77
+ base_url="https://api.dominusnode.com", # API base URL
78
+ proxy_host="proxy.dominusnode.com", # or set DOMINUSNODE_PROXY_HOST
79
+ proxy_port=8080, # or set DOMINUSNODE_PROXY_PORT
80
+ timeout=30.0, # HTTP timeout in seconds
81
+ )
82
+ ```
83
+
84
+ ## Security
85
+
86
+ - Full SSRF prevention (private IPs, DNS rebinding, Teredo/6to4, hex/octal)
87
+ - OFAC sanctioned country blocking (CU, IR, KP, RU, SY)
88
+ - Credential scrubbing in all error outputs
89
+ - Prototype pollution prevention
90
+ - HTTP method restriction (GET/HEAD/OPTIONS only for proxied fetch)
91
+ - 10 MB response cap with 4000 char truncation
92
+ - Redirect following disabled
93
+
94
+ ## License
95
+
96
+ MIT
@@ -0,0 +1,5 @@
1
+ """DomiNode tools for Haystack pipelines."""
2
+ from dominusnode_haystack.tools import DominusNodeToolkit
3
+
4
+ __version__ = "1.0.0"
5
+ __all__ = ["DominusNodeToolkit"]