Skip to main content

A Python library for building declarative web GUIs

Project description

VisagePy: Declarative Web GUI Builder for Python

VisagePy is a Python library that simplifies the process of creating web-based graphical user interfaces (GUIs) using a declarative approach. With VisagePy, you can define your GUI structure in a clear and concise way, without getting bogged down in complex layout code.

Features

  • Declarative GUI Definition: Define your GUI using a simple YAML or JSON structure, making it easy to read and understand.
  • Automatic Layout: VisagePy takes care of the layout and positioning of your GUI elements, freeing you from manual adjustments.
  • Interactive Widgets: Includes a variety of interactive widgets like buttons, text fields, dropdowns, and more.
  • Event Handling: Easily handle user interactions and trigger actions based on events like clicks, changes, and submissions.
  • Python Integration: Seamlessly integrate your GUI with Python code, allowing you to control and manipulate its behavior.
  • Extensible: Create custom widgets and extend the functionality of VisagePy to meet your specific needs.

Installation

pip install visagepy

Getting Started

from visagepy.api import VisagePyAPI

# Define your GUI structure (YAML example)
gui_description = """
elements:
  - type: label
    name: My Label
    attributes:
      text: Hello, VisagePy!
  - type: button
    name: My Button
"""

# Create a VisagePy API instance
api = VisagePyAPI(gui_description)

# Render the HTML
html = api.render_html()

# Print the HTML
print(html)

Documentation

Full documentation coming soon!

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

visagepy-0.1.1.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

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

visagepy-0.1.1-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

Details for the file visagepy-0.1.1.tar.gz.

File metadata

  • Download URL: visagepy-0.1.1.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for visagepy-0.1.1.tar.gz
Algorithm Hash digest
SHA256 42167a8187a24a1266c4962eee27091046ff43c97fb95f170da2fd26856c2e4b
MD5 968af24eb76da41d0b3554b8f8817545
BLAKE2b-256 b0ae63f16fccf5cfaefddf1d05116993810a706419d265d7a5b473660c92ce4e

See more details on using hashes here.

File details

Details for the file visagepy-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: visagepy-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for visagepy-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0cec9b557971e1f5ddcdbda7eeff1117b09ccb1d1015b3ef8501cdff9032fd6f
MD5 7094d22040243b94b3ea0aa82610a83b
BLAKE2b-256 358d584baddd52d55fceaf68a033a7fe860072c45fd7f7590db625b1a59a0cc4

See more details on using hashes here.

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