semvec/pypi-packages huggingface dataset:
cacao-json-viewer 0.1.2
A simple JSON/tree viewer desktop app built on Cacao
Requires Python: >=3.8

# 🍫 cacao-json-viewer

A tiny desktop app to view JSON as an interactive tree using Cacao.

## Installation

```bash
pip install cacao-json-viewer
```

## Usage

### Command Line Interface

```bash
# From a file
cacao-json-viewer path/to/data.json

# Or via stdin
cat data.json | cacao-json-viewer
```

### Programmatic Usage 🍫

Now with simplified imports! Use the package directly in your Python code:

#### Basic Example

```python
import json
from cacao_json_viewer import preview_json

# Load your JSON data
with open("data.json", "r") as f:
    data = json.load(f)

# Preview it in a desktop window
preview_json(data, title="My JSON Data")
```

#### Alternative Import Syntax

```python
import json
from cacao_json_viewer import preview  # Even cleaner!

data = {
    "name": "John Doe",
    "age": 30,
    "skills": ["Python", "JavaScript", "SQL"],
    "address": {
        "street": "123 Main St",
        "city": "New York",
        "zipcode": "10001"
    }
}

# Same function, cleaner name
preview(data, title="User Profile", width=900, height=700)
```

#### Working with API Data

```python
import json
import requests
from cacao_json_viewer import preview_json

# Fetch data from an API
response = requests.get("https://api.example.com/data")
data = response.json()

# Preview the API response
preview_json(data, title="API Response")
```

### Function Parameters

```python
preview_json(
    data,                           # Your JSON data (dict, list, or any JSON-serializable object)
    title="Cacao JSON Viewer",     # Window title
    width=800,                      # Window width in pixels
    height=600,                     # Window height in pixels
)
```

## Features

- 🍫 **Simple & Clean**: Minimal setup, maximum functionality
- 🌳 **Interactive Tree View**: Expand/collapse JSON nodes
- 🖥️ **Desktop Application**: Native desktop window using Cacao
- 📦 **Easy Import**: Clean import syntax - `from cacao_json_viewer import preview_json`

## Requirements

- Python 3.8+
- Cacao framework

## License

MIT
ngpasm 0.1.0
Add your description here
Requires Python: >=3.11

# ngpasm
<a id="readme-top"></a>

<div align="center">
  <p align="center">
    Next Generation Python Assembly Metaprogramming Library
    <br />
    <a href="https://alexeev-prog.github.io/ngpasm/"><strong>Explore the docs »</strong></a>
    <br />
    <br />
    <a href="#-getting-started">Getting Started</a>
    ·
    <a href="#-usage-examples">Basic Usage</a>
    ·
    <a href="https://alexeev-prog.github.io/ngpasm/">Documentation</a>
    ·
    <a href="https://github.com/alexeev-prog/ngpasm/blob/main/LICENSE">License</a>
  </p>
</div>
<br>
<p align="center">
    <img src="https://img.shields.io/github/languages/top/alexeev-prog/ngpasm?style=for-the-badge">
    <img src="https://img.shields.io/github/languages/count/alexeev-prog/ngpasm?style=for-the-badge">
    <img src="https://img.shields.io/github/license/alexeev-prog/ngpasm?style=for-the-badge">
    <img src="https://img.shields.io/github/stars/alexeev-prog/ngpasm?style=for-the-badge">
    <img src="https://img.shields.io/github/issues/alexeev-prog/ngpasm?style=for-the-badge">
    <img src="https://img.shields.io/github/last-commit/alexeev-prog/ngpasm?style=for-the-badge">
    <img src="https://img.shields.io/pypi/wheel/ngpasm?style=for-the-badge">
    <img src="https://img.shields.io/badge/coverage-100%25-100%25?style=for-the-badge" alt="Coverage">
    <img alt="PyPI - Downloads" src="https://img.shields.io/pypi/dm/ngpasm?style=for-the-badge">
    <img alt="PyPI - Version" src="https://img.shields.io/pypi/v/ngpasm?style=for-the-badge">
    <img alt="PyPI - Python Version" src="https://img.shields.io/pypi/pyversions/ngpasm?style=for-the-badge">
    <img alt="GitHub contributors" src="https://img.shields.io/github/contributors/alexeev-prog/ngpasm?style=for-the-badge">
</p>
<p align="center">
    <img src="https://raw.githubusercontent.com/alexeev-prog/ngpasm/refs/heads/main/docs/pallet-0.png">
</p>

 > Next Generation Python Assembly Metaprogramming Library with 100% tests coverage and fully documentated.
 
## Contributing

We welcome contributions! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines. Key areas for contribution include:
- Additional test cases for thread-local scenarios
- Performance optimization proposals
- Extended version format support
- IDE integration plugins

## License & Support

This project is licensed under **GNU LGPL 2.1 License** - see [LICENSE](https://github.com/alexeev-prog/ngpasm/blob/main/LICENSE). For commercial support and enterprise features, contact [alexeev.dev@mail.ru](mailto:alexeev.dev@mail.ru).

[Explore Documentation](https://alexeev-prog.github.io/ngpasm) |
[Report Issue](https://github.com/alexeev-prog/ngpasm/issues) |
[View Examples](./examples)

<p align="right">(<a href="#readme-top">back to top</a>)</p>

---
Next Generation Python Assembly Metaprogramming Library with 100% tests coverage and fully documentated.

Copyright © 2025 Alexeev Bronislav. Distributed under GNU LGPL 2.1 license.