Skip to main content

Achieving Seamless Performance In Real-time Environments : A framework for a line based TUI

Project description

Logo

Achieving Seamless Performance In Real-time Environments -> Text User Interface

Note:
This is the official rewrite of TUI/SWARM by the original inventor/author Simon Arjuna Erat.
Please be aware that this is an unstable work in progress, and some references in this text may refer to habits/behaviour based on the original BASH source code.

  • This software/framework is running under MIT License
  • For recent updates, please see the ChangeLog
  • You can install this as a PyPi Package --> pip install AspireTUI
  • Documentation and Source Code can be found on the GitHub repo
  • This framework has currently Downloads Month with a total of Downloads so far. (stats from pypi)

Please report bugs and/or inconsistencies!
--> GitHub Issues <--

Brief

ASPIRE is a Python 3.11+ module that offers an easy to use line-based text user interface framework.

It aims to make the console output more appealing to end users and provide developers an easy to use framework for 'everyday tasks' and to put their output left, center and right oriented with some 'dividers' (header, title) using a theme for presentation.

Note:
The original BASH version was only using internal BASH functionality and GNU Core Utils, I intend to only rely on Python standard library for this framework as well.
No depency hell! But I might need to "re-invent the wheel" for certain functions. -> However, during WIP phases, I might rely on additional libs until my mind is ready to do so.

Target Audience

For developers aiming to enhance the user experience with the console.

HelloWorld

Detail

ASPIRE is designed with simplified usability in mind for both end users and developers.
These functions aim to streamline interactions and improve the overall experience, coding and usage wise.

It aims to be cross platform compatible, but this will also require you to handle certain cases in your own code.

It supports:

  • Any console that can run Python code.
    Like:
    • MS Windows (regular + PowerShell)
    • Any GNU + *nix system/distro
      As a side effect this (partialy) includes:
      • Apple iOS

Usage & Preview

Please see help and examples for detailed information.

The code for the previous preview would look as simple as this, which is how you can use it as library in your projects:

from AspireTUI import tui
from AspireTUI import Strings as _stew

tui.header("Aspire by (sea/sri-arjuna)", "{_stew.now()}")
tui.title("Hello World")
tui.print("Left string", "Center string", "Right string")
tui.wait(3)
tui.press()

This is how "Hello World" (using header, title and print) can look like:

HelloWorld

Here's just a screenshot of how "data" or "progress" could be shown to your users, or how they could interact with your programm.

User Interactions

Installation

Super simple:

pip install AspireTUI

Various themes:

This is just a preview of the "official" themes.

You can further customize the appearance by using the Custom theme.

Please see help and examples for detailed information.

Themes Preview

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

aspiretui-0.5.1.tar.gz (52.2 kB view hashes)

Uploaded Source

Built Distribution

AspireTUI-0.5.1-py3-none-any.whl (64.6 kB view hashes)

Uploaded Python 3

Supported by

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