Skip to main content

GitHub-like local file viewer built with Flask

Project description

HubView — GitHub‑like file viewer (Flask)

A clean, fast, local file viewer with a GitHub‑style UI. Browse folders, preview code with syntax highlighting, render Markdown (tables, task lists, admonitions), show images/video/audio/PDF, and even draw Mermaid diagrams via fenced blocks.

https://github.com/ (UI inspiration only)

Example Run Code

from hubview import app
app.create_hub(
    root='./',
    host='0.0.0.0',
    port=3000,
    script_ex='.venv/bin/python',
    script_path='./',
    script_log='log.log'
)

Or:

in terminal, type: hubview

Quick start

  1. pip install hubview
  2. hubview --root 'your directory'
  3. open http://127.0.0.1:5000 in your browser.

Features

  • 🗂️ Directory browsing with breadcrumbs
  • 📝 Markdown rendering with pymdown-extensions (tables, details, tasklists, emoji, etc.)
  • 🧠 Mermaid diagrams via fenced blocks:
    mermaid</code> … <code>
  • 🎨 Client-side syntax highlighting using highlight.js
  • 🖼️ Photo/image preview, plus audio/video and PDF embeds
  • 📖 Auto-render README.md (or index.md) at the bottom of each directory
  • 🛡️ Path safety (jailed to a root folder)
  • 🌗 Looks good in light and dark

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

hubview-0.4.tar.gz (20.2 kB view details)

Uploaded Source

Built Distribution

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

hubview-0.4-py3-none-any.whl (23.1 kB view details)

Uploaded Python 3

File details

Details for the file hubview-0.4.tar.gz.

File metadata

  • Download URL: hubview-0.4.tar.gz
  • Upload date:
  • Size: 20.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for hubview-0.4.tar.gz
Algorithm Hash digest
SHA256 22f896eaf6d772f1d2a653630b49b0b95120f40a7167b4a7348623999567cf9a
MD5 bb6e2f1b6a27c98225be23edb73b4ee6
BLAKE2b-256 eb2efe02e8aaa3a28486cc8a373eef390f8329dcf87940bbac5097bb5bf2a4b4

See more details on using hashes here.

File details

Details for the file hubview-0.4-py3-none-any.whl.

File metadata

  • Download URL: hubview-0.4-py3-none-any.whl
  • Upload date:
  • Size: 23.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for hubview-0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0efa32db72c7a767bbf421fe842b30db94d70a6127fe3bc73d4822ebef3d59b7
MD5 781c96b6a9f232104b314e0abf85d5b5
BLAKE2b-256 f35d719043112740105c5d70a707f285c4b419df0df9146826ca15563d29d834

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