使用说明
MCP SQLite
一个使用Python和SQLite的简单客户端-服务器应用程序。
概述
该项目演示了Python中的基本客户端-服务器架构,其中服务器与SQLite数据库交互,客户端与服务器通信以执行数据库操作。
特性
- 服务器端SQLite数据库管理
- 客户端-服务器通信
- 易于设置和使用
需求
- Python 3.7+
- 中列出的依赖关系
requirements.txt
安装
- 克隆存储库:
git clone https://github.com/1morshed1/mcp-sqlite.git cd mcp-sqlite - 安装依赖项:
pip install -r requirements.txt
用法
启动服务器
运行服务器:
python server.py
运行客户端
在单独的终端中,运行:
streamlit run client.py
项目结构
server.py:处理SQLite操作的服务器应用程序client.py:客户端应用程序与服务器交互requirements.txt:Python依赖关系
许可证
该项目根据MIT许可证获得许可。
