xml/json view support for toga
Project description
Toga-View
xml/json view support for toga
🛠️ Features
- Toga View Format: support .ui.xml/.ui.json format file.
- Parse/Archive
- support parse ui file and archive python to ui file
- support parse ui file into python file
- support transpile ui file between .ui.xml and .ui.json
💿 Installation
- install from git(latest)
pip install git@github.com:somehitDev/toga-view.git
- pypi
pip install toga-view
📑 Usage
- cli
# parse
toga_view_cli parse {ui_file} -o {py_file}
# transpile
toga_view_cli transpile {ui_file} -o {ui_file of different ext}
- python
# parse(into toga.Widget)
XmlParser.parse_file("{ui_file}")
JsonParser.parse_file("{ui_file}")
# parse(into python script)
XmlParser.parse_file_to_script("{ui_file}", "{widget_class_name}")
JsonParser.parse_file_to_script("{ui_file}", "{widget_class_name}")
# archive(into element)
XmlArchiver.archive({toga.Widget})
JsonArchiver.archive({toga.Widget})
# archive(into ui file)
XmlArchiver.archive_to_file({toga.Widget}, "{ui_file}")
JsonArchiver.archive_to_file({toga.Widget}, "{ui_file}")
Project Structure
toga_view/
: toga-view source.tests/
: examples.
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
toga_view-0.0.1.tar.gz
(10.0 kB
view details)
Built Distribution
toga_view-0.0.1-py3-none-any.whl
(11.6 kB
view details)
File details
Details for the file toga_view-0.0.1.tar.gz
.
File metadata
- Download URL: toga_view-0.0.1.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ef146fe7ce9a4b29e828ef24d36ef15d79805c55e228a4536371a625b5c7cb5 |
|
MD5 | e96722d9ac3b85a319679eec147773bf |
|
BLAKE2b-256 | d729b6aafdc2f623039d97579fd4feff299b36e1bcd92021e4b459852c336b0f |
File details
Details for the file toga_view-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: toga_view-0.0.1-py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.32.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50b09aa29f2afc6b6f2cab2b8d3c0ea926de8a44f1b499944b0d62a93f264d96 |
|
MD5 | 0cb2ceb72104854932a38808d40d112e |
|
BLAKE2b-256 | a31a4954a9604270060a664db77ce97fc5022fa1dcad205dcea8eff3196dced2 |