Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
133 lines (124 loc) · 4.25 KB
/
Copy pathpyproject.toml
File metadata and controls
133 lines (124 loc) · 4.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "iicp-client"
version = "0.7.110"
description = "Use the open IICP AI mesh from Python without running a node"
readme = "README.md"
license = {text = "Apache-2.0"}
requires-python = ">=3.11,<3.15"
authors = [
{name = "IICP Contributors"},
]
keywords = ["iicp", "ai-agents", "protocol", "sdk", "llm"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"httpx>=0.27",
# Direct dependency: endpoint pinning uses httpcore's network-backend API.
"httpcore>=1,<2",
# identity.py imports Ed25519PrivateKey unconditionally on the operator
# identity path that `iicp-node init` always exercises — core, not optional.
"cryptography>=42",
"rfc8785==0.1.4",
]
[project.scripts]
# `pip install iicp-client` now ships an `iicp-node` console entry point.
# Replaces the hand-written sdk_node.py boilerplate operators used to copy.
iicp-node = "iicp_client.cli:main"
[project.urls]
Homepage = "https://iicp.network"
Repository = "https://github.com/RobLe3/iicp-client-python"
Documentation = "https://iicp.network/docs"
"Bug Tracker" = "https://github.com/RobLe3/iicp-client-python/issues"
[project.optional-dependencies]
metrics = [
"prometheus-client>=0.20",
]
# Experimental plaintext native IICP draft (provisional port 9484). Installing
# this extra does not mount or advertise it; provider nodes also require
# IICP_ENABLE_EXPERIMENTAL_NATIVE_TCP=1. It is excluded from stable/production.
iicp-tcp = [
"cbor2>=5.4",
]
# ADR-041 UPnP NAT detection — auto-discover public endpoint on operator
# networks behind a UPnP-capable router. Optional because upnpclient pulls in
# lxml (C extension), which fails to build on some minimal containers.
nat = [
"upnpclient>=1.0",
"ifaddr>=0.2",
]
# IICP-CX S.16: E2E payload confidentiality (X25519-HKDF-SHA256 + AES-256-GCM)
cx = [
"cryptography>=42",
]
# ADR-050 unified client — the local OpenAI/Ollama/Anthropic-compat proxy gateway
# (`iicp-node proxy`). Optional because it pulls FastAPI/uvicorn; plain library /
# consumer use (IicpClient) and `iicp-node serve`/`query` do NOT need it. The
# proxy subcommand lazy-imports these and errors clearly if the extra is absent.
proxy = [
"fastapi>=0.115",
"uvicorn[standard]>=0.32",
"pydantic>=2.9",
"pydantic-settings>=2.14.2",
"starlette>=1.3.1",
"prometheus-client>=0.21",
"cryptography>=42",
]
dev = [
"pytest>=8.3",
"pytest-asyncio>=0.24",
"pytest-timeout>=2.3",
"respx>=0.21",
"ruff>=0.8",
"mypy>=1.18",
"pytest-cov>=6.0",
"pip-audit>=2.9",
"build>=1.2",
"prometheus-client>=0.20",
"cbor2>=5.4",
"cryptography>=42",
# ADR-050 proxy gateway — needed to exercise the moved iicp_client.proxy tests
"fastapi>=0.115",
"uvicorn[standard]>=0.32",
"pydantic-settings>=2.14.2",
"starlette>=1.3.1",
"httpx>=0.27",
]
[tool.hatch.build.targets.wheel]
packages = ["src/iicp_client"]
[tool.pytest.ini_options]
markers = ["ticketed_dispatch: test controls the ticket endpoint explicitly"]
asyncio_mode = "auto"
# Hard per-test timeout so a hung test fails fast in CI with a specific
# traceback instead of consuming the whole runner. Locally the full suite
# runs in <3s; 30s is generous for the slowest fixture (HTTP server boot
# + shutdown).
timeout = 30
timeout_method = "thread"
[tool.ruff]
line-length = 120
target-version = "py311"
[tool.ruff.lint]
select = ["E", "F", "I", "UP", "B"]
# Black/Ruff formatting keeps ordinary code readable, but protocol fixtures,
# signed payload vectors, and CLI error strings legitimately exceed 120 chars.
# Keep correctness/import/bugbear checks strict without turning those stable
# protocol literals into a release blocker.
ignore = ["E501"]
[tool.mypy]
python_version = "3.11"
files = ["src"]
show_error_codes = true
pretty = false