schematics
Python Data Structures for Humans
Decision gist · record as of 2026-08-14
No—the project is abandoned (last release 2021-08-17, no commits since 2023-07-12). While it has low install friction and a permissive license, the lack of maintenance means no bug fixes, security patches, or compatibility updates for modern Python versions. For new projects, use actively maintained alternatives.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with no runtime dependencies.
- However, the project is abandoned—last release was 2021-08-17, with the last commit on 2023-07-12.
- Maintenance has stopped.
License · maintenance · safety
BSD (permissive) — BSD license (permissive) means you can use, modify, and distribute the package freely with minimal restrictions, provided you include the license notice.
last release 2021-08-17 (1823 days) · last repo commit 2023-07-12 · 2,589 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 638,422 downloads/mo, #5,619 on PyPI
Alternatives
Verify before relying
from schematics.models import Model
from schematics.types import StringType, URLType
class Person(Model):
name = StringType(required=True)
website = URLType()
person = Person({'name': 'Joe', 'website': 'http://example.com'})
person.validate() # raises DataError if invalid
print(person.to_primitive())- Whether the package works reliably with Python versions beyond 3.9, given the last release predates newer Python versions
- Whether there are known compatibility issues with modern dependency ecosystems or serialization libraries
What it is and what it does
Schematics is a Python library for building and validating structured data using type definitions. It lets you declare data models with typed fields (like StringType, URLType, etc.), then validate incoming data against those schemas and convert between formats like JSON. The library is modeled after ORM type systems but has no database layer—it stops at data validation and transformation, leaving persistence to you.
Common uses include documenting API input schemas, validating request payloads, serializing objects to JSON or other formats, and filtering fields based on access control. You define a Model class with typed fields, instantiate it with data, call validate() to check constraints, and use to_primitive() to export as a dictionary or JSON.
Use it for
- Validate API request bodies against a schema before processing them
- Convert between JSON and Python objects with type checking and field filtering
- Define and document message formats for RPC or other communication protocols
- Enforce required fields and data types in configuration or input files
- Serialize domain objects to JSON while hiding fields based on user permissions
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
No—the project is abandoned (last release 2021-08-17, no commits since 2023-07-12).
While it has low install friction and a permissive license, the lack of maintenance means no bug fixes, security patches, or compatibility updates for modern Python versions. For new projects, use actively maintained alternatives.
Install
schematics on PyPI
Before you install
Low install friction with no runtime dependencies. However, the project is abandoned—last release was 2021-08-17, with the last commit on 2023-07-12. Maintenance has stopped.
License in practice
BSD license (permissive) means you can use, modify, and distribute the package freely with minimal restrictions, provided you include the license notice.
Quickstart
from schematics.models import Model
from schematics.types import StringType, URLType
class Person(Model):
name = StringType(required=True)
website = URLType()
person = Person({'name': 'Joe', 'website': 'http://example.com'})
person.validate() # raises DataError if invalid
print(person.to_primitive())
Verify before relying
- Whether the package works reliably with Python versions beyond 3.9, given the last release predates newer Python versions
- Whether there are known compatibility issues with modern dependency ecosystems or serialization libraries
Package facts
| License | BSD permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Abandoned 1,823 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 638,422 / month, #5,619 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.2Programming Language :: Python :: 3.3Programming Language :: Python :: 3.4Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9 |
Evidence: schematics-2.1.1-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “type-based data structures”
- schematicsSchematics defines, validates, and transforms Python data structures…
- visitorProvides a base Visitor class to implement the visitor design pattern…
- marshmallow-oneofschemaExtends marshmallow to handle polymorphic serialization and…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also schema · asdf-transform-schemas · trafaret · kubernetes-validate · quinn · fastjsonschema · sentry-kafka-schemas · sparkdantic · yamale · bagit-profile