hologram
JSON schema generation from dataclasses
Decision gist · record as of 2026-08-14
Yes, if you are working with Python 3.6–3.9 and need automatic JSON Schema generation from dataclasses. The low install friction, permissive license, and zero known vulnerabilities make it safe to use. However, be cautious if you require support for Python 3.10+ or expect ongoing maintenance—the project has not been updated since March 2023 and is no longer actively developed.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with three common dependencies.
- Last release was in March 2023 with no commits since November 2025, indicating the project is aging but stable and not actively maintained.
License · maintenance · safety
MIT (permissive) — MIT license is permissive and imposes no restrictions on use, modification, or distribution in proprietary or open-source projects.
last release 2023-03-24 (1239 days) · last repo commit 2025-11-03 · 10 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,709,146 downloads/mo, #3,628 on PyPI
Alternatives
Verify before relying
pip install hologram
from dataclasses import dataclass
from hologram import JsonSchemaMixin
@dataclass
class Example(JsonSchemaMixin):
name: str
age: int
schema = Example.json_schema()- Whether the package still works reliably with Python 3.10+ given the last release predates those versions
- Whether Draft 7 schema output remains compatible with current JSON Schema validators and tooling
What it is and what it does
Hologram is a lightweight library that automatically generates JSON Schemas (Draft 7 compatible) from Python dataclasses. It eliminates the need to write schemas by hand by inspecting your dataclass definitions and producing valid JSON Schema output. The library depends on python-dateutil, jsonschema, and dataclasses (the latter being built-in for Python 3.7+).
The package is designed for developers who want to keep their data models and their schemas in sync without duplication. It's a fork of dataclasses-jsonschema and targets Python 3.6 through 3.9 according to its classifiers. With no known security vulnerabilities and a permissive MIT license, it's straightforward to integrate into existing projects, though the aging maintenance status means it may not receive updates for newer Python versions or JSON Schema specifications.
Use it for
- Generate API request/response schemas automatically from dataclass definitions for FastAPI or Flask endpoints
- Create JSON Schema validation rules from dataclasses to validate incoming data without writing schemas separately
- Document data structures by exporting dataclass-derived schemas for API documentation or OpenAPI specs
- Ensure consistency between Python type definitions and their JSON representations in microservices
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are working with Python 3.6–3.9 and need automatic JSON Schema generation from dataclasses.
The low install friction, permissive license, and zero known vulnerabilities make it safe to use. However, be cautious if you require support for Python 3.10+ or expect ongoing maintenance—the project has not been updated since March 2023 and is no longer actively developed.
Install
hologram on PyPI
Before you install
Low install friction with three common dependencies. Last release was in March 2023 with no commits since November 2025, indicating the project is aging but stable and not actively maintained.
License in practice
MIT license is permissive and imposes no restrictions on use, modification, or distribution in proprietary or open-source projects.
Quickstart
pip install hologram
from dataclasses import dataclass
from hologram import JsonSchemaMixin
@dataclass
class Example(JsonSchemaMixin):
name: str
age: int
schema = Example.json_schema()
Verify before relying
- Whether the package still works reliably with Python 3.10+ given the last release predates those versions
- Whether Draft 7 schema output remains compatible with current JSON Schema validators and tooling
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagespython-dateutiljsonschemadataclasses |
| Maintenance | Aging 1,239 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,709,146 / month, #3,628 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: PythonProgramming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries |
Evidence: hologram-0.0.16-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 › “draft 7 schema generator”
- hologramGenerates Draft 7 compatible JSON Schemas directly from Python 3.6+…
- warchant_dc_schemaGenerates JSON Schema (2020-12 draft) from Python dataclasses with no…
- gensonGenSON generates JSON Schema documents from JSON objects and can…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also dataclasses-jsonschema · warchant_dc_schema · dataclasses-avroschema · dataclasses-json · desert · py-avro-schema · dataclass-wizard · dataclass-factory · djangorestframework-dataclasses · apischema