Schema-driven profiler for OpenSearch / JSON index data — field stats, role inference, null analysis, correlation detection and LLM-ready YAML export.
Project description
summarystatvjson
A schema-driven profiler for OpenSearch index data. Generates rich field-level statistics, infers semantic roles, detects null patterns and categorical correlations, and exports a compact YAML summary ready to be passed as context to an LLM or agent.
Installation
pip install summarystatvjson
Quick Start
import json
from summarystatvjson import json_metadata, to_yaml
with open("my_schema.json") as f:
schema = json.load(f)
with open("my_data.json") as f:
raw_data = json.load(f)
result = json_metadata(raw_data, schema)
print(to_yaml(result))
Or use the built-in file handler:
from summarystatvjson import lambda_handler
event = {
"rawDataPath": "my_data.json",
"schemapath": "my_schema.json",
}
json_res, yaml_res = lambda_handler(event, None)
Inferred Roles
| Role | Meaning |
|---|---|
id_field |
High cardinality identifier |
constant |
Single value across all records |
timestamp |
Date or datetime field |
metric |
Numeric measurement (duration, code, count etc.) |
categorical |
Low cardinality text |
free_text |
Variable text with no clear pattern |
opaque |
Flattened or geo object — profiling skipped |
Requirements
- Python >= 3.9
- pandas >= 1.5
- numpy >= 1.23
- pyyaml >= 6.0
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file summarystatvjsonopensearch-0.1.0.tar.gz.
File metadata
- Download URL: summarystatvjsonopensearch-0.1.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0a54c32443ad05434646430a7b77bc54ce3fa39a019686edd8ca33188821abf
|
|
| MD5 |
550bb3c61fa47e86cc097323d2d404c7
|
|
| BLAKE2b-256 |
80e8a25023bd496ac061ceb9e6c00fd297254fa75bf53ce4f191f0e58d2e94e7
|
File details
Details for the file summarystatvjsonopensearch-0.1.0-py3-none-any.whl.
File metadata
- Download URL: summarystatvjsonopensearch-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
519aadce32b6fdf51bb1302d3ba7ad5735f27bc0462c48a75f972c60f61c908b
|
|
| MD5 |
33ae0b5b4d38d8feabc235b08398f502
|
|
| BLAKE2b-256 |
283529af2322d1ea710e4069f646d9e1ec8146d8743965557c3d2df8a71fb7d1
|