摘要: I can be as simple as: app = FastAPI(default_response_class=ORJSONResponse) Or more robust: from fastapi import FastAPI from fastapi.responses import 阅读全文
posted @ 2025-07-26 10:54 waketzheng 阅读(16) 评论(0) 推荐(0)
摘要: xGate限制了uv对网络的访问权限,所以Windows环境下,需要使用pip来安装依赖,但pdm创建虚拟环境时,是默认不带pip的,为了统一两个环境的命令,编写了这个脚本: #!/usr/bin/env python """ Install deps by `pdm install -G :all 阅读全文
posted @ 2025-07-20 15:08 waketzheng 阅读(10) 评论(0) 推荐(0)
摘要: requests import requests from requests.auth import HTTPDigestAuth host = 'https://192.168.0.2' path = '/api/xxx' path2 = '/another/api' AUTH = ('usern 阅读全文
posted @ 2025-06-17 16:18 waketzheng 阅读(23) 评论(0) 推荐(0)
摘要: pip list|grep celery celery 5.5.1 celery-types 0.23.0 app/celery_app.py import functools from redis import StrictRedis from celery import Celery MQ_UR 阅读全文
posted @ 2025-04-23 10:30 waketzheng 阅读(34) 评论(0) 推荐(0)
摘要: Command pipx install "supervisor @ git+ssh://git@github.com/waketzheng/supervisor.git" Generate supervisord config echo_supervisord_conf > supervisord 阅读全文
posted @ 2025-04-18 18:28 waketzheng 阅读(21) 评论(0) 推荐(0)
摘要: 最新代码可以这样下载: curl https://gh-proxy.com/raw.githubusercontent.com/waketzheng/carstino/main/pip_conf.py -o pip_conf.py && python pip_conf.py aliyun --uv 阅读全文
posted @ 2025-04-01 11:31 waketzheng 阅读(308) 评论(0) 推荐(0)
摘要: HTML <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" conten 阅读全文
posted @ 2025-03-06 17:27 waketzheng 阅读(23) 评论(0) 推荐(0)
摘要: 首先安装和启动docker 然后创建容器: MySQL filename: begin_mysql_server_in_docker.sh content docker run -d -p 3306:3306 --name mysql_latest -e MYSQL_ROOT_PASSWORD=12 阅读全文
posted @ 2024-11-20 15:23 waketzheng 阅读(124) 评论(0) 推荐(0)
摘要: How to 1. export uv export --frozen --no-hashes -o dev_requirements.txt --frozen表示只输出txt,不更新uv.lock文件 2. create venv and install pip uv venv --python 阅读全文
posted @ 2024-10-29 10:05 waketzheng 阅读(211) 评论(0) 推荐(0)
摘要: Pass test in MacOS/Ubuntu22/CentOS7: export PLUGIN="zsh-autosuggestions" ([[ -f $PLUGIN.tar.xz ]] && tar xf $PLUGIN.tar.xz) || ([[ -f $PLUGIN-master.z 阅读全文
posted @ 2024-10-15 17:08 waketzheng 阅读(36) 评论(0) 推荐(0)