SaltCat's recent timeline updates
SaltCat's repos on GitHub
Python · 53 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 · 24 watchers
Mina
JavaScript · 15 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.
Rust · 6 watchers
qt-solid
JavaScript · 3 watchers
LiteLoaderQQNT-Markdown
为QQ添加Markdown渲染支持; it works on my machine
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
OpenTUI is a library for building terminal user interfaces (TUIs)
TypeScript · 1 watchers
opentui-vue
1 watchers
rejected-github-profile-achievements-zhcn
😵 GitHub achievements that did not make the cut, in SC
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 皮肤站)
Rust · 0 watchers
bluepill-cmsis-dap-jtag
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
TypeScript · 0 watchers
jjk
https://github.com/keanemind/jjk 's fork, expanded with hunk-level operations
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
Rust · 0 watchers
napi-rs
A framework for building compiled Node.js add-ons in Rust via Node-API
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.
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™ ✨🍰✨
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   ·   1191 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 21ms · UTC 17:53 · PVG 01:53 · LAX 10:53 · JFK 13:53
♥ Do have faith in what you're doing.