Skip to main content

HubView — Scripting file viewer

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.

Example Run Code

  1. Create python Script to run hubview
# Example Hubview Run

from hubview import app


scripts = {
    "Python": {
        "python": ".venv/bin/python3",
        "path": "library/pylibs/hubview/example_script.py",
        "args": ["--foo", "bar"],
        "log": "hubview_demo.log",
    },
    "Shell": {

    }
    "Streamlit": {
        "cmd": ["bash", "run_gpc.sh", "--dry-run"],
        "path": "run_gpc.sh",
        "log": "cleanup.log",
    },
}

app.create_hub(root="./", host="0.0.0.0", port=3000, scripts=scripts)
  1. Create shell script to run python
# navigate to control directory
cd '/home/pi/Desktop/Code'
py_exec="venv/bin/python3"
py_script="can_hub.py"
echo "============= RUNNING CAN Hub =================="
$py_exec $py_script
/bin/bash
$SHELL

Or

  1. Run hubview from shell script
#!/bin/sh
# ------------------------------------
cd '/home/pi/Desktop/Code'
py_exec=".venv/bin/activate"
. $py_exec
echo "============= RUNNING Hubview =================="
hubview --host=0.0.0.0
/bin/bash
$SHELL

Quick start

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

Release files for hubview 0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hubview 0.8
File Size Uploaded
hubview-0.8.tar.gz 21.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hubview 0.8
File Interpreter ABI Platform
hubview-0.8-py3-none-any.whl Python 3 none any Details

Total release size: 46.8 kB

Release files / hubview-0.8.tar.gz

Download URL hubview-0.8.tar.gz
Size 21.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2eca8fa44e53a134b237789b4f3f692a6e3e034355c6e7323163ac87d52a4306
BLAKE2b-256 checksum
How to use checksums
bd8448998a9b0dd10bf98fa2316ff212d8e7ebfc406755c7827c5daf60d99a1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / hubview-0.8-py3-none-any.whl

Download URL hubview-0.8-py3-none-any.whl
Size 24.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
777980e8936771a87f440c371c5ce9ed408118a55e52195abd39461f60967a1e
BLAKE2b-256 checksum
How to use checksums
60af73f9e71b32a2cdccd678759794d607051a29be9d1769d38c5c6ec0f0c143
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

0.8 This release

2 release files

0.7

2 release files

0.6

2 release files

0.5

2 release files

0.4

2 release files

0.3

2 release files

0.2

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page