Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ tmpclaude-*
__pycache__/
*.egg-info/
dist/
pathview_server/static/
pathview/static/

# Generated screenshots
static/examples/screenshots/
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,13 @@ src/
├── routes/ # SvelteKit pages
└── app.css # Global styles with CSS variables

pathview_server/ # Python package (pip install pathview)
pathview/ # Python package (pip install pathview)
├── app.py # Flask server (subprocess management, HTTP routes)
├── worker.py # REPL worker subprocess (Python execution)
├── cli.py # CLI entry point (pathview serve)
├── converter.py # PVM to Python converter (public API)
├── data/ # Bundled data files
│ └── registry.json # Block/event registry for converter
└── static/ # Bundled frontend (generated at build time)


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "eslint .",
"format": "prettier --write .",
"server": "python -m pathview_server.app",
"server": "python -m pathview.app",
"build:package": "python scripts/build_package.py"
},
"devDependencies": {
Expand Down
4 changes: 3 additions & 1 deletion pathview_server/__init__.py → pathview/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
"""PathView Server — local Flask backend for PathView."""
"""PathView — local Flask backend and PVM converter for PathView."""

try:
from importlib.metadata import version
__version__ = version("pathview")
except Exception:
__version__ = "0.5.0" # fallback for editable installs / dev

from pathview.converter import convert
6 changes: 6 additions & 0 deletions pathview/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
"""Entry point for: python -m pathview"""

from pathview.cli import main

if __name__ == "__main__":
main()
File renamed without changes.
4 changes: 2 additions & 2 deletions pathview_server/cli.py → pathview/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import time
import webbrowser

from pathview_server import __version__
from pathview import __version__


def main():
Expand All @@ -29,7 +29,7 @@ def main():

args = parser.parse_args()

from pathview_server.app import create_app
from pathview.app import create_app

app = create_app(serve_static=not args.debug)

Expand Down
Loading