SCP Client - SCP协议客户端库,支持流式和非流式通信
Project description
scp-client
SCP(Science Context Protocol)相关服务的客户端工具库。
安装
pip install scp-client
使用
非流式(streamable-http / sse)
import asyncio
from scp_client import fetch_scp_Client
async def main():
client = fetch_scp_Client(
server_url="https://your-mcp-server.example.com/mcp",
transport_type="streamable-http", # or "sse"
headers_config={},
)
await client.connect()
await client.list_tools()
await client.disconnect()
if __name__ == "__main__":
asyncio.run(main())
流式(streamable-http)
import asyncio
from scp_client import stream_scp_Client
async def main():
client = stream_scp_Client(
server_url="https://your-mcp-server.example.com/mcp",
headers_config={},
)
await client.connect()
await client.list_tools()
await client.disconnect()
if __name__ == "__main__":
asyncio.run(main())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
scp_py_client-0.0.1.tar.gz
(3.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file scp_py_client-0.0.1.tar.gz.
File metadata
- Download URL: scp_py_client-0.0.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7987b60ec57e3988551c787e077fce4c2d4a178e5ae2d66480fd1a3186e6a44
|
|
| MD5 |
ff8f247d8b4d871658c2be4ff2cf3583
|
|
| BLAKE2b-256 |
f841115771ee46dc7ae05c97054d5a85525cc30be9e3d85a8569f9dda8ed1956
|
File details
Details for the file scp_py_client-0.0.1-py3-none-any.whl.
File metadata
- Download URL: scp_py_client-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
800e92a5d53aaf8d27c50f61304eb39741670a84b9cf3d661d230ed9c7333200
|
|
| MD5 |
46874be21e8249aacc2e324ec075e31a
|
|
| BLAKE2b-256 |
48ff68b385e4d3e634e2dba5e166e857655f96bdb74dc5990ac685f204fcbfd9
|