A CLI tool to generates human friendly visualizations for files.
Project description
vcat
Overview
vcat is a command-line (CLI) tool that generates human-friendly visualizations from any file’s contents.
https://github.com/user-attachments/assets/f1836b5b-3664-4ef5-9d90-3d0e138e234b
Key Features
- Automatic Visualization: Provide a file, and vcat writes a custom Python script on the fly to produce an HTML-based visualization.
- Supports Any File Size:
vcatworks for visualziing files of any size. - Large File Handling: For files exceeding a configurable threshold, vcat can break down the content into chunks so the final visualization is still efficient and doesn't kill your browser.
- Simple CLI: An intuitive command-line interface (
vcat path/to/file.txt) that does all the heavy lifting for you. - Custom Styling: Cool custom styles 😎 (maybe).
Installation
- Prerequisites:
- Python 3.7+
- An OpenAI API key (
OPENAI_API_KEYmust be set as an environment variable)
- Install with pip:
pip install vcat
Usage
# Create the environment variable
export OPENAI_API_KEY=sk-****************
# Basic usage
vcat path/to/data.csv
# Reading only 100 lines
vcat path/to/data.csv --lines 100
# Reading only 5000 characters
vcat path/to/data.csv --chars 5000
- After running, vcat will create and open an HTML file that visualizes your data.
Environment Variables
- OPENAI_API_KEY: Must be set to a valid OpenAI API key.
- VERBOSE (optional): Set to any value to see more detailed logs.
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
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
vcat-0.1.4-py3-none-any.whl
(5.9 kB
view details)
File details
Details for the file vcat-0.1.4-py3-none-any.whl.
File metadata
- Download URL: vcat-0.1.4-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8637b00e333d5e4c903cec4ce8055ebcba318ead522d96f76b89908239f3c52
|
|
| MD5 |
0cd7c3b9e69a9cafe0ccb58e288a5667
|
|
| BLAKE2b-256 |
c0a1becc1876b7acbe38ebc565e0726a583a098bcdd31a577de6615f48ec4d0c
|