Skip to main content

Galaxie Viewer is a Python toolkit it permit to display text over templates, like a micro STDOUT logging.

Project description

License: WTFPL Documentation Status

Galaxie Viewer’s documentation

https://glxviewer.readthedocs.io/en/latest/_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

https://glxviewer.readthedocs.io/en/latest/_images/screen_01.png

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 ''

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

galaxie-viewer-0.5.3.tar.gz (9.3 kB view details)

Uploaded Source

File details

Details for the file galaxie-viewer-0.5.3.tar.gz.

File metadata

  • Download URL: galaxie-viewer-0.5.3.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.2

File hashes

Hashes for galaxie-viewer-0.5.3.tar.gz
Algorithm Hash digest
SHA256 423fc94dd4532a215b418b15f2be06b880bf3d7911f76db41ebc69b309a02b65
MD5 0b03acd525133c384016cf359a9f64e5
BLAKE2b-256 bc364e754ebb59d044b9f435719a2dde78b9c230c6904a4ca5271410c7d44562

See more details on using hashes here.

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