===========================================================
trame-simput
===========================================================
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
-----------------------------------------------------------
* `Definitions explained <./docs/definitions.md>`_
* `API <./docs/api.md>`_
* Examples: `Address book <./examples/00_AddressBook>`_, `Widgets <./examples/01_Widgets>`_, `Hints <./examples/02_Hints>`_, `VTK <./examples/03_VTK>`_, `Dynamic domain <./examples/04_DynaDomain>`_
License: Apache Software License
-----------------------------------------------------------
.. code-block:: console
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
.. code-block:: console
cd vue-components
npm i
npm run build
cd -
Install the application for development
.. code-block:: console
pip install -e .
Raw data
{
"_id": null,
"home_page": null,
"name": "trame-simput",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "Python, Interactive, Web, Application, Framework",
"author": "Kitware Inc.",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/39/cb/5d048135de0c7f429becf27917ba351685f9c9c86d45ff19dee9c00c7db3/trame-simput-2.4.2.tar.gz",
"platform": null,
"description": "===========================================================\ntrame-simput\n===========================================================\n\nPython package that let you create web forms/ui using Trame.\nThe project include both a Python module along with a generated\nVue based plugin for proxy editing using a set of widgets which\ncan be extended by the user.\n\nIntroduction\n-----------------------------------------------------------\n\nSimput rely on **definitions** to describe the set of **proxies** that it can control.\nA **proxy** is a virtual object that gather a set of **properties** which as a whole\nrepresent its **state**. **Proxies** are meant to streamline **state** update and exchange.\n\nA **proxy** can also be used to control a **concrete object** by mapping its state to it.\nThis is particularly important when a **concreate object** needs to live on a remote location\nor inside another thread or service. Having a **proxy** allow us to present and edit its **properties**\nin a way that we can easily reconciliate its **state** with its **concrete object** counter part.\n\nWhen initializing or editing a **property**, we may want to bounds the values to a limited set.\nTo apply constraints to a **property**, you can define a **domains** section.\nA **domain** can be used to compute a reasonable **initial value** once all its dependency have\nbeen resolved or limit a value to be within a set of available ones (list, range).\n\nOn top of the data model, Simput aims to provide UI/forms to help user input and update\nany user data. And for that we have some UI needs that could be defined to refine how\nthe information should be display to the user. By default the data model **definition**\nis all we need, but if you want to add internationalization, you can provide a **language**\ndefinition to describe **label** and **help** of any **property**. Then if the automatic\nproperty layout is not to your liking, you can create a **layout** definition to manually place\ninto a grid where each **property** of a given **proxy** should go. Also, you can use that\n**layout** to optionally show/hide a subset of properties based on a **domain**.\n\nWith definitions for the **data models** with **domains**, **languages** and **ui layouts**,\nwe think we are empowering developers to create applications with complex user input in no time.\nHigh level definitions files allow developers to describe in a concise manner what they want rather\nthan how to make their data editing possible within their application.\n\nDetailed documents\n-----------------------------------------------------------\n\n* `Definitions explained <./docs/definitions.md>`_\n* `API <./docs/api.md>`_\n* Examples: `Address book <./examples/00_AddressBook>`_, `Widgets <./examples/01_Widgets>`_, `Hints <./examples/02_Hints>`_, `VTK <./examples/03_VTK>`_, `Dynamic domain <./examples/04_DynaDomain>`_\n\nLicense: Apache Software License\n-----------------------------------------------------------\n\n.. code-block:: console\n\n Apache Software License 2.0\n\n Copyright (c) 2022, Kitware Inc.\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n\n\n\nDevelopment\n-----------------------------------------------------------\n\nBuild and install the Vue components\n\n.. code-block:: console\n\n cd vue-components\n npm i\n npm run build\n cd -\n\nInstall the application for development\n\n.. code-block:: console\n\n pip install -e .\n",
"bugtrack_url": null,
"license": "Apache Software License",
"summary": "Simput implementation for trame",
"version": "2.4.2",
"project_urls": null,
"split_keywords": [
"python",
" interactive",
" web",
" application",
" framework"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0e60b7155c68726914d93aeeb2961d1aee6ca889758ee95959e19730ee7dd4e6",
"md5": "25a7c36643ef8326d1f930d0f8235093",
"sha256": "5e5ff27263047be0395213413c6ba7b956eabb20ba607b30d7ff36a5d6bae980"
},
"downloads": -1,
"filename": "trame_simput-2.4.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "25a7c36643ef8326d1f930d0f8235093",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 515925,
"upload_time": "2024-05-06T14:27:00",
"upload_time_iso_8601": "2024-05-06T14:27:00.824808Z",
"url": "https://files.pythonhosted.org/packages/0e/60/b7155c68726914d93aeeb2961d1aee6ca889758ee95959e19730ee7dd4e6/trame_simput-2.4.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "39cb5d048135de0c7f429becf27917ba351685f9c9c86d45ff19dee9c00c7db3",
"md5": "9c318a517f7446872bfe8db4b462bd55",
"sha256": "bb0984501507dfce37eca414b6caddc2bf6c7ab60eae5e5a228e902d6321f239"
},
"downloads": -1,
"filename": "trame-simput-2.4.2.tar.gz",
"has_sig": false,
"md5_digest": "9c318a517f7446872bfe8db4b462bd55",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 504075,
"upload_time": "2024-05-06T14:27:03",
"upload_time_iso_8601": "2024-05-06T14:27:03.173946Z",
"url": "https://files.pythonhosted.org/packages/39/cb/5d048135de0c7f429becf27917ba351685f9c9c86d45ff19dee9c00c7db3/trame-simput-2.4.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-06 14:27:03",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "trame-simput"
}