Skip to main content

A lightweight FastAPI visualization tool

Project description

FastView ⚡ (Ocean Depths Edition)

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

License Python

🌊 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):

    pip install fastview
    
  2. Integrate:

    from fastapi import FastAPI
    from fastview import FastView
    
    app = FastAPI()
    FastView(app) # Auto-mounts at /fastview
    
  3. Run:

    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.):

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

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

fastview-0.1.2.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

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

fastview-0.1.2-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

Details for the file fastview-0.1.2.tar.gz.

File metadata

  • Download URL: fastview-0.1.2.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.8

File hashes

Hashes for fastview-0.1.2.tar.gz
Algorithm Hash digest
SHA256 82c8f8de07c5d2134e91023151bf3a8b2dfca8d64d09ff81f9ff60e2de945d2c
MD5 b8caf06d423821d31d4dd2563915ad3f
BLAKE2b-256 c47643a03b04876e7193b41b82cd14a5e4ee5b1b799c1fa2bdc4b79ed8aeac43

See more details on using hashes here.

File details

Details for the file fastview-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: fastview-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 16.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.8

File hashes

Hashes for fastview-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 da03014a67ecddd3275cdbd7f35ddaf2d9cabe484622853420afd4c73c28cd4f
MD5 207a190b2f5b63742c97bb40f5d92a8c
BLAKE2b-256 19db63cc43134ae8a7fad3282e44d89e5825b33a3849ba6de1e31658ea88913b

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