Galaxie Shell 0.5.3 documentation


Navigation:   | Index   | Search   | Top   | Next   |
Table of Content: |Galaxie Viewer’s documentation |Description |Links |Screenshots |Contents |Installation via pip |Code Example |CLI Example |License |Indices and tables |

© Copyright 2020-2024, Galaxie Viewer Team.

Top » index

License: WTFPL Documentation Status

Galaxie Viewer’s documentation

_images/logo_galaxie.png

Description

Provide a Text Based line viewer, it use a template. It existe many template for high level language, but nothing for text one.

Our mission is to provide useful display template for terminal. Actually every Galaxie tool use it; where print() is not use any more…

Screenshots

v 0.5

_images/screen_01.png

Contents

Installation via pip

Pypi

pip install galaxie-viewer

Pypi Test

pip install -i https://test.pypi.org/simple/ galaxie-viewer

Code Example

import sys
import os
import time

current_dir = os.path.dirname(os.path.abspath(__file__))
sys.path.append(os.path.dirname(current_dir))

from glxviewer import viewer


def main():
    start_time = time.time()
    viewer.write(
        column_1=__file__,
        column_2='Yes that is possible',
        status_text_color='MAGENTA',
    )
    viewer.write(
        column_1=__file__,
        column_2='it have no difficulty to make it',
        column_3='what ?'
    )
    viewer.write(
        column_1='Use you keyboard with Ctrl + c for stop the demo',
        status_text='INFO',
        status_text_color='GREEN',
        status_symbol='!',
    )
    while True:

        viewer.write(
            column_1=__file__,
            column_2=str(time.time() - start_time),
            status_text='REC',
            status_text_color='RED',
            status_symbol='<',
            prompt=-1
        )


if __name__ == '__main__':
    try:
        main()
    except KeyboardInterrupt:
        viewer.flush_a_new_line()
        sys.exit()

CLI Example

glx-viewer --with-no-date --column-1 "PIP INSTALL GLXVIEWER" --status-text-color GREEN --status-text "OK" --status-symbol ''

License

See the LICENCE

All contributions to the project source code (“patches”) SHALL use the same license as the project.

Indices and tables

Top » index

© Copyright 2020-2024, Galaxie Viewer Team.
This page is licensed under the GNU General Public License v3 or later (GPLv3+).
Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
See History and License for more information.

Last updated on None.
Created using Sphinx 7.2.6.