schema
Lightweight Python library for validating data structures against defined schemas.
Forms, validation and schemas PyPI MIT
How schema is used
schema is a dependency in 3 of the 6,208 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 2,661, Ethereum and EVM 1,496, 3D and games 2,818, agent frameworks and SDKs 10,983); counting those, it appears in 72 projects, and what it is used with below comes from all of them. The most used alternative in our scan is Pydantic (536 projects). Projects that use it most often also use aiohttp (100.0%), NumPy (100.0%), PyYAML (100.0%).
schema popularity over time
Gid Score 53: downloads 78, use in agent projects 46, GitHub stars 30, downloads trend 44 (each 0-100). How it is calculated.
Often used with schema
| aiohttp | 100.0% of schema projects · 48.5× more than average |
|---|---|
| NumPy | 100.0% of schema projects · 17.1× more than average |
| PyYAML | 100.0% of schema projects · 16.8× more than average |
| Requests | 100.0% of schema projects · 14.7× more than average |
| attrs | 98.6% of schema projects · 142.4× more than average |
| Beautiful Soup | 98.6% of schema projects · 45.7× more than average |
| cachetools | 98.6% of schema projects · 174.9× more than average |
| charset-normalizer | 98.6% of schema projects · 91.4× more than average |
From all 72 projects in our scan that use schema, including the dependency samples.
Agent Skills for schema
| schema from coreyhaines31/marketingskills | When the user wants to add, fix, or optimize schema markup and structured data on their site. Also use when the user mentions "schema markup," "structured data…npx skills add coreyhaines31/marketingskills --skill schema |
|---|---|
| schema-markup-generator from nowork-studio/notfair-plugin | Generate JSON-LD structured data markup for rich results in Google Search. Supports FAQ, HowTo, Article, Product, LocalBusiness, and multi-type schemas. Valida…npx skills add nowork-studio/notfair-plugin --skill schema-markup-generator |
| schema-exploration from timescale/pg-aiguide | Explore an existing PostgreSQL database before answering questions about its data or writing SQL. Use this skill whenever a user asks for a query or a data-bac…npx skills add timescale/pg-aiguide --skill schema-exploration |
| schema from fcakyon/claude-codex-settings | Use when adding, fixing, or reviewing structured data: JSON-LD for articles, products, FAQs, breadcrumbs, organizations, and local businesses, and what to do w… has scriptsnpx skills add fcakyon/claude-codex-settings --skill schema |
Skills teach your coding agent how to use schema well. Official means the pack comes from the same GitHub account as schema. Read a skill before installing it: it can include scripts. All Agent Skills
Install
| Package | pip install schema |
|---|---|
| Main stacks | Python (71), React Native / Expo (1) |
| Example projects | kspviswa/local-packet-whisperer, microsoft/edge-ai, whyashthakker/ai-agents, opahopa/crewai-factory-crew, tylerprogramming/master-crewai-course |
Alternatives to schema
Tools that do the same job, so a project picks one or the other. Add-ons and libraries used alongside schema are not listed here; they are in "Often used with".
| Tool | Gid Score | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|---|
| Pydantic pypi Data validation and parsing library using Python type hints. |
86 | 536 (33.0%) | 243M | 29.1K | MIT |
| jsonschema pypi Python implementation of JSON Schema validation for structured data. |
75 | 101 (6.2%) | 135M | 4,990 | MIT |
| marshmallow pypi Lightweight library for converting complex datatypes to and from native Python datatypes. |
69 | 10 (0.6%) | 20.5M | 7,246 | MIT |
More in Forms, validation and schemas: Zod React Hook Form React Hook Form Resolvers Ajv ajv-formats Protocol Buffers zod-to-json-schema email-validator