A simple and lightweight static GIF generator.
Project description
termgif
A simple and lightweight static GIF generator!
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
About The Project
"Creating clean, visually appealing demo screenshots for command-line tutorials can often be a tedious hassle—working with asciinema and ffmpeg involves a convoluted workflow. In reality, however, simply feeding it an API will resolve all such issues."
termgif is a lightweight tool for static-build GIF generation. On Windows it records your terminal command execution (producing a cast JSON), then renders the captured output into an animated GIF.
The goal is simple: make command-line demos more visual and lightweight.
Main flow:
- Record: run the target command and capture terminal output (record_win.py)
- Convert: render the cast JSON into GIF frames (convert_cast_to_gif / convert.py)
- Generate: write the GIF to the specified output path
Built With
Getting Started
This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.
Prerequisites
This is an example of how to list things you need to use the software and how to install them.
- Hatch (if exists)
# print all dependencies hatch dep show # print dependencies on group dep hatch dep show dev
Installation
- Clone the repo
git clone https://github.com/FishgameStudio/termgif.git
- Install PIP packages
pip install .
- Change git remote url to avoid accidental pushes to base project
git remote remove origin git remote -v # confirm the changes
Usage
Use this space to show useful examples of how a project can be used. Additional screenshots, code examples and demos work well in this space. You may also link to more resources.
For more examples, please refer to the Documentation or Examples
Roadmap
- v0.1.0: Basic recording for Windows
- v0.2.0:
- Support for macOS and Linux
- Support for recording live inputting text on console (
stdin) - Support recording live console (with echo and color)
See the open issues for a full list of proposed features (and known issues).
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Top contributors:
License
Distributed under the project_license. See LICENSE for more information.
Contact
Nicola Grey - popxh@outlook.com
Project Link: https://github.com/FishgameStudio/termgif
Acknowledgments
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file term2gif-0.1.0.tar.gz.
File metadata
- Download URL: term2gif-0.1.0.tar.gz
- Upload date:
- Size: 130.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0762aee453d03cc1d2d536bd549dfb3bbbb16b9fa7b37f3aab201e11b0acce49
|
|
| MD5 |
67fc296cf42120ed5f78dae9819137dc
|
|
| BLAKE2b-256 |
c23003ef6754ee0f01abbda754d4a891fa55f79799b71785c5cda8c231d7510c
|
File details
Details for the file term2gif-0.1.0-py3-none-any.whl.
File metadata
- Download URL: term2gif-0.1.0-py3-none-any.whl
- Upload date:
- Size: 133.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2498088c900cb34623483d9bcbda74637eee5e81da6c5f2dca6058ef57a12ac
|
|
| MD5 |
77d016b4b9a80645ef7b4e6e4e180cd7
|
|
| BLAKE2b-256 |
ea35a8791017c2b8bd341e2c10a3c0eacaec8a309058363a2a618a0ced3eb06c
|