No project description provided
Project description
Short Overview.
ipyvuetify_app is a python package (py>=3.7) with a simple template for writing ipyvuetify application
Examples how your app can look like
Application from the box supports theme switcher and navigation over different content by menus on top
Installation via pip:
pip install ipyvuetify_app
How to use it
To create an application by the given template you need to create a routing class
That will be in charge of what to show in the main application section
For every selected menu item -> subitem
Then you just give the router to ipyvuetify_app.VueApp(…) and it does all the magic for you
from ipyvuetify_app import VueApp
from ipyvuetify_app import VueAppRouter
vue_app_router_example = VueAppRouter()
VueApp(vue_app_router_example)
How to write a Router
Every router should satisfy 2 conditions:
1) It has method get_main_content(self, item, subitem) which should return page’s main content
2) It has attribute self.dict_list_subitems_by_item with all subitems for every menu item
Simple Router example
class VueAppRouter():
def __init__(self):
self.dict_list_subitems_by_item = {}
for item in range(5):
list_subitems = [str(subitem) for subitem in range(item, 5 + item)]
self.dict_list_subitems_by_item[str(item)] = list_subitems
def get_main_content(self, item, subitem):
return f"{item} -> {subitem}"
Full VuaApp signature
VueApp(
vue_app_router,
list_vw_fab_app_bar_left=None,
list_vw_fab_app_bar_right=None,
list_footer_vw_children=None,
)
Arguments:
- list_vw_fab_app_bar_left:
- List with ipyvuetify fab icon buttons to put on the left side of Application Header Bar
- list_vw_fab_app_bar_right:
- List with ipyvuetify fab icon buttons to put on the right side of Application Header Bar
- list_footer_vw_children:
- List with ipyvuetify widgets to put in the footerIf empty then footer is not shown at all
Links
Project local Links
Contacts
License
This project is licensed under the MIT License.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ipyvuetify_app-0.1.3.tar.gz
(6.5 kB
view hashes)
Built Distribution
Close
Hashes for ipyvuetify_app-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50b19c07322cb93ac58d7c7adf95a013eb07295c6e15efce430140798d0bbcfa |
|
MD5 | b150feb7f3f2f6cb5f1b7f0309a4ba2c |
|
BLAKE2b-256 | 92b48337141c59eaf44b8116a5b71c33112e6fb46ffb1bec34c8d99b068c98cd |