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
- Instructions on running: hubview
- 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
- pip install hubview
- hubview --root 'your directory'
- 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(orindex.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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55753d85ea10f2334bf2facfd89c3bc8bf266fb674d8d1a2ae4a98b71a966d97
|
|
| MD5 |
92119fff83207a4bdf4cfa7085e3cd90
|
|
| BLAKE2b-256 |
9fb2bc6935a6b8b699e414da01fb014c15a8d8ca7d2b59c6e7ad647df6469f96
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f25d38f7e7cbdaa54ddc1e1f0a959355741833266e0ab7d7a0e78cbf594dc3e
|
|
| MD5 |
00fbf5d3a8cebddc090b0dc49eeee7dc
|
|
| BLAKE2b-256 |
ea9178ac512252e8112c7fd7485477e14f629ab5d7a3b554dd4eef37e9d7390f
|