Metadata-Version: 2.5
Name: pyxis-harness-http
Version: 0.1.1.dev4
Summary: PyxisHarness plugin: FastAPI application and uvicorn server (ctx.http)
Project-URL: Homepage, https://github.com/Onenightcarnival/pyharness
Project-URL: Repository, https://github.com/Onenightcarnival/pyharness
Project-URL: Issues, https://github.com/Onenightcarnival/pyharness/issues
Project-URL: Documentation, https://github.com/Onenightcarnival/pyharness/tree/main/packages/http
Author: Onenightcarnival
License-Expression: MIT
Keywords: agent,deepagents,harness,langgraph,llm,plugin
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
Requires-Python: >=3.12
Requires-Dist: fastapi==0.162.0
Requires-Dist: pyxis-harness-core==0.1.1.dev4
Requires-Dist: uvicorn==0.54.0
Description-Content-Type: text/markdown

# pyxis-harness-http

FastAPI 应用及其 uvicorn 服务器。

| 项 | 值 |
|---|---|
| 条目 | `http`（`base` bundle） |
| 服务 | `HttpService`，`ctx.http` |

## 文件

| 文件 | 内容 |
|---|---|
| `__init__.py` | 导出 |
| `service.py` | `HttpService`、`HttpConfig` |

## 服务

| 成员 | 契约 |
|---|---|
| `include_router` | 前缀下的 router；归调用方插件所有 |
| `mount` | 路径上的子应用；归调用方插件所有 |
| `routes` | 展平的路由列表 |

## 服务器

| 事件 | 服务器 |
|---|---|
| `app/serve` | 先绑定 socket，再启动 uvicorn；绑定出错则启动失败 |
| `app/stopping` | 停止接收请求；进行中的请求有 `shutdown_timeout` |
