Skip to main content

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

Project description

Documentation Status Pipeline status Coverage 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.4

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

Exemple

import sys
import time
from glxviewer import viewer


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

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


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

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.4.4.tar.gz (7.5 kB view hashes)

Uploaded Source

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