Skip to main content

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

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trame_simput-2.6.4.tar.gz (505.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

trame_simput-2.6.4-py3-none-any.whl (520.5 kB view details)

Uploaded Python 3

File details

Details for the file trame_simput-2.6.4.tar.gz.

File metadata

  • Download URL: trame_simput-2.6.4.tar.gz
  • Upload date:
  • Size: 505.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for trame_simput-2.6.4.tar.gz
Algorithm Hash digest
SHA256 b3a43eeddcf3d2eb2874b2a953c42e5cb7dc6e80464b9538cb600a4912de847d
MD5 d472edbb9ce1696d42b6babfd4076f13
BLAKE2b-256 3974928abb03d9820fb0fbf22d5309f8bdb2c0df1473dbea98b23e4ed6bacc88

See more details on using hashes here.

Provenance

The following attestation bundles were made for trame_simput-2.6.4.tar.gz:

Publisher: test_and_release.yml on Kitware/trame-simput

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file trame_simput-2.6.4-py3-none-any.whl.

File metadata

  • Download URL: trame_simput-2.6.4-py3-none-any.whl
  • Upload date:
  • Size: 520.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for trame_simput-2.6.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b0f50ed13ba0eda3e8bfd73bcabfddd8c2c1e87a8a659aaf46533554d7bb20be
MD5 a72c7e9c1f75e9a4e57ffccc9c131ec6
BLAKE2b-256 edab0aeef1399ef265210203af645b841753f4f7e059c339b8c7f3cc28d1aca9

See more details on using hashes here.

Provenance

The following attestation bundles were made for trame_simput-2.6.4-py3-none-any.whl:

Publisher: test_and_release.yml on Kitware/trame-simput

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page