My First Open Source AI Generated Library

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

An expert-published, fully AI-written Python library on PyPI shows that Claude Code can now produce genuinely good, tested, packaged code under expert supervision.

Read this as

Armin Ronacher, a well-known Python programmer, had the Claude AI system write almost all of a new software library called sloppy-xml-py. The AI wrote about 1,100 lines of code, plus the documentation, tests, packaging, publishing setup and even a logo. The library reads the slightly broken XML text that AI chatbots often produce. It works well enough that it is now publicly available, though the project was an experiment rather than a replacement for human programmers.

Flask creator Armin Ronacher used Claude and Claude Code to build, test, package and publish a Python library called sloppy-xml-py with almost no manual coding, proving a skilled expert supervising AI can ship production-quality open source in days. The gain goes to experts who can verify and steer the work; teams hoping to replace engineers wholesale gain nothing, since the quality came from Ronacher's control. It is on PyPI today.

sloppy-xml-py is a lax XML parser, ~1,100 lines of Python, written almost entirely by Claude Code from Armin Ronacher's design, including CI configuration, PyPI publishing, tests, README, changelog and a theme-aware SVG logo. It exists because LLMs emit malformed XML that strict parsers reject. Willison argues the code meets his quality bar because the expert stayed in full control; the article includes no benchmark figures or performance data.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

sloppy-xml-py Claude Claude Code PyPI Python Ladybird Datasette

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading

datasette-charts 0.4a0

Datasette now lets developers add custom chart types more easily, expanding visualisation options for data projects.