Skip to main content

run a fake terminal

Project description

PyPI Python Version License alternate text

This small project create a fake terminal, run fake commands and display fake results. So, yes it’s lying.

Install

From source:

pip install git+https://github.com/axju/lying.git

From Pypi:

pip install lying

Do not forget to use a virtual environment.

How to use

Relay simple, just create the instruction file and then run:

lying run examples/instruction.json

To create the instruction file, take a look at the example folder. There is also a setup function to interactively create the file:

lying setup filename.json

If you want to record the result, you can use ffmpeg. The following commands can help you:

ffmpeg -video_size 1920x1080 -framerate 25 -f x11grab -i :0.0+0,0 ext/video.mp4 -y

Create a gif:

ffmpeg -i ext/video.mp4 -filter_complex "[0:v] palettegen" palette.png -y
ffmpeg -i ext/video.mp4 -i palette.png -filter_complex "[0:v][1:v] paletteuse" ext/video.gif

Development

Some information for crazy developers. Virtual environment windows:

python -m venv venv
venv\Scripts\activate

Virtual environment linux:

python3 -m venv venv
source venv/bin/activate

Setup project:

python -m pip install --upgrade pip wheel setuptools twine tox flake8 pylint coverage rstcheck
python setup.py develop

Run some test:

tox
coverage run --source lying setup.py test
coverage report -m

Create package:

python setup.py sdist bdist_wheel

Publish package:

rstcheck README.rst
python setup.py --version
python setup.py check
python setup.py sdist bdist_wheel
twine upload dist/*
git push origin 0.1.1

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

lying-0.1.1.tar.gz (16.6 MB view hashes)

Uploaded Source

Built Distribution

lying-0.1.1-py3-none-any.whl (10.7 kB view hashes)

Uploaded Python 3

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