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.0.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.0-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: visagepy-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 d4a62154d0362830b9e273396da450363a51a9a4443c5172f7902f8dee7ed761
MD5 6e5182c2e4ee4c2b4f70d6aa33095e3a
BLAKE2b-256 9a2f45a802e2efdbd2caf2e67a994aec4ef9c0023833d687da3972a416db8fb5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: visagepy-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5aa1bc15e194fd01f5479185a0789f2fb750886c7b73abeaeee7c094955feecf
MD5 41237b34aae44b0a310f17d1a91ca7d1
BLAKE2b-256 c4fd68fea13e9714a927ecf3b59d8ce617d009ec4f836e3056f548d305e7303b

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