# python-utils **Repository Path**: xs-shuai/python-utils ## Basic Information - **Project Name**: python-utils - **Description**: python工具集, - **Primary Language**: Python - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2024-09-24 - **Last Updated**: 2025-11-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # python-utils #### 介绍 python工具集, 1. requestToApi 请求到接口 > 封装查询, get请求 post请求 put请求 delete请求 文件上传 ```python # post请求 client = HTTPClient("http://localhost:9222", headers={}) files = {'file': open('D:\\project\\saas\\testData\\RoadNet-dz.txt', 'rb')} data = { "name": "xs1", "xMin": 107.471823692322, "yMin": 31.2008354308881, "xMax": 107.505040168762, "yMax": 31.2198849267422 } response = client.post("/sim/uploadSave", data=data,files=files) print(response) # get请求 ``` 2. 微信发送消息 > 初始话安装 : > pip install subprocess time pyautogui pyperclip > 打包为exe, 使用 > pyinstaller --onefile --windowed .\auto-windows\__initWx__.py 打包 pyinstaller --onefile --windowed .\auto-windows\_\_initWx\_\_.py 3.