Skip to main content

lying - run a fake terminal

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

Metadata

Release files for lying 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lying 0.1.1
File Size Uploaded Provenance
lying-0.1.1.tar.gz 16.6 MB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for lying 0.1.1
File Interpreter ABI Platform
lying-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 16.6 MB

Release files / lying-0.1.1.tar.gz

Download URL lying-0.1.1.tar.gz
Size 16.6 MB
Tags Source
SHA-256 checksum
How to use checksums
ab8f90c09a5699ee42f7aeeca2139e9a81f4e0e35b34810868724c433b258c1d
BLAKE2b-256 checksum
How to use checksums
277aaaa087593b041b78a7003c49e0fe9e6b2f94b77096ece0ce58f889f88a88
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / lying-0.1.1-py3-none-any.whl

Download URL lying-0.1.1-py3-none-any.whl
Size 10.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7f4f37c4073d6046a9e14dfcbf781779e317b48e9232bc7f0467781e911203e4
BLAKE2b-256 checksum
How to use checksums
990a9898884ebc1d6ce3c827e80b7534d5568727f6d0500bc5b9ce805b706174
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for lying 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page