Skip to content

Commit 03e762e

Browse files
authored
Merge pull request #257 from pathsim/feature/rename-package
Rename pathview_server to pathview and add convert API
2 parents 70fa3a2 + e8c9efe commit 03e762e

17 files changed

Lines changed: 1195 additions & 536 deletions

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ tmpclaude-*
4040
__pycache__/
4141
*.egg-info/
4242
dist/
43-
pathview_server/static/
43+
pathview/static/
4444

4545
# Generated screenshots
4646
static/examples/screenshots/

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,13 @@ src/
9292
├── routes/ # SvelteKit pages
9393
└── app.css # Global styles with CSS variables
9494
95-
pathview_server/ # Python package (pip install pathview)
95+
pathview/ # Python package (pip install pathview)
9696
├── app.py # Flask server (subprocess management, HTTP routes)
9797
├── worker.py # REPL worker subprocess (Python execution)
9898
├── cli.py # CLI entry point (pathview serve)
99+
├── converter.py # PVM to Python converter (public API)
100+
├── data/ # Bundled data files
101+
│ └── registry.json # Block/event registry for converter
99102
└── static/ # Bundled frontend (generated at build time)
100103
101104

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
2020
"lint": "eslint .",
2121
"format": "prettier --write .",
22-
"server": "python -m pathview_server.app",
22+
"server": "python -m pathview.app",
2323
"build:package": "python scripts/build_package.py"
2424
},
2525
"devDependencies": {
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
"""PathView Server — local Flask backend for PathView."""
1+
"""PathView — local Flask backend and PVM converter for PathView."""
22

33
try:
44
from importlib.metadata import version
55
__version__ = version("pathview")
66
except Exception:
77
__version__ = "0.5.0" # fallback for editable installs / dev
8+
9+
from pathview.converter import convert

pathview/__main__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
"""Entry point for: python -m pathview"""
2+
3+
from pathview.cli import main
4+
5+
if __name__ == "__main__":
6+
main()
File renamed without changes.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import time
77
import webbrowser
88

9-
from pathview_server import __version__
9+
from pathview import __version__
1010

1111

1212
def main():
@@ -29,7 +29,7 @@ def main():
2929

3030
args = parser.parse_args()
3131

32-
from pathview_server.app import create_app
32+
from pathview.app import create_app
3333

3434
app = create_app(serve_static=not args.debug)
3535

0 commit comments

Comments
 (0)