Skip to main content

Nested structure renderer plugin for seej

Project description

[插件] seej-plugin-nested

嵌套结构渲染插件 - 为 seej 提供复杂 JSON 数据的优美可视化。

安装

# 暂未发布,pip 不可用
pip install seej-plugin-nested

# 请先 clone 本仓库并手动安装
git clone http://this-repo-name
pip install cloned-folder/

功能渲染器

此插件提供以下渲染器:

  • nested - 自动检测并选择最佳渲染方式(字典用树形,列表用表格)
  • nested_dict / nested_tree - 树形视图展示嵌套字典
  • nested_list / nested_table - 表格视图展示字典列表
  • json - 带语法高亮和行号的 JSON 格式
  • compact - 单行紧凑表示

使用方法

# 自动渲染
seej data.jsonl -r nested=config,metadata

# 强制使用树形视图
seej data.jsonl -r nested_tree=config

# 强制使用表格视图
seej data.jsonl -r nested_table=records

# JSON 格式(带语法高亮)
seej data.jsonl -r json=raw_data

# 紧凑视图
seej data.jsonl -r compact=summary

效果示例

树形视图 (nested_dict)

Nested Dict (3 keys)
├── name: "Example Project"
├── version: 1.2
└── config (dict, 4 keys)
    ├── env: "production"
    ├── debug: false
    ├── timeout: 30
    └── servers (list, 2 items)
        ├── [0] (dict, 2 keys)
        │   ├── host: "server1.example.com"
        │   └── port: 8080
        └── [1] (dict, 2 keys)
            ├── host: "server2.example.com"
            └── port: 8080

表格视图 (nested_list)

┏━━━━┳━━━━━━━━━┳━━━━━━━┳━━━━━━━━┓
┃ #  ┃ name    ┃ age   ┃ city   ┃
┡━━━━╇━━━━━━━━━╇━━━━━━━╇━━━━━━━━┩
│ 0  │ Alice   │ 30    │ NYC    │
│ 1  │ Bob     │ 25    │ LA     │
│ 2  │ Charlie │ 35    │ SF     │
└────┴─────────┴───────┴────────┘

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

seej_plugin_nested-0.1.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

seej_plugin_nested-0.1.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file seej_plugin_nested-0.1.0.tar.gz.

File metadata

  • Download URL: seej_plugin_nested-0.1.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for seej_plugin_nested-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c318dd0abc3189953b55fd0973fb0043a0442ef34179aa83897783625b090771
MD5 2eecd0da72bd23c088ffdd2b1873ce7e
BLAKE2b-256 ebeb1c8488de719a71d02a4c1c28dff2182e1be4227e0b1c6b87955926db74c0

See more details on using hashes here.

Provenance

The following attestation bundles were made for seej_plugin_nested-0.1.0.tar.gz:

Publisher: publish.yml on Speakn0w/seej-plugin-nested

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file seej_plugin_nested-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for seej_plugin_nested-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a40af5f7858ff5752926af0db74c88fa7c210df67489bfd51057ae38dbced0cb
MD5 b68e89018aab51fe9a66d9bcb29e8645
BLAKE2b-256 d3c824dbfffdcc422d2095f7c54e78099824ee2a3c3b86ee701b35a340e62ef4

See more details on using hashes here.

Provenance

The following attestation bundles were made for seej_plugin_nested-0.1.0-py3-none-any.whl:

Publisher: publish.yml on Speakn0w/seej-plugin-nested

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page