V2EX SaltCat
 SaltCat's recent timeline updates
SaltCat's repos on GitHub
Python 52 watchers
richuru
using Rich in Loguru to colour the logs
Rust 25 watchers
barffine
Experimental Rust backend tailored for self-hosted or resource-limited deployments of AFFiNE.
Python 25 watchers
Mina
Javascript 14 watchers
opencode-omit-max-tokens
OpenCode plugin to omit max_output_tokens from API requests
Python 13 watchers
python-mirai
a backup for python-mirai
Python 6 watchers
KnowledgeFruits
This is a pythonic Minecraft Yggdrasil Server, it works with flask and peewee. Have a good time.
Javascript 3 watchers
LiteLoaderQQNT-Markdown
为QQ添加Markdown渲染支持; it works on my machine
Shell 3 watchers
rtwo-restart-sms
A simple magisk/kernelsu module, restart sms service on boot to fix rtwo sms
Javascript 2 watchers
GraiaDocument
Python 2 watchers
mr-cli
1 watchers
ClashX.Meta
TypeScript 1 watchers
comet-mcp
MCP Server connecting to Perplexity Comet browser
C++ 1 watchers
cronet-binaries
Cross-platform binaries for cronet (Chromium Network Stack)
Zig 1 watchers
dart.zig
Dart compiled with Zig
1 watchers
mirai-api-http
Mirai HTTP API (console) plugin
Shell 1 watchers
moto_sm8550_local_manifests
TypeScript 1 watchers
opentui-vue
Rust 1 watchers
qt-solid
1 watchers
rejected-github-profile-achievements-zhcn
GitHub achievements that did not make the cut, in SC
Python 1 watchers
SingingPiano
0 watchers
Action-TWRP-builder
用GitHub工作流构建安卓系统的Recovery
0 watchers
actions_build_ErfanGSIs
2020-04-21 commit了好几次后,终于成功!现在可以按照readme.md使用了!
Python 0 watchers
aioffsend
a asyncio port of Firefox Send.
Python 0 watchers
Alconna
A High-performance, Generality, Humane Python CLI Arguments Parser Library. 一个直观的、高性能、泛用的Python命令行参数解析器集成库
Shell 0 watchers
android-kernel-actions
An action to build an Android kernel with specified toolchains.
0 watchers
Android-Kernel-Builder
Automaticcaly build android kernel by github actions.
0 watchers
arocc
A modern fully featured C compiler.
0 watchers
avilla-tg
The next-gen framework for IM development. Powered by Graia Project.
0 watchers
awesome-pdm
A curated list of awesome PDM plugins and resources
Vue 0 watchers
BewlyCat
BewlyCat基于BewlyBewly开发的Bilibili拓展
Java 0 watchers
BilibiliTask
哔哩哔哩(B站)自动完成每日任务,投币,点赞,直播签到,自动兑换银瓜子为硬币,自动送出即将过期礼物,漫画App签到。
PHP 0 watchers
blessing-skin-server
A web application brings your custom skins back in offline Minecraft servers.(第三方 Minecraft 皮肤站)
Python 0 watchers
Bot
Java 0 watchers
CatServer
Minecraft1.10.2/1.12.2版本的Forge+Bukkit服务端
0 watchers
CatShare
类原生 & 海外设备,现已加入互传联盟。
Pascal 0 watchers
convnet
Convnet客户端
0 watchers
cpython
The Python programming language
0 watchers
CraftTweaker-Documentation
CraftTweaker 简体中文文档
Python 0 watchers
cryptography
cryptography is a package designed to expose cryptographic primitives and recipes to Python developers.
Cython 0 watchers
cython-cronet
0 watchers
cython-hidapi
:snake: Python wrapper for the HIDAPI
0 watchers
dart_sealed
Dart and Flutter sealed class generator and annotations, with match methods and other utilities. There is also super_enum compatible API.
0 watchers
docker-osxcross
MacOSX cross toolchain as Docker image
0 watchers
docs-zh
0 watchers
docsify
A magical documentation site generator.
0 watchers
docsify-themeable
A delightfully simple theme system for docsify.js. Features multiple themes with rich customization options, an improved desktop and mobile experience, and legacy browser support (IE10+).
Cython 0 watchers
elaina-segment
0 watchers
EnergyLevelTransition
Athwart the Gehlon roars a squall, Beneath the tree do roamers stall. When to becrawl, a windfall. 骤风穿行于知识之槲,迷茫者在树下彷徨驻足。将要攀登之际,果实落下。
0 watchers
EnigTech2
大型集成科魔类魔改整合包
Java 0 watchers
FLE
Far Land Era
Shell 0 watchers
git-subrepo-rs
0 watchers
github-notion-star
0 watchers
go-cqhttp
cqhttp的golang实现,轻量、原生跨平台.
0 watchers
gregtech6-chinese-guide
各位老哥可以在GitBook和github来Star一下
0 watchers
GreyElaina
Ruby 0 watchers
homebrew-homebrew
0 watchers
httpcore
A minimal HTTP client.
0 watchers
httpx
A next generation HTTP client for Python.
Python 0 watchers
httpx-ws
WebSocket support for HTTPX
Python 0 watchers
HYDRA
[ECCV] HYDRA: A Hyper Agent for Dynamic Compositional Visual Reasoning
0 watchers
k2-firmware
斐讯K2刷机,固件,breed
0 watchers
koishi
QQ bot out of the box
Javascript 0 watchers
listen1_chrome_extension
one for all free music in china (chrome extension, also works for firefox)
Javascript 0 watchers
listen1_desktop
one for all free music in china (Windows, Mac, Linux desktop)
0 watchers
loguru
Python logging made (stupidly) simple
0 watchers
LSPosed
LSPosed Framework
0 watchers
Magisk
The Magic Mask for Android
0 watchers
malay-bot
Python 0 watchers
MARLIN
[CVPR] MARLIN: Masked Autoencoder for facial video Representation LearnINg
Javascript 0 watchers
mcbbs-markdown2bbcode-converter
Convert Github Flavored Markdown to MCBBS Flavored BBCode
0 watchers
MCDReforged
A rewrited version of MCDaemon, a python script to control your Minecraft server
Javascript 0 watchers
MCSManager
A simple, lightweight, multi-instance Minecraft server panel
Zig 0 watchers
middleout_array.zig
Python 0 watchers
Minecraft-Mod-Language-Package
Release Website
0 watchers
mirai
高效率 QQ 机器人支持库
Shell 0 watchers
my-lede-r6250
CSS 0 watchers
obsidian-heti
0 watchers
onebot
OneBot 标准:一个聊天机器人应用接口标准
TypeScript 0 watchers
onedrive-vercel-index
OneDrive public directory listing, powered by Vercel and Next.js
0 watchers
opencode
The open source coding agent.
TypeScript 0 watchers
opentui
OpenTUI is a library for building terminal user interfaces (TUIs)
0 watchers
pandas-cn
Pandas中文文档,欢迎贡献!
0 watchers
pdm
A modern Python package manager with PEP 582 support.
Dart 0 watchers
pilipala
PiliPala 是使用Flutter开发的BiliBili第三方客户端,感谢使用。
C++ 0 watchers
plugin-htmlkit
Lite HTML renderer plugin for NoneBot2
Rust 0 watchers
pyo3-stub-gen
Stub file (*.pyi) generator for PyO3
0 watchers
pyre-check
Performant type-checking for python.
Python 0 watchers
python-prompt-toolkit
Library for building powerful interactive command line applications in Python
Python 0 watchers
Python-Type-Challenges
Learn Python typing (type hints) by completing online challenges!
Python 0 watchers
qqrobot
coolQ robot
TypeScript 0 watchers
quartz
a fast, batteries-included static-site generator that transforms Markdown content into fully functional websites
0 watchers
QuickShop-Reremake
QuickShop is a shop plugin, that allows players to sell items from a chest with no commands. It allows players to purchase any number of items easily. In fact, this plugin doesn't even have any commands that a player would ever need! Minecraft SunnySide Community continue update this plugin now!
0 watchers
Reno4-5G
Python 0 watchers
requests
Python HTTP Requests for Humans
Makefile 0 watchers
rtwo-twrpdtgen-dt
SaltCat

SaltCat

V2EX member #435227, joined on 2019-08-11 18:10:41 +08:00
SaltCat's recent replies
> 一毫秒都无法接受

rust + tokio 吧.
Dec 7, 2020
Replied to a topic by IVeverKB Python 新手 关于 Python 协程的一个问题
用 asyncio.Lock,还有就直接 asyncio 技术栈一把嗦吧,asyncio 的侵入性感觉还是太强了。。。
mirai 自己写吧
Dec 2, 2020
Replied to a topic by abersheeran Python 关于协程转线程的一个问题
感觉你的表述并不清楚: 你没有说是如何从 coroutine send msg 到 thread 进行处理的(try contextvars); 第一个写的消息被覆盖, 是否考虑使用类似 stack 这样的数据结构 + property 防止覆盖? 如果涉及到同 /异步上下文传递, 可以考虑 `contextvars` 这个库: asyncio 在执行协程时会复制一份当前的上下文来执行, 从而避免出现覆写的问题;
希望能解决你的问题.
我好久都不用直接 json 序列化了, 上次用是 custom FastAPI 的 Response, 自己造了个 OrjsonResponse(后面官方提供了), 就用了 singledispacherxxxxx 和这个特性.
使用 json.dumps 的 default 参数:

```
json.dumps(sth, default=lambda x: x.toNative() if isinstance(x, MyCustomFloat) else None)
```
About     Help     Advertise     Blog     API     FAQ     Solana     2592 Online   Highest 6679       Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 24ms UTC 12:51 PVG 20:51 LAX 05:51 JFK 08:51
Do have faith in what you're doing.
ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86