run a fake terminal
Project description
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
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
Built Distribution
File details
Details for the file lying-0.1.1.tar.gz
.
File metadata
- Download URL: lying-0.1.1.tar.gz
- Upload date:
- Size: 16.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab8f90c09a5699ee42f7aeeca2139e9a81f4e0e35b34810868724c433b258c1d |
|
MD5 | d1af770e8fd13ae8ec639a6ab3b2a34a |
|
BLAKE2b-256 | 277aaaa087593b041b78a7003c49e0fe9e6b2f94b77096ece0ce58f889f88a88 |
File details
Details for the file lying-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: lying-0.1.1-py3-none-any.whl
- Upload date:
- Size: 10.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f4f37c4073d6046a9e14dfcbf781779e317b48e9232bc7f0467781e911203e4 |
|
MD5 | bcb5b8f05299779a6c68f69c3be30aae |
|
BLAKE2b-256 | 990a9898884ebc1d6ce3c827e80b7534d5568727f6d0500bc5b9ce805b706174 |