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'
)
  • Many to come

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.3.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.3-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hubview-0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 19c33f43eb2956891d580db4f92589647c39d04d94518110880cc6dcb7b31c92
MD5 1c5d8ca7689e1d8451bbdfdeffe10499
BLAKE2b-256 69af7c29d9b14583105aaba25599dacaf06166f1d80787dc57de155c61d98153

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hubview-0.3-py3-none-any.whl
  • Upload date:
  • Size: 23.0 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 42b6c9a0e86fb6ac23992d842352d1d387007af105df5011b87a72f009b0c403
MD5 c0149a13596003a96d1c802e937e4233
BLAKE2b-256 3676972e9d287712e8bcc8547d0643c2f9bafea66d6accf2cf448a33a7db387f

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