会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
waketzheng
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
下一页
2025年7月26日
fastapi use orjson as default serializer ORJSONResponse
摘要: 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)
2025年7月20日
pdm deps 适配了Windows/Linux的pdm专用依赖性安装脚本
摘要: 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)
2025年6月17日
httpx DigestAuth
摘要: 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)
2025年4月23日
celery conf
摘要: 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)
2025年4月18日
Install latest version of supervisor from github
摘要: 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)
2025年4月1日
pip/uv/pdm/poetry换源脚本
摘要: 最新代码可以这样下载: 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)
2025年3月6日
A HTML that using flv.js to play flv
摘要: 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)
2024年11月20日
使用docker启动mysql/postgresql服务
摘要: 首先安装和启动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)
2024年10月29日
uv install package with pip
摘要: 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)
2024年10月15日
zsh-autosuggestions for oh-my-zsh
摘要: 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)
上一页
1
2
3
4
5
6
下一页
公告