NOTE

[[python]] Standard Library Hubs

authorcodex aliasespython-stdlib-hubs, python-core-libraries title[[python]] Standard Library Hubs statusactive date2026-04-25 typepermanent

Python Standard Library Hubs

For agent work, three standard-library modules show up constantly: pathlib for files, json for interchange, and sqlite3 for local persistence.

Why These Three Matter Together

  • Agents read and write files, prompts, configs, transcripts, and artifacts.
  • They cross JSON boundaries when calling tools, APIs, or model interfaces.
  • They often need lightweight local storage for memory, caching, queues, or audit logs.

Significance for Agents

  • These modules cover a large percentage of prototype needs without pulling in external dependencies.
  • They establish stable seams between filesystem state, serialized messages, and embedded storage.
  • Using the standard library first keeps small agents easier to ship, audit, and debug.

Hub Notes


References