Simput implementation for trame
Project description
Python package that let you create web forms/ui using Trame. The project include both a Python module along with a generated Vue based plugin for proxy editing using a set of widgets which can be extended by the user.
Introduction
Simput rely on definitions to describe the set of proxies that it can control. A proxy is a virtual object that gather a set of properties which as a whole represent its state. Proxies are meant to streamline state update and exchange.
A proxy can also be used to control a concrete object by mapping its state to it. This is particularly important when a concreate object needs to live on a remote location or inside another thread or service. Having a proxy allow us to present and edit its properties in a way that we can easily reconciliate its state with its concrete object counter part.
When initializing or editing a property, we may want to bounds the values to a limited set. To apply constraints to a property, you can define a domains section. A domain can be used to compute a reasonable initial value once all its dependency have been resolved or limit a value to be within a set of available ones (list, range).
On top of the data model, Simput aims to provide UI/forms to help user input and update any user data. And for that we have some UI needs that could be defined to refine how the information should be display to the user. By default the data model definition is all we need, but if you want to add internationalization, you can provide a language definition to describe label and help of any property. Then if the automatic property layout is not to your liking, you can create a layout definition to manually place into a grid where each property of a given proxy should go. Also, you can use that layout to optionally show/hide a subset of properties based on a domain.
With definitions for the data models with domains, languages and ui layouts, we think we are empowering developers to create applications with complex user input in no time. High level definitions files allow developers to describe in a concise manner what they want rather than how to make their data editing possible within their application.
Detailed documents
Examples: Address book, Widgets, Hints, VTK, Dynamic domain
License: Apache Software License
Apache Software License 2.0
Copyright (c) 2022, Kitware Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Development
Build and install the Vue components
cd vue-components
npm i
npm run build
cd -
Install the application for development
pip install -e .
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file trame-simput-2.3.2.tar.gz
.
File metadata
- Download URL: trame-simput-2.3.2.tar.gz
- Upload date:
- Size: 491.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/37.3 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/2.0.2 tqdm/4.65.0 importlib-metadata/6.6.0 keyring/23.13.1 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa5e6f89ba1f69d8b8d69e1bbcba61190378eb21858c41bc2f7f03ea18ea87d0 |
|
MD5 | d099467002624324732f5d0ff978eb9d |
|
BLAKE2b-256 | 9908af8dc51383e23e21e736107b672608df8f770320f861125a411be36cc237 |
File details
Details for the file trame_simput-2.3.2-py3-none-any.whl
.
File metadata
- Download URL: trame_simput-2.3.2-py3-none-any.whl
- Upload date:
- Size: 502.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/37.3 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/2.0.2 tqdm/4.65.0 importlib-metadata/6.6.0 keyring/23.13.1 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ecf0f4f44a0cb29ce75d95f7bf271c9d09d3a1a8118c1317c1ee2f4b34df184 |
|
MD5 | 83b0bdb084320d0445a54e64e24b650c |
|
BLAKE2b-256 | d540232715660ebf1f11f5054ef06284708982e963071a7d352de3029b08e5d4 |