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)

TODO

  1. Instructions on running: hubview
    1. 251204

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.6.tar.gz (20.3 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.6-py3-none-any.whl (23.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for hubview-0.6.tar.gz
Algorithm Hash digest
SHA256 55753d85ea10f2334bf2facfd89c3bc8bf266fb674d8d1a2ae4a98b71a966d97
MD5 92119fff83207a4bdf4cfa7085e3cd90
BLAKE2b-256 9fb2bc6935a6b8b699e414da01fb014c15a8d8ca7d2b59c6e7ad647df6469f96

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hubview-0.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 2f25d38f7e7cbdaa54ddc1e1f0a959355741833266e0ab7d7a0e78cbf594dc3e
MD5 00fbf5d3a8cebddc090b0dc49eeee7dc
BLAKE2b-256 ea9178ac512252e8112c7fd7485477e14f629ab5d7a3b554dd4eef37e9d7390f

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