semvec/pypi-packages huggingface dataset:
rexpr 1.0.0
Get the source code string of an expression and optionally evalute it.
Requires Python: >=3.14

# rexpr
A small library that uses Python 3.14's new templates (t-strings) to smoothly implement a way to turn an expression into its source code string dynamically.

## Advantages
This solution brings multiple advantages:
- Laziness:
    If the expression should does not need to be evaluated (only the source code string is desired), it won't be.
- Fast:
    Only very few basic string checks and modifications are performed.
- Builtin support by type checkers and linters:
    As long as a type checker / linter supports templates, the correct return value (if evaluated), the correctness of the expression and the correct type of the interpolation can be verified.
    As of writing this (Python 3.14rc2), generic support for templates and interpolations has been [added](https://github.com/python/cpython/issues/133970), but is not yet supported by typeshed and type checkers.
- Single point of truth:
    By having the possibility to also evaluate an expression in the same function call, there is no need to duplicate an expression to get both its evaluated value and its source code string.

## References
This module is an implementation of the ideas and solutions proposed by my [topic](https://discuss.python.org/t/proposal-implement-builtin-way-to-stringify-expression-nicely-2/101589).
finter-agent 0.1.1
Quantitative research platform CLI with specialized agents for various research types
Requires Python: >=3.13

# Finter Agent

Quantitative research platform CLI with specialized agents for various research types including signal research, data analysis, machine learning, and backtesting.

## Installation

Install via uv (recommended):

```bash
uv tool install finter-agent
```

Or via pip:

```bash
pip install finter-agent
```

## Usage

Initialize a new quantitative research environment with specialized agents:

### Signal Research (Trading Strategies)
```bash
finter-agent init --signal
```

### With Custom Project Name
```bash
finter-agent init --name my-quant-project --signal
```

Default type is `signal` if no research type is specified:
```bash
finter-agent init  # Creates a signal research environment
```

## What it does

The `init` command will:

- ✅ Check and install `uv` if needed
- 🏗️ Create a new project directory
- 🐍 Set up Python virtual environment with uv
- 📦 Install necessary dependencies
- 🤖 Add specialized Claude Code agents for your research type
- 📝 Include CLAUDE.md configuration for optimal development
- 🚀 Configure development environment for quantitative research

## Research Types

- **Signal**: Trading strategy development and signal generation

## Requirements

- Python 3.12+
- Internet connection for package installation

## Development

To contribute to this project:

```bash
git clone https://github.com/quantit/finter-agent.git
cd finter-agent
uv sync
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
uv pip install -e .
```

## License

MIT License
mcp-mysql-server-licai-czg-202509111517-9baa6c-202509111516-735609-20250911-e5ceb8 1.0.0
A MySQL MCP Server for cross-database queries with Chinese field mapping
Requires Python: >=3.8
Keywords: mcp mysql server database cross-database chinese

# MCP MySQL Server (理财-CZG版)

一个支持跨数据库查询和中文字段映射的MySQL MCP服务器。

## 🚀 特性

- ✅ **跨数据库查询支持** - 支持多个MySQL数据库的联合查询
- ✅ **中文字段映射** - 返回数据包含中文字段说明，前端更易理解
- ✅ **真实业务SQL** - 基于实际业务需求设计的查询接口
- ✅ **安全连接** - 支持SSL和安全的数据库连接
- ✅ **灵活配置** - 通过环境变量轻松配置多个数据库

## 📦 安装

```bash
pip install mcp-mysql-server-licai-czg
```

## 🛠️ 配置

### 1. MCP客户端配置

在你的MCP客户端配置文件中添加：

```json
{
  "mcpServers": {
    "mysql-server": {
      "command": "mcp-mysql-server-licai-czg",
      "env": {
        "MYSQL_HOST": "your-mysql-host",
        "MYSQL_PORT": "3306",
        "MYSQL_USER": "your-username",
        "MYSQL_PASSWORD": "your-password",
        "MYSQL_DATABASES": "database1,database2"
      }
    }
  }
}
```

### 2. 环境变量

| 变量名 | 描述 | 默认值 |
|--------|------|--------|
| `MYSQL_HOST` | MySQL服务器地址 | `localhost` |
| `MYSQL_PORT` | MySQL端口 | `3306` |
| `MYSQL_USER` | 数据库用户名 | `root` |
| `MYSQL_PASSWORD` | 数据库密码 | `` |
| `MYSQL_DATABASES` | 数据库列表(逗号分隔) | `` |

## 🔧 可用工具

### 1. 用户查询工具

- **get_user_info_by_mobile** - 根据手机号查询用户信息
- **get_user_info_by_nickname** - 根据用户名查询用户信息

### 2. 业务数据工具

- **get_user_courses** - 查询用户课程信息
- **get_user_cases** - 查询用户案例信息
- **get_user_orders** - 查询用户订单信息
- **get_user_invoices** - 查询用户发票信息

### 3. 统计分析工具

- **get_user_study_plan_stats** - 查询用户学习计划统计数据

## 📊 返回数据格式

所有工具返回的数据都包含中文字段说明：

```json
{
  "用户ID": 123456,
  "用户昵称": "张三",
  "注册日期": "2024-01-01",
  "手机状态": 1,
  "手机区号": "+86"
}
```

## 🗄️ 数据库支持

### 跨数据库查询

支持在单个查询中访问多个数据库：

```sql
SELECT 
    u.userId as 用户ID,
    u.nickname as 用户昵称
FROM sso.sso_user_new u
LEFT JOIN dpt_e-commerce.orders o ON o.userid = u.userId
WHERE u.mobile = %s
```

### 支持的数据库类型

- MySQL 5.7+
- MySQL 8.0+
- MariaDB 10.3+

## 🔒 安全性

- 支持SSL连接
- 参数化查询防止SQL注入
- 敏感信息通过环境变量配置
- 连接池管理

## 📝 开发

### 本地开发

```bash
# 克隆项目
git clone https://github.com/yourusername/mcp-mysql-business-server.git
cd mcp-mysql-business-server

# 安装依赖
pip install -r requirements.txt

# 运行测试
python -m pytest tests/

# 本地安装
pip install -e .
```

### 构建发布

```bash
# 构建包
python setup.py sdist bdist_wheel

# 上传到PyPI
twine upload dist/*
```

## 📄 许可证

MIT License - 详见 [LICENSE](LICENSE) 文件

## 🤝 贡献

欢迎提交Issue和Pull Request！

## 📞 支持

如有问题，请提交Issue或联系：
- Email: your.email@example.com
- GitHub: https://github.com/yourusername/mcp-mysql-business-server

## 🔄 更新日志

### v1.0.0 (2024-09-11)
- 初始版本发布
- 支持跨数据库查询
- 中文字段映射
- 7个业务查询工具
- 完整的MCP协议支持