Skip to content

Real time data plotting in the terminal with python, curses and asciichart

License

Notifications You must be signed in to change notification settings

greyltc-org/livechart

Repository files navigation

python-live-chart

Real time data plotting (in the terminal) with python asciicast

Getting Started

python -m venv lc_venv --system-site-packages
source lc_venv/bin/activate  # <-- this might change depending on your OS, see https://docs.python.org/3/library/venv.html#how-venvs-work
python -m pip install --editable git+https://github.com/greyltc-org/livechart.git#egg=livechart
livechart

# and when you want to be done with the virtual environment:
deactivate

Build

python -m build --wheel
#python -m build --wheel --no-isolation

Install

python -m installer --destdir="./someplace" dist/*.whl

one time setup for GSettings

sudo cp gsettings/* /usr/share/glib-2.0/schemas/
sudo glib-compile-schemas /usr/share/glib-2.0/schemas/

Test

Manually

PYTHONPATH=someplace/usr/lib/python3.10/site-packages ./someplace/usr/bin/livechart-cli
#PYTHONPATH=someplace/usr/lib/python3.10/site-packages ./someplace/usr/bin/livechart

With unittest

# (from the project root)
PYTHONPATH="src" python -m unittest -v

# with code coverage report
PYTHONPATH="src" coverage run --source livechart -m unittest -v; coverage report

Combo

rm -rf someplace/; rm -rf dist/; python -m build --wheel --no-isolation; python -m installer --destdir="./someplace" dist/*.whl

About

Real time data plotting in the terminal with python, curses and asciichart

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages