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
- 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)
- 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
- 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
- pip install hubview
- hubview --root 'your directory'
- open http://127.0.0.1:5000 in your browser.
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hubview-0.8.tar.gz | 21.9 kB | Without provenance | Details for hubview-0.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hubview-0.8-py3-none-any.whl | Python 3 | none | any | Details for hubview-0.8-py3-none-any.whl |
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
|
Security for hubview 0.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.