Blog

Findings from the py-code.org index of the code inside PyPI packages, with the queries to check them.

  • The AI agent frameworks that PyPI projects actually import

    6,779 PyPI projects import LangChain, 2,417 LangGraph and 1,203 Pydantic AI. A ranking of 24 AI agent frameworks by the projects whose code imports them, and how many LLM projects use none.

  • The LLM observability SDKs that PyPI projects actually import

    571 PyPI projects import Langfuse and 278 import LangSmith. A ranking of 22 LLM observability SDKs, including Arize Phoenix, Logfire, OpenLLMetry and MLflow, by the projects whose code imports them.

  • PyPI code that breaks on Python 3.12 and 3.13

    3,763 PyPI projects import a module removed in Python 3.12 or 3.13, such as distutils, imp or cgi, and 1,623 of them have imports that would fail. Most of the failing ones that are widely downloaded have had no release in two years.

  • What new PyPI packages are made of

    We counted the imports in 354,763 PyPI projects, 335,167 of them released in the last year. The MCP SDK leads the AI SDKs, httpx is slightly behind requests, and pydantic v2 validators win.