Skip to main content

A tool to convert JSONL to HTML

Project description

JSONL to HTML Converter

A simple command-line tool to convert JSONL (JSON Lines) files into HTML format. This tool is designed to facilitate the visualization of structured data stored in JSONL format.

Usage

Bash

jsonl2html some_file.jsonl Will create some_file.html vizualization

jsonl2html --help Read the documentation

jsonl2html some_file.jsonl --index_column=some_column Will create vizualization indexed by some_column

Python

from jsonl2html import convert_jsonl_to_html
convert_jsonl_to_html(fn_input = "examples/small.jsonl",
index_column = 'auto', 
fn_output = "auto", 
additional_table_content = {"content": "value"}
)

Features

  • Convert JSONL files to HTML format using a customizable template.
  • Optionally add an index based on a specified column in the JSONL file.
  • Easy to use with a command-line interface.

Installation

You can install the package locally using pip. Clone this repository and run:

pip install -e .

Build from sources

python setup.py sdist bdist_wheel
pip install {path_to_package}

Issues

  • add list normal vizualization
  • fix problem with double click at some line
  • add UnicodeParser invert index and aggregated statistic
  • add search

ToDo

  • fix logger redirect to stdout other's logs
  • add .json as input format
  • load to pip registry
  • add normal examples
  • add enable/disable markdown hint for some field

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

jsonl2html-0.2.0.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

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

jsonl2html-0.2.0-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file jsonl2html-0.2.0.tar.gz.

File metadata

  • Download URL: jsonl2html-0.2.0.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for jsonl2html-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d18f43a43470da0346fcb28a4a912d91d9cc820ff98e5fd56e7742c065be6dcf
MD5 d77a702b19bb263760d2efaf3bbf4b4d
BLAKE2b-256 3d832421c19a8f9e41c85af4fc63e1fd48d4054304a9d4f5110b3f8d4bfe58ad

See more details on using hashes here.

File details

Details for the file jsonl2html-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: jsonl2html-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.11

File hashes

Hashes for jsonl2html-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 81f9857b497b037554899baa3a5e1f0631741773e9636db55002366c024ef0ab
MD5 ee0fac5c4cd1c1ddcd52407c5086f769
BLAKE2b-256 363df844e9e54510206aab28308c73973977a7f4b1f9097312550adae467e1f5

See more details on using hashes here.

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