Metadata-Version: 2.4
Name: fastview
Version: 0.1.2
Summary: A lightweight FastAPI visualization tool
License: MIT
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: fastapi
Requires-Dist: uvicorn
Requires-Dist: pydantic
Dynamic: description
Dynamic: description-content-type
Dynamic: license
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# FastView ⚡ (Ocean Depths Edition)

**FastView** provides an instant, auto-generated web UI for FastAPI applications. Now featuring the stunning **"Ocean Depths"** aesthetic.

![License](https://img.shields.io/badge/license-MIT-blue.svg)
![Python](https://img.shields.io/badge/python-3.8%2B-blue)

## 🌊 Ocean Depths Theme

The UI has been completely redesigned with a deep maritime palette:
- **Deep Navy Background** (`#1a2332`)
- **Teal & Seafoam Accents** (`#2d8b8b`, `#a8dadc`)
- **Glassmorphism Effects** for cards and panels.
- **Ambient Status Feedback**: background flashes **Green** (Success) or **Red** (Error).

## ✨ Key Features

- **🎠 Horizontal Carousel Navigation**: Smoothly scroll through API methods with snap-to-grid effects and square navigation buttons.
- **🛠️ Smart Inputs**:
    - **Boolean**: Intuitively switch between `TRUE` and `FALSE` with custom toggle buttons.
    - **Files**: Stylish file selectors with support for **Multiple File Uploads**.
    - **JSON**: Auto-formatted JSON editors for complex bodies.
- **📸 Rich Response Rendering**:
    - Auto-detects and displays **Images**, **Audio**, and **Video**.
    - Renders embedded **Base64 images** within JSON responses.
    - Syntax highlighting for JSON output.

## 🚀 Quick Start

1. **Install** (or clone):
   ```bash
   pip install fastview
   ```

2. **Integrate**:
   ```python
   from fastapi import FastAPI
   from fastview import FastView

   app = FastAPI()
   FastView(app) # Auto-mounts at /fastview
   ```

3. **Run**:
   ```bash
   uvicorn main:app --reload
   ```

4. **Explore**:
   Open `http://127.0.0.1:8000/fastview` to see the Ocean Depths UI.

## 🧪 Testing with Mock API

We include a robust `mock_api.py` to test all input types (Files, Forms, JSON, etc.):

```bash
python mock_api.py
```
*Runs on port 8001 by default.*

## Architecture

- **Backend**: Python (FastAPI integration)
- **Frontend**: Vanilla JS, HTML5, CSS3. **No build steps**. All assets are served statically by FastView.

---
### Built by Mehtab Singh
