{"id":22476,"library":"trame-router","title":"trame-router","description":"Vue Router integration for trame, providing navigation and route management for trame applications. Current version 2.3.0, actively maintained as part of the trame ecosystem.","status":"active","version":"2.3.0","language":"python","source_language":"en","source_url":"https://github.com/Kitware/trame-router","tags":["trame","vue-router","widgets","navigation"],"install":[{"cmd":"pip install trame-router","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Core framework required","package":"trame","optional":false},{"reason":"Common UI components for navigation","package":"trame-vuetify","optional":true}],"imports":[{"wrong":"from trame_router.widgets import RouterView","symbol":"get_version","correct":"from trame_router import get_version"}],"quickstart":{"code":"from trame.app import get_server\nfrom trame_router.widgets import RouterView, RouterLink\nserver = get_server()\nserver.state['routes'] = [\n    {'path': '/', 'component': 'Home'},\n    {'path': '/about', 'component': 'About'}\n]\n@server.expose\ndef navigate():\n    server.state.trame__router = '/about'\nwith server.layout as layout:\n    layout.add_child(RouterLink(to=\"/about\", label=\"About\"))\n    layout.add_child(RouterView())\nserver.start()","lang":"python","description":"Basic setup for a trame app with Vue Router."},"warnings":[{"fix":"Update imports: from trame_router.widgets import RouterView, RouterLink","message":"In version 2.0.0, the import path changed from 'trame_router' to 'trame_router.widgets'. Old imports will break.","severity":"breaking","affected_versions":"<2.0.0"},{"fix":"Create Vue components in separate .js files or use trame's component registration.","message":"Routes must be defined in server.state['routes'] and components must be registered as strings (names of Vue components). Defining components inline in Python does not work.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'2.3.0':19 'activ':20 'applic':16 'current':17 'ecosystem':27 'integr':6 'maintain':21 'manag':13 'navig':10,33 'part':23 'provid':9 'rout':12 'router':3,5,31 'trame':2,8,15,26,28 'trame-rout':1 'version':18 'vue':4,30 'vue-rout':29 'widget':32","created_at":"2026-04-27T17:05:22.372057+00:00","updated_at":"2026-04-27T17:05:22.372057+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"2.3.0","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":"https://pypi.org/project/trame-router/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["web-framework"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}