# kragniz/json-sempai

Use JSON files as if they are python modules

Repository: https://github.com/kragniz/json-sempai
Canonical: https://ross.abutalabs.com/products/json-sempai
Language: Python
License: MIT
License Family: permissive
Topics: python, stupid, don-t, use, this
Last push: 2021-09-26T12:14:02+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4264, "days_push": 1802, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1243, forks 51 (observed 2026-08-28T04:04:06.670758+00:00)

## What it is
A Python library that lets you import JSON files directly as if they were Python modules via an import hook. It is explicitly a joke/abomination, with the author warning against using it.

## Use cases
- import json files as python modules
- load json config with import statement
- access json data as module attributes
- treat json file like a python package
- quickly read json without json.load

## When to choose
- you want a quick hack to import JSON config as module attributes in a throwaway script
- you're experimenting with Python import hooks

## When to avoid
- any production code
- you just need to parse JSON - use the standard json module
- you need error handling or schema validation for config files

## Facets
- artifact type: library
- maturity: maintenance
- function: serialization, json, parser, developer-tools
- domain: developer-tools, files
- platform: python, cross-platform
- tags: json-import, import-hook, novelty, hack, python

## Member repositories
- kragniz/json-sempai (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:06.670758+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T05:08:19.903929+00:00, confidence not recorded.
  - readme: https://github.com/kragniz/json-sempai (fetched 2026-08-28T04:04:06.670758+00:00, sha 055a1f7caf86)
  - registry_pypi: https://pypi.org/pypi/json-sempai/json (fetched 2026-08-29T12:20:10.992391+00:00, sha 4949d2d5baff)
- Data as of 2026-08-30T08:39:29.467469+00:00.
