Skip to main content

A stunning terminal inspector for JSON, CSV, and environment files.

Project description

config-lens

PyPI version Python Versions License: MIT Downloads

config-lens (clens) is a lightweight, high-performance command-line utility designed to inspect JSON, CSV, and environment (.env) files instantly inside your terminal with gorgeous, color-coded tables.


Features

  • Instant Visual Previews: Automatically detects file types and renders them into clean, structured tables.
  • Rich Styling: Built with rich for vibrant, readable terminal formatting.
  • Smart Truncation: Gracefully previews large CSV datasets (showing the first 25 rows by default) to prevent terminal flooding.
  • Zero Bloat: Minimal dependencies focused purely on fast, friction-free configuration and data inspection.

Installation

Install the package directly from PyPI:

pip install config-lens

Or install it locally in editable mode for development:

git clone https://github.com/yourusername/config-lens.git
cd config-lens
pip install -e .

Usage

Run the clens command followed by the path to the configuration or data file you want to inspect:

# Inspect an environment configuration file
clens .env

# Inspect a structured JSON configuration
clens config.json

# Preview a tabular CSV dataset
clens data.csv

Project Structure

config-lens/
├── pyproject.toml
├── README.md
└── src/
    └── config_lens/
        ├── __init__.py
        ├── cli.py
        └── parser.py

License

Distributed under the MIT License. See LICENSE for more information.

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

config_lens-0.1.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

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

config_lens-0.1.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file config_lens-0.1.1.tar.gz.

File metadata

  • Download URL: config_lens-0.1.1.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for config_lens-0.1.1.tar.gz
Algorithm Hash digest
SHA256 992f3b28e3aa7b16f345ef8f0fa0113f20f291f2e07ec9a566e7131a628412c4
MD5 48b8b03f10b1445c30cca67923571d7f
BLAKE2b-256 802d9f89efcaf541be1daa4a55738a94110ecd6c297627ace91ab1f87e4bed8d

See more details on using hashes here.

File details

Details for the file config_lens-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: config_lens-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for config_lens-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 af138dafce8828de4c56d7880e584be4762271e99779c89b79523fd137eac73d
MD5 3da5456461667c047b5aadc6d4961602
BLAKE2b-256 7fa9bf592d82a4f6876fd3a07ebea929dac2db094e76ccd52143d96d514c3bf0

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