Python package to display text over text templates
Project description
Galaxie Viewer
A small terminal viewer, use by Galaxie Tools for display something to the terminal.
The Mission
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
v0.2
Example
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# It script it publish under GNU GENERAL PUBLIC LICENSE
# http://www.gnu.org/licenses/gpl-3.0.en.html
# Author: the Galaxie Viewer Team, all rights reserved
import sys
import os
import time
# Require when you haven't GLXViewer as default Package
current_dir = os.path.dirname(os.path.abspath(__file__))
sys.path.append(os.path.dirname(current_dir))
from GLXViewer.viewer import flush_infos
from GLXViewer.viewer import flush_a_new_line
def main():
start_time = time.time()
flush_infos(
column_1=__file__,
column_2='Yes that is possible'
)
flush_infos(
column_1=__file__,
column_2='it have no difficulty to make it',
column_3='what ?'
)
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:
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:
flush_a_new_line()
sys.exit()
Installation
python setyp.py install
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
galaxie-viewer-0.0.1.dev24.tar.gz
(81.7 kB
view hashes)
Built Distribution
Close
Hashes for galaxie-viewer-0.0.1.dev24.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 36b12abd25745edd276464167580734f0218544fba8e7d1f388ca5fe81f7543e |
|
MD5 | 538cdfbee88c01951bbd02fbdb08600e |
|
BLAKE2b-256 | 2e8e49c3d7cc6df944b35341adfdd7bd38a34645c8387bab63779b39fc1eb0c9 |
Close
Hashes for galaxie_viewer-0.0.1.dev24-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e95530ab06a20565e00eca173cfaf4cdada8b8efdffd1f95d18d4ac5a25f87e3 |
|
MD5 | 332935dbd0c553b3b5567690aa5d59c7 |
|
BLAKE2b-256 | ad52d10875b34de4af5a6e91632a768e623579a6f43f122699cb2e317652c87e |