semantic-kernel-warppay402 0.1.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.
- semantic_kernel_warppay402-0.1.0/PKG-INFO +35 -0
- semantic_kernel_warppay402-0.1.0/README.md +19 -0
- semantic_kernel_warppay402-0.1.0/pyproject.toml +16 -0
- semantic_kernel_warppay402-0.1.0/semantic_kernel_warppay402/__init__.py +3 -0
- semantic_kernel_warppay402-0.1.0/semantic_kernel_warppay402/plugin.py +67 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: semantic-kernel-warppay402
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Microsoft Semantic Kernel plugin integration for WarpPay402 x402 monetized APIs
|
|
5
|
+
Author: WarpPay402
|
|
6
|
+
Author-email: warppay.402@gmail.com
|
|
7
|
+
Requires-Python: >=3.10,<4.0
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
12
|
+
Requires-Dist: semantic-kernel (>=1.0.0)
|
|
13
|
+
Requires-Dist: warppay402-mcp (>=1.2.6)
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
|
|
16
|
+
# Semantic Kernel Plugin for WarpPay402
|
|
17
|
+
|
|
18
|
+
This package provides Microsoft Semantic Kernel plugin bindings for WarpPay402 x402 monetized tools.
|
|
19
|
+
|
|
20
|
+
## Installation
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
pip install semantic-kernel-warppay402
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Usage
|
|
27
|
+
|
|
28
|
+
```python
|
|
29
|
+
import semantic_kernel as sk
|
|
30
|
+
from semantic_kernel_warppay402 import WarpPayPlugin
|
|
31
|
+
|
|
32
|
+
kernel = sk.Kernel()
|
|
33
|
+
warppay_plugin = kernel.add_plugin(WarpPayPlugin(), plugin_name="WarpPay")
|
|
34
|
+
```
|
|
35
|
+
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Semantic Kernel Plugin for WarpPay402
|
|
2
|
+
|
|
3
|
+
This package provides Microsoft Semantic Kernel plugin bindings for WarpPay402 x402 monetized tools.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pip install semantic-kernel-warppay402
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```python
|
|
14
|
+
import semantic_kernel as sk
|
|
15
|
+
from semantic_kernel_warppay402 import WarpPayPlugin
|
|
16
|
+
|
|
17
|
+
kernel = sk.Kernel()
|
|
18
|
+
warppay_plugin = kernel.add_plugin(WarpPayPlugin(), plugin_name="WarpPay")
|
|
19
|
+
```
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["poetry-core>=1.0.0"]
|
|
3
|
+
build-backend = "poetry.core.masonry.api"
|
|
4
|
+
|
|
5
|
+
[tool.poetry]
|
|
6
|
+
name = "semantic-kernel-warppay402"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "Microsoft Semantic Kernel plugin integration for WarpPay402 x402 monetized APIs"
|
|
9
|
+
authors = ["WarpPay402 <warppay.402@gmail.com>"]
|
|
10
|
+
readme = "README.md"
|
|
11
|
+
packages = [{include = "semantic_kernel_warppay402"}]
|
|
12
|
+
|
|
13
|
+
[tool.poetry.dependencies]
|
|
14
|
+
python = "^3.10"
|
|
15
|
+
semantic-kernel = ">=1.0.0"
|
|
16
|
+
warppay402-mcp = ">=1.2.6"
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
from typing import Any, Dict, Optional
|
|
2
|
+
import warppay402_mcp as mcp
|
|
3
|
+
from semantic_kernel.functions import kernel_function
|
|
4
|
+
|
|
5
|
+
class WarpPayPlugin:
|
|
6
|
+
"""Semantic Kernel Plugin exposing WarpPay402 x402 monetized tools."""
|
|
7
|
+
|
|
8
|
+
def __init__(self):
|
|
9
|
+
self.tools = {
|
|
10
|
+
"public_data_feed": mcp.PublicDataFeedTool(),
|
|
11
|
+
"data_feeds": mcp.DataFeedsTool(),
|
|
12
|
+
"web_scraper": mcp.WebScraperTool(),
|
|
13
|
+
"browser_scraper": mcp.BrowserScraperTool(),
|
|
14
|
+
"base_analytics": mcp.BaseAnalyticsTool(),
|
|
15
|
+
"arc_analytics": mcp.ArcAnalyticsTool(),
|
|
16
|
+
"arc_network_oracle_query": mcp.ArcNetworkQueryTool(),
|
|
17
|
+
"arc_dex_oracle": mcp.ArcDexOracleTool(),
|
|
18
|
+
"pdf_extractor": mcp.PdfExtractorTool(),
|
|
19
|
+
"render_screenshot": mcp.RenderScreenshotTool(),
|
|
20
|
+
"extract_json": mcp.ExtractJsonTool(),
|
|
21
|
+
"smart_contract_verifier": mcp.SmartContractVerifierTool(),
|
|
22
|
+
"get_aerodrome_yields": mcp.AerodromeYieldsTool(),
|
|
23
|
+
"aerodrome_swap": mcp.AerodromeSwapTool(),
|
|
24
|
+
"aerodrome_clamm": mcp.AerodromeClammTool(),
|
|
25
|
+
"aerodrome_veaero": mcp.AerodromeVeaeroTool(),
|
|
26
|
+
"deploy_contract": mcp.DeployBaseContractTool(),
|
|
27
|
+
"deploy_solana_contract": mcp.DeploySolanaContractTool(),
|
|
28
|
+
"deploy_arc_contract": mcp.DeployArcContractTool(),
|
|
29
|
+
"arc_cctp_bridge": mcp.ArcCctpBridgeTool(),
|
|
30
|
+
"real_estate_calculator": mcp.RealEstateCalculatorTool(),
|
|
31
|
+
"address_normalizer": mcp.AddressNormalizerTool(),
|
|
32
|
+
"weather_oracle": mcp.WeatherOracleTool(),
|
|
33
|
+
"forex_oracle": mcp.ForexOracleTool(),
|
|
34
|
+
"shipping_rate_estimator": mcp.ShippingRateEstimatorTool(),
|
|
35
|
+
"github_health_analyzer": mcp.GithubHealthAnalyzerTool(),
|
|
36
|
+
"property_comps_estimator": mcp.PropertyCompsEstimatorTool(),
|
|
37
|
+
"outage_oracle": mcp.OutageOracleTool(),
|
|
38
|
+
"ucp_deals_oracle": mcp.UcpDealsOracleTool(),
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@kernel_function(
|
|
42
|
+
description="Scrapes a webpage URL and returns clean Markdown content.",
|
|
43
|
+
name="web_scraper"
|
|
44
|
+
)
|
|
45
|
+
def web_scraper(self, url: str) -> str:
|
|
46
|
+
return str(self.tools["web_scraper"].invoke({"url": url}))
|
|
47
|
+
|
|
48
|
+
@kernel_function(
|
|
49
|
+
description="Real-time ETH/USDC spot price resolver and DEX liquidity oracle on Arc Mainnet.",
|
|
50
|
+
name="arc_dex_oracle"
|
|
51
|
+
)
|
|
52
|
+
def arc_dex_oracle(self, pair: str = "ETH/USDC") -> str:
|
|
53
|
+
return str(self.tools["arc_dex_oracle"].invoke({"pair": pair}))
|
|
54
|
+
|
|
55
|
+
@kernel_function(
|
|
56
|
+
description="Fetches top live Aerodrome DEX yield pools, APYs, and TVL on Base Mainnet.",
|
|
57
|
+
name="get_aerodrome_yields"
|
|
58
|
+
)
|
|
59
|
+
def get_aerodrome_yields(self) -> str:
|
|
60
|
+
return str(self.tools["get_aerodrome_yields"].invoke({}))
|
|
61
|
+
|
|
62
|
+
@kernel_function(
|
|
63
|
+
description="Queries Universal Commerce Protocol (UCP) merchant product catalogs and deals.",
|
|
64
|
+
name="ucp_deals_oracle"
|
|
65
|
+
)
|
|
66
|
+
def ucp_deals_oracle(self, query: str) -> str:
|
|
67
|
+
return str(self.tools["ucp_deals_oracle"].invoke({"query": query}))
|