Name | galaxie-viewer JSON |
Version |
0.5.3
JSON |
| download |
home_page | None |
Summary | Galaxie Viewer is a Python toolkit it permit to display text over templates, like a micro STDOUT logging. |
upload_time | 2024-03-27 15:19:05 |
maintainer | None |
docs_url | None |
author | Tuuux |
requires_python | >=3.0 |
license | WTFPL |
keywords |
galaxie
utility
text
format
template
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
.. image:: https://img.shields.io/badge/License-WTFPL-brightgreen.svg
:target: http://www.wtfpl.net/about/
:alt: License: WTFPL
.. image:: https://readthedocs.org/projects/glxviewer/badge/?version=latest
:target: https://glxviewer.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
==============================
Galaxie Viewer's documentation
==============================
.. figure:: https://glxviewer.readthedocs.io/en/latest/_images/logo_galaxie.png
:align: center
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...
Links
-----
* CodeBerg: https://codeberg.org/Tuuux/galaxie-viewer/
* Issue: https://codeberg.org/Tuuux/galaxie-viewer/issues
* Read the Doc: https://glxviewer.readthedocs.io/
* PyPI: https://pypi.org/project/galaxie-viewer/
* PyPI Test: https://test.pypi.org/project/galaxie-viewer/
Screenshots
-----------
v 0.5
.. figure:: https://glxviewer.readthedocs.io/en/latest/_images/screen_01.png
:align: center
Installation via pip
--------------------
Pypi
.. code:: bash
pip install galaxie-viewer
Pypi Test
.. code:: bash
pip install -i https://test.pypi.org/simple/ galaxie-viewer
Code Example
------------
.. code:: python
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
-----------
.. code:: bash
glx-viewer --with-no-date --column-1 "PIP INSTALL GLXVIEWER" --status-text-color GREEN --status-text "OK" --status-symbol ''
Raw data
{
"_id": null,
"home_page": null,
"name": "galaxie-viewer",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.0",
"maintainer_email": null,
"keywords": "Galaxie, utility, text, format, template",
"author": "Tuuux",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/bc/36/4e754ebb59d044b9f435719a2dde78b9c230c6904a4ca5271410c7d44562/galaxie-viewer-0.5.3.tar.gz",
"platform": null,
"description": ".. image:: https://img.shields.io/badge/License-WTFPL-brightgreen.svg\n :target: http://www.wtfpl.net/about/\n :alt: License: WTFPL\n.. image:: https://readthedocs.org/projects/glxviewer/badge/?version=latest\n :target: https://glxviewer.readthedocs.io/en/latest/?badge=latest\n :alt: Documentation Status\n\n==============================\nGalaxie Viewer's documentation\n==============================\n.. figure:: https://glxviewer.readthedocs.io/en/latest/_images/logo_galaxie.png\n :align: center\n\nDescription\n-----------\nProvide a Text Based line viewer, it use a template. It existe many template for high level language, but nothing for text one.\n\nOur mission is to provide useful display template for terminal. Actually every Galaxie tool use it; where print() is not use any more...\n\nLinks\n-----\n * CodeBerg: https://codeberg.org/Tuuux/galaxie-viewer/\n * Issue: https://codeberg.org/Tuuux/galaxie-viewer/issues\n * Read the Doc: https://glxviewer.readthedocs.io/\n * PyPI: https://pypi.org/project/galaxie-viewer/\n * PyPI Test: https://test.pypi.org/project/galaxie-viewer/\n\n\nScreenshots\n-----------\nv 0.5\n\n.. figure:: https://glxviewer.readthedocs.io/en/latest/_images/screen_01.png\n :align: center\n\nInstallation via pip\n--------------------\nPypi\n\n.. code:: bash\n\n pip install galaxie-viewer\n\nPypi Test\n\n.. code:: bash\n\n pip install -i https://test.pypi.org/simple/ galaxie-viewer\n\nCode Example\n------------\n\n.. code:: python\n\n import sys\n import os\n import time\n\n current_dir = os.path.dirname(os.path.abspath(__file__))\n sys.path.append(os.path.dirname(current_dir))\n\n from glxviewer import viewer\n\n\n def main():\n start_time = time.time()\n viewer.write(\n column_1=__file__,\n column_2='Yes that is possible',\n status_text_color='MAGENTA',\n )\n viewer.write(\n column_1=__file__,\n column_2='it have no difficulty to make it',\n column_3='what ?'\n )\n viewer.write(\n column_1='Use you keyboard with Ctrl + c for stop the demo',\n status_text='INFO',\n status_text_color='GREEN',\n status_symbol='!',\n )\n while True:\n\n viewer.write(\n column_1=__file__,\n column_2=str(time.time() - start_time),\n status_text='REC',\n status_text_color='RED',\n status_symbol='<',\n prompt=-1\n )\n\n\n if __name__ == '__main__':\n try:\n main()\n except KeyboardInterrupt:\n viewer.flush_a_new_line()\n sys.exit()\n\n\nCLI Example\n-----------\n\n.. code:: bash\n\n glx-viewer --with-no-date --column-1 \"PIP INSTALL GLXVIEWER\" --status-text-color GREEN --status-text \"OK\" --status-symbol ''\n\n",
"bugtrack_url": null,
"license": "WTFPL",
"summary": "Galaxie Viewer is a Python toolkit it permit to display text over templates, like a micro STDOUT logging.",
"version": "0.5.3",
"project_urls": {
"Changelog": "https://codeberg.org/Tuuux/galaxie-viewer/src/branch/master/CHANGELOG.rst",
"Homepage": "https://codeberg.org/Tuuux/galaxie-viewer",
"Issues": "https://codeberg.org/Tuuux/galaxie-viewer/issues",
"Readthedocs": "http://galaxie-docs.readthedocs.io"
},
"split_keywords": [
"galaxie",
" utility",
" text",
" format",
" template"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "bc364e754ebb59d044b9f435719a2dde78b9c230c6904a4ca5271410c7d44562",
"md5": "0b03acd525133c384016cf359a9f64e5",
"sha256": "423fc94dd4532a215b418b15f2be06b880bf3d7911f76db41ebc69b309a02b65"
},
"downloads": -1,
"filename": "galaxie-viewer-0.5.3.tar.gz",
"has_sig": false,
"md5_digest": "0b03acd525133c384016cf359a9f64e5",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.0",
"size": 9285,
"upload_time": "2024-03-27T15:19:05",
"upload_time_iso_8601": "2024-03-27T15:19:05.930948Z",
"url": "https://files.pythonhosted.org/packages/bc/36/4e754ebb59d044b9f435719a2dde78b9c230c6904a4ca5271410c7d44562/galaxie-viewer-0.5.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-27 15:19:05",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": true,
"codeberg_user": "Tuuux",
"codeberg_project": "galaxie-viewer",
"lcname": "galaxie-viewer"
}