datamodel-code-generator: Generate Pydantic v2 models, dataclasses, TypedDict, and msgspec.Struct from OpenAPI, JSON Schema, GraphQL

by datamodel-code-generator · Agent Tool · ★ 4.1k

Last updated: · Indexed by AgentSkillsHub · Auto-synced every 8h

How to install datamodel-code-generator

uv tool install datamodel-code-generator
uv add --dev datamodel-code-generator

Taken from the project's README on GitHub. Check the security audit before running it.

Security audit verdict: SAFE · quality 66/100

None of the 44 rules matched — no credential harvesting, no data exfiltration, no curl-pipe-shell installer. Scanned against 44 published rules built on the SlowMist agent-security taxonomy, refreshed every 8 hours. Full audit →

The quality score combines nine heuristic checks of the repo and its README: completeness, clarity, specificity, examples, structure, agent readiness, step-by-step content, instruction quality and security notes. It rates how well the project explains itself to an agent, not the code.

agent-skillscode-generatorcsvdataclassdatamodelfastapigeneratorgraphqljson-schemamsgspec

Quick Facts

Stars4,064
Forks490
LanguagePython
CategoryAgent Tool
LicenseMIT
Quality Score66/100
Open Issues96
Last Updated2026-11-23
Created2019-05-29
Platformspython
Est. Tokens~21k

About datamodel-code-generator

datamodel-code-generator 🚀 Generate Python data models from schema definitions in seconds. 📚 Documentation · 🧪 Playground · 💼 Lead maintainer available for work [!NOTE] Playground privacy: Generation runs locally in your browser with Pyodide. Your schema and options are not sent to a backend.

Compatible Skills

These tools work well together with datamodel-code-generator for enhanced workflows:

  • mcp2cli — semantic(0.35)+complementary+same_lang+similar_pop+shared_platform (62%)
  • openapi-servers — semantic(0.26)+complementary+same_lang+similar_pop+shared_platform (59%)
  • mcpo — semantic(0.24)+complementary+same_lang+similar_pop+shared_platform (58%)
  • ProxmoxMCP-Plus — semantic(0.16)+complementary+same_lang+similar_pop+shared_platform (55%)

datamodel-code-generator alternative? Top 6 similar tools

Looking for a datamodel-code-generator alternative? If you're comparing datamodel-code-generator with other agent tool tools, these 6 projects are the closest alternatives on Agent Skills Hub — ranked by topic overlap, star count, and community traction.

  • logfire by pydantic · ⭐ 4.6k

    AI observability platform for production LLM and agent systems.

  • XHS-Downloader by JoeanAmier · ⭐ 13.4k

    小红书(XiaoHongShu、RedNote)链接提取/作品采集工具

  • fastapi_mcp by tadata-org · ⭐ 12.0k

    Expose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth!

  • drawio-skill by Agents365-ai · ⭐ 10.9k

    Agent skill that turns natural language, code, Terraform/K8s, SQL, OpenAPI, AsyncAPI, Protobuf and GraphQL sou

  • honcho by plastic-labs · ⭐ 8.2k

    Memory library for building stateful agents

  • cli-printing-press by mvanhorn · ⭐ 5.0k

    Every API has a secret identity. This finds it, absorbs every feature from every competing tool, then builds t

More Agent Tool Tools

Explore other popular agent tool tools:

View all Agent Tool tools →

Popular Python Agent Tools

How this security grade is produced

Grades come from a rule-based scan built on the SlowMist agent-security taxonomy: 44 published rules, covering credential harvesting, data exfiltration, curl | sh installers and more. It is a first-layer scan, not a manual audit — we say so rather than overstate it.

The scale of the problem is documented independently: Liu et al. (2026), in a study of 31,132 agent skills, report that 26.1% contain security vulnerabilities. Our own full-catalog census is published as a citable open dataset.

Sources & who's responsible:

View on GitHub → Browse Agent Tool tools