Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 4 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

structlog

Structured logging library for Python with composable processors.

Logging, monitoring and analyticsPYPI

GitHub

1. License

License from PyPI license expression.

github.com/hynek/structlog

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What structlog does

Structured logging library for Python with composable processors.

structlog popularity

69 / 100
Gid Score, #452 overall
32.1M
downloads a week, pypi
4,996
GitHub stars
71
agent projects use it
structlog: downloads per weekPyPI, structlog 32,062,080
structlog: GitHub starshynek/structlog 4,996

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How structlog is used

  • structlog is a dependency in 71 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (4.4% of the 1,623 Python ones), #7 of 121 in logging, monitoring and analytics.
  • Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 286; those are left out of every share on this page.
  • The most used alternative in our scan is Loguru (66 projects).
  • Projects that use it most often also use Pydantic (78.9%), Pydantic Settings (57.7%), Uvicorn (56.3%).

By coding agent

43 projects, 1.3%
39 projects, 1.3%
27 projects, 1.1%
8 projects, 1.7%

Often used with

In 78.9% of its projects
In 57.7% of its projects
In 56.3% of its projects
In 54.9% of its projects
In 53.5% of its projects
In 42.3% of its projects
In 40.8% of its projects
In 40.8% of its projects

More about structlog

Funding
  • GitHub Sponsors: https://github.com/hynek
  • Tidelift: https://tidelift.com/funding/github/pypi/structlog
  • thanks.dev: https://thanks.dev/u/gh/hynek
  • Own page: https://hynek.me/say-thanks/
  • 48 GitHub sponsors

See all

More in Logging, monitoring and analytics

Alternatives

structlog This page

MIT OR Apache-2.0Gid 6932.1M/wk

Loguru

Simplified Python logging library with intuitive API and structured logging.

MITGid 7721.7M/wk

python-json-logger

JSON formatter for Python logging to emit structured logs for log aggregation.

BSD-2-ClauseGid 6725.6M/wk

Compare structlog with another tool

Get started

Install it.

pip install structlog

No step-by-step start for structlog yet: we have not written its hand-checked card.