跳到正文
每分钟自动更新
11月15日周日
  1. Simon Willison

    datasette-llm 0.1a11

    中文摘要

    发布:datasette-llm 0.1a11 datasette-llm 是 Datasette 的中间插件,支持为其他 Datasette 插件配置 LLM。此版本增加了对 OpenAI 兼容端点的支持,因此你可以配置 Datasette 使用任何遵循 OpenAI 伪标准网络协议的 LLM。这意味着如果你正在使用 LM Studio 或 Ollama 或 llama.cpp(刚刚发布 v1.0.0 版本)运行本地模型,你可以通过 uvx 运行 Datasette,如下所示:wget https://datasette.io/content.db uvx --with datasette-agent datasette \ --root --secret 1 \ -s plugins.datasette-llm.default_model ' { "model": "lmstudio-qwen", "model_name": "qwen/qwen3.8-27b", "api_base": "http://localhost:1234/v1" } ' content.db 你将获得一个本地服务器,运行由你的本地模型驱动的 Datasette Agent 实例! 标签:uv , datasette-agent , llm , datasette , llms , ai , generative-ai

    英文原文

    Release: datasette-llm 0.1a11 datasette-llm is the intermediate plugin for Datasette that supports configuring LLMs for use with other Datasette plugins. This release adds support for OpenAI-compatible endpoints, so you can configure Datasette to use an LLM hosted anywhere that talks the OpenAI pseudo-standard web protocol. This means that if you're running local models with LM Studio or Ollama or llama.cpp (which just hit v1.0.0 ) you can run Datasette via uvx like this: wget https://datasette.io/content.db uvx --with datasette-agent datasette \ --root --secret 1 \ -s plugins.datasette-llm.default_model ' { "model": "lmstudio-qwen", "model_name": "qwen/qwen3.8-27b", "api_base": "http://localhost:1234/v1" } ' content.db And you'll get a local server running a Datasette Agent instance powered by your local model! Tags: uv , datasette-agent , llm , datasette , llms , ai , generative-ai

11月2日周一
  1. Simon Willison

    If in doubt, delete the uv.lock file

    中文摘要

    自从我切换到 Python 3.15 之后,我偶尔会遇到一些令人困惑的 Python 依赖错误。我需要记住的规则是:如果不确定,就删除 uv.lock 文件。我的大部分项目都是库,这些库不包含 uv.lock 文件,因为让库依赖项为其他使用它的内容锁定版本是不礼貌的。运行 uv run pytest 等命令通常会在项目中留下 uv.lock 文件,这些文件被列在 .gitignore 中,因此不会被提交到我的代码仓库中。但是……有时候这个 uv.lock 会锁定一个尚未为 Python 3.15 提供 wheel 的依赖版本。例如今天早些时候的一个例子:错误:无法构建 `watchfiles==1.1.1`,原因:调用 `maturin.build_wheel` 失败。错误:配置的 Python 解释器版本(3.15)比 PyO3 支持的最高版本(3.14)还要新。删除该文件并再次运行 uv run pytest 通常可以解决问题。标签:uv , til , python

    英文原文

    I've been getting the occasional confusing Python dependency error since switching over to Python 3.15 and the rule I'm having to remember is: If in doubt, delete the uv.lock file Most of my projects are libraries which don't include a uv.lock file, since it's rude for a library dependency to lock versions for anything else that uses it. Running uv run pytest etc tends to leave uv.lock files lying around, which are listed in .gitignore and so do not get committed to my repositories. But... sometimes that uv.lock pins a version of a dependency that doesn't yet have a Python 3.15 wheel. An example from earlier today: error: Failed to build `watchfiles==1.1.1` cause: Call to `maturin.build_wheel` failed error: the configured Python interpreter version (3.15) is newer than PyO3's maximum supported version (3.14) Deleting that file and running uv run pytest again usually fixes the problem. Tags: uv , til , python

10月21日周三
  1. Simon Willison

    eMudhra Intermediate CA Compromise

    中文摘要

    eMudhra中间CA证书泄露 这是个非常非常糟糕的消息:八个eMudhra中间CA证书的私钥已被泄露。这些证书链接到Mozilla、微软、苹果和Chrome根程序所信任的根证书,以及许多下游信任存储。任何捆绑了受信任证书列表的软件都需要进行更新。该网站通过此GitHub仓库跟踪软件更新——Linux发行版需要更新其ca-certificates软件包。在Python世界中,uv 0.13.4、pip 26.2.2和certifi 2026.10.19已发布,包含升级后的证书列表。在官方Python论坛上有一个非常有信息量的讨论帖。 标签:加密,https,pip,python,安全,uv

    英文原文

    eMudhra Intermediate CA Compromise This is very, very bad news: The private keys of eight eMudhra intermediate CA certificates have been compromised. They chain to roots trusted by the Mozilla, Microsoft, Apple and Chrome root programs and by many downstream trust stores. Any software that bundles a list of trusted certificates needs to be updated. This site is tracking software updates via this GitHub repository - Linux distros need to update their ca-certificates packages. In Python world uv 0.13.4 and pip 26.2.2 and certifi 2026.10.19 have been released with upgraded certificate lists. There's a very informative thread about this on the official Python forum. Tags: encryption , https , pip , python , security , uv

10月13日周二
  1. Simon Willison

    Hello Python 3.15, goodbye 3.10, and now I can use 3.11

    中文摘要

    Python 3.15来了!这是Python 3.15的必备更新指南,今年由3.14和3.15版本发布负责人Hugo van Kemenade整理。作为一名构建可在所有支持的Python版本中运行的开源软件的人,我可以说,我将告别Python 3.10,并开始拥抱Python 3.11的新特性。首先,一些Python 3.15的亮点。显式延迟导入我最兴奋的是来自PEP 810的显式延迟导入功能。这允许你像这样导入模块:lazy import json lazy from pathlib import Path 模块将在后续代码中首次使用这些符号时被导入。我的LLM命令行工具实现了插件。我不得不在插件作者文档中推荐手动延迟导入,因为仅仅安装使用了像sentence_transformers这样的重型依赖的插件,会使每次调用llm命令都增加数秒。延迟导入直接解决了这个启动成本。推导式中的解包新语法[*sublist for sublist in lists]非常棒。这里有一个从文档中摘录的示例:lists = [[1, 2], [3, 4], [5]] [*L for L in lists] # [1, 2, 3, 4, 5] # 等价于[x for L in lists for x in L]

    英文原文

    Python 3.15 is here ! Here's the essential What's new in Python 3.15 guide, this year curated by 3.14 and 3.15 release manager Hugo van Kemenade. As someone who builds open source software that works in every supported Python version, I get to say goodbye to Python 3.10 and start embracing features from Python 3.11. First, some highlights from Python 3.15. Explicit lazy imports I'm most excited about Explicit lazy imports from PEP 810 . These let you import modules like so: lazy import json lazy from pathlib import Path The module will then be imported the first time those symbols are used in the code that follows. My LLM CLI tool implements plugins. I had to recommend manual lazy imports in the plugin author documentation, because simply installing plugins that used heavy dependencies such as sentence_transformers could add multiple seconds to every invocation of the llm command. Lazy imports directly address this startup cost. Unpacking in comprehensions The new [*sublist for sublist in lists] unpacking syntax is neat. Here's an illustration lifted from the documentation : lists = [[ 1 , 2 ], [ 3 , 4 ], [ 5 ]] [ * L for L in lists ] # [1, 2, 3, 4, 5] # equivalent to [x for L in l