# CurlMorph **Repository Path**: xiaoweidan/curl-morph ## Basic Information - **Project Name**: CurlMorph - **Description**: 完全离线的 cURL 命令跨平台转换工具 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-11-27 - **Last Updated**: 2025-11-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # CurlMorph 离线版 完全离线的 cURL 命令跨平台转换工具,无需 API,无需联网。 ## 功能 将 cURL 命令在以下平台之间互转: - Linux / Mac (Bash) - Windows CMD - Windows PowerShell (Invoke-RestMethod) - Windows PowerShell (curl.exe) ## 快速开始 ### 启动桌面 GUI ```bash python curlmorph_gui.py ``` ### 打包成 exe ```bash pip install pyinstaller pyinstaller --onefile --windowed --name CurlMorph curlmorph_gui.py ``` 打包完成后,exe 文件在 `dist/CurlMorph.exe` ## 命令行使用 ```bash # 转换为 Windows CMD 格式 python curlmorph.py -t cmd "curl -X POST 'https://api.com' -d '{\"name\": \"test\"}'" # 转换为 PowerShell 格式 python curlmorph.py -t powershell "curl -H 'Content-Type: application/json' https://api.com" # 交互模式 python curlmorph.py -i ``` ## 目标平台选项 | 选项 | 说明 | |------|------| | `linux` / `bash` | Linux/Mac Bash 格式 | | `cmd` | Windows CMD 格式 | | `powershell` / `ps` | Windows PowerShell 原生 | | `ps-curl` | Windows PowerShell curl.exe | ## 环境要求 - Python 3.6+ - 打包需要 PyInstaller(GUI 使用 Tkinter,Python 自带无需安装)