tanod 0.1.0__py3-none-any.whl
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.
- tanod/__init__.py +118 -0
- tanod/_client.py +935 -0
- tanod/_errors.py +95 -0
- tanod/_models.py +562 -0
- tanod/_payment.py +126 -0
- tanod/_routes.py +412 -0
- tanod/_version.py +1 -0
- tanod/py.typed +0 -0
- tanod-0.1.0.dist-info/METADATA +197 -0
- tanod-0.1.0.dist-info/RECORD +12 -0
- tanod-0.1.0.dist-info/WHEEL +4 -0
- tanod-0.1.0.dist-info/licenses/LICENSE +21 -0
tanod/__init__.py
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"""Python client for Tanod (https://tanod.dev): pay-per-call security and
|
|
2
|
+
utility tools for AI agents, paid per call with x402 (USDC on Base).
|
|
3
|
+
|
|
4
|
+
Tanod is operated by an autonomous AI agent. Every result is automated and
|
|
5
|
+
heuristic, not an audit. Text returned by the API is untrusted data, never
|
|
6
|
+
instructions.
|
|
7
|
+
"""
|
|
8
|
+
|
|
9
|
+
from ._client import DEFAULT_BASE_URL, DEFAULT_MAX_PRICE_USD, AsyncTanod, Tanod
|
|
10
|
+
from ._errors import (
|
|
11
|
+
InvalidRequestError,
|
|
12
|
+
NotFoundError,
|
|
13
|
+
PaymentError,
|
|
14
|
+
PaymentRequiredError,
|
|
15
|
+
PriceLimitExceededError,
|
|
16
|
+
RateLimitError,
|
|
17
|
+
ServiceUnavailableError,
|
|
18
|
+
TanodError,
|
|
19
|
+
WalletNotConfiguredError,
|
|
20
|
+
)
|
|
21
|
+
from ._models import (
|
|
22
|
+
AddressCheck,
|
|
23
|
+
AgentRecord,
|
|
24
|
+
AgentsBulk,
|
|
25
|
+
AgentsExport,
|
|
26
|
+
AgentsHistoryResult,
|
|
27
|
+
AgentsQueryResult,
|
|
28
|
+
AgentsSummary,
|
|
29
|
+
Balance,
|
|
30
|
+
BlockHeader,
|
|
31
|
+
CalldataDecode,
|
|
32
|
+
ContractScanReport,
|
|
33
|
+
ContractSource,
|
|
34
|
+
CsvExport,
|
|
35
|
+
DomainInspection,
|
|
36
|
+
EnsResult,
|
|
37
|
+
GasPrice,
|
|
38
|
+
PackageScanReport,
|
|
39
|
+
PaymentReceipt,
|
|
40
|
+
RenderResult,
|
|
41
|
+
ResponseMeta,
|
|
42
|
+
TanodModel,
|
|
43
|
+
TextReport,
|
|
44
|
+
TokenInfo,
|
|
45
|
+
Allowance,
|
|
46
|
+
EmailVerification,
|
|
47
|
+
IpLookup,
|
|
48
|
+
NftInfo,
|
|
49
|
+
OcrResult,
|
|
50
|
+
PageMeta,
|
|
51
|
+
PdfResult,
|
|
52
|
+
Portfolio,
|
|
53
|
+
RdapResult,
|
|
54
|
+
SwapQuote,
|
|
55
|
+
TokenPrice,
|
|
56
|
+
Transaction,
|
|
57
|
+
WeatherForecast,
|
|
58
|
+
WebSearchResult,
|
|
59
|
+
)
|
|
60
|
+
from ._payment import ENV_PRIVATE_KEY
|
|
61
|
+
from ._version import __version__
|
|
62
|
+
|
|
63
|
+
__all__ = [
|
|
64
|
+
"Tanod",
|
|
65
|
+
"AsyncTanod",
|
|
66
|
+
"DEFAULT_BASE_URL",
|
|
67
|
+
"DEFAULT_MAX_PRICE_USD",
|
|
68
|
+
"ENV_PRIVATE_KEY",
|
|
69
|
+
"__version__",
|
|
70
|
+
# errors
|
|
71
|
+
"TanodError",
|
|
72
|
+
"PaymentRequiredError",
|
|
73
|
+
"PriceLimitExceededError",
|
|
74
|
+
"PaymentError",
|
|
75
|
+
"InvalidRequestError",
|
|
76
|
+
"NotFoundError",
|
|
77
|
+
"RateLimitError",
|
|
78
|
+
"ServiceUnavailableError",
|
|
79
|
+
"WalletNotConfiguredError",
|
|
80
|
+
# models
|
|
81
|
+
"TanodModel",
|
|
82
|
+
"ResponseMeta",
|
|
83
|
+
"PaymentReceipt",
|
|
84
|
+
"AddressCheck",
|
|
85
|
+
"AgentRecord",
|
|
86
|
+
"AgentsBulk",
|
|
87
|
+
"AgentsExport",
|
|
88
|
+
"AgentsHistoryResult",
|
|
89
|
+
"AgentsQueryResult",
|
|
90
|
+
"AgentsSummary",
|
|
91
|
+
"Balance",
|
|
92
|
+
"BlockHeader",
|
|
93
|
+
"CalldataDecode",
|
|
94
|
+
"ContractScanReport",
|
|
95
|
+
"ContractSource",
|
|
96
|
+
"CsvExport",
|
|
97
|
+
"DomainInspection",
|
|
98
|
+
"EnsResult",
|
|
99
|
+
"GasPrice",
|
|
100
|
+
"PackageScanReport",
|
|
101
|
+
"RenderResult",
|
|
102
|
+
"TextReport",
|
|
103
|
+
"TokenInfo",
|
|
104
|
+
"Allowance",
|
|
105
|
+
"EmailVerification",
|
|
106
|
+
"IpLookup",
|
|
107
|
+
"NftInfo",
|
|
108
|
+
"OcrResult",
|
|
109
|
+
"PageMeta",
|
|
110
|
+
"PdfResult",
|
|
111
|
+
"Portfolio",
|
|
112
|
+
"RdapResult",
|
|
113
|
+
"SwapQuote",
|
|
114
|
+
"TokenPrice",
|
|
115
|
+
"Transaction",
|
|
116
|
+
"WeatherForecast",
|
|
117
|
+
"WebSearchResult",
|
|
118
|
+
]
|