Files
zeekayandHanzo Dev 7439a34aff hanzo-agent 0.1.2
__version__ read the metadata of a distribution named agents, which is
not this package, so it and the User-Agent said 0.0.0. It reads
hanzo-agent now. The extensions package declared its own 0.1.0, which
nothing read.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-11 13:59:51 -07:00

173 lines
4.6 KiB
TOML

[project]
name = "hanzo-agent"
version = "0.1.2"
description = "Hanzo Agent SDK"
readme = "README.md"
requires-python = ">=3.9"
license = "MIT"
authors = [
{ name = "Hanzo AI", email = "[email protected]" },
]
dependencies = [
"openai>=1.66.2",
# imported directly (tracing/processors.py, models/openai_provider.py); openai 3
# replaced its httpx dependency with httpx2, so it no longer arrives transitively
"httpx>=0.23.0, <1",
# pydantic 2.10 first ships cp313t wheels via pydantic-core 2.27
"pydantic>=2.10, <3",
"griffe>=1.5.6, <2",
"typing-extensions>=4.12.2, <5",
"requests>=2.0, <3",
"types-requests>=2.0, <3",
# numpy 2.1+ is first cp313t line — numpy 1.x has no free-threaded wheels.
# 2.1 also dropped 3.9, whose newest numpy is 2.0.2, and requires-python
# still admits 3.9, so the floor is set per interpreter.
"numpy>=1.26; python_version < '3.10'",
"numpy>=2.1.0; python_version >= '3.10'",
]
classifiers = [
"Typing :: Typed",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"License :: OSI Approved :: MIT License"
]
[project.urls]
Homepage = "https://github.com/hanzoai/agent"
Repository = "https://github.com/hanzoai/agent"
[project.optional-dependencies]
# Web3 integration - wallet, transactions, on-chain identity
web3 = [
# 6.20.2 is the first 6.x that caps eth-typing below 5. Below it, a resolver can
# pair web3 6.11 with eth-typing 5, which web3 6 cannot import (seen on 3.9)
"web3>=6.20.2,<7",
"eth-account>=0.10.0,<1",
"eth-utils>=2.0.0,<5",
# pydantic evaluates the `str | None` field in extensions/web3/mpc_client.py,
# and on 3.9 it can only do that with this backport installed
"eval-type-backport>=0.2.0; python_version < '3.10'",
]
# TEE support - Intel SGX, AMD SEV, NVIDIA H100 attestation
tee = [
# cryptography 44+ ships cp313t free-threaded wheels
"cryptography>=44.0.0,<50",
]
# Marketplace - agent service discovery and economic primitives
marketplace = [
# aiohttp 3.11.11 added cp313t wheels
"aiohttp>=3.11.11,<4",
"redis>=5.0.0,<6",
]
# CLI integration
cli = [
"click>=8.1.0,<9",
"rich>=13.0.0,<14",
]
# ZAP protocol support - Zero-copy Agent Protocol for MCP aggregation
zap = [
# No additional dependencies - ZAP uses stdlib asyncio for transport
# Cap'n Proto support is optional for zero-copy performance
]
# All extensions
full = [
"hanzo-agent[web3,tee,marketplace,cli,zap]",
]
[dependency-groups]
dev = [
"mypy",
"ruff==0.9.2",
"pytest",
"pytest-asyncio",
"pytest-mock>=3.14.0",
"rich",
"mkdocs>=1.6.0",
"mkdocs-material>=9.6.0",
"mkdocstrings[python]>=0.28.0",
"coverage>=7.6.12",
"playwright==1.50.0",
]
[tool.uv.workspace]
members = ["agents"]
[tool.uv.sources]
agents = { workspace = true }
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/agents"]
[tool.ruff]
line-length = 100
target-version = "py39"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
isort = { combine-as-imports = true, known-first-party = ["agents"] }
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.per-file-ignores]
"examples/**/*.py" = ["E501"]
[tool.mypy]
strict = true
disallow_incomplete_defs = false
disallow_untyped_defs = false
disallow_untyped_calls = false
[tool.coverage.run]
source = [
"tests",
"src/agents",
]
[tool.coverage.report]
show_missing = true
sort = "-Cover"
exclude_also = [
# This is only executed while typechecking
"if TYPE_CHECKING:",
"@abc.abstractmethod",
"raise NotImplementedError",
"logger.debug",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "session"
filterwarnings = [
# This is a warning that is expected to happen: we have an async filter that raises an exception
"ignore:coroutine 'test_async_input_filter_fails.<locals>.invalid_input_filter' was never awaited:RuntimeWarning",
]
markers = [
"allow_call_model_methods: mark test as allowing calls to real model implementations",
]