Dead simple terminal GIF recorder
Project description
termgif
Dead simple terminal GIF recorder. Write a script, get a beautiful GIF.
Install
pip install termgif
Quick Start
termgif create demo # create demo.tg from template
termgif demo # run commands, record to GIF
Recording Modes
Default Mode (Live Commands)
Runs real commands and captures the output:
termgif demo
Simulated Mode
Fake output - commands aren't actually executed. Great for demos:
termgif demo --simulate
termgif demo -s
Terminal Capture Mode
Screen captures your actual terminal window while running the script:
termgif demo --terminal
termgif demo -t
Script Format (.tg)
// demo.tg
@output "demo.gif"
@size 80x24
@font 16
@title "My CLI Tool"
@theme "mocha"
-> "echo 'Hello, world!'" >>
~1s
-> "ls -la" >>
~2s
Config Reference
Output & Layout
| Directive | Description | Default |
|---|---|---|
@output "path" |
Output GIF path | output.gif |
@size WxH |
Terminal size (chars) | 80x24 |
@font N |
Font size (px) | 14 |
@padding N |
Content padding (px) | 20 |
Timing
| Directive | Description | Default |
|---|---|---|
@speed Nms |
Typing speed per char | 50ms |
@start Nms |
Delay before starting | 500ms |
@end Nms |
Hold final frame | 2s |
@fps N |
Frames per second | 10 |
Appearance
| Directive | Description | Default |
|---|---|---|
@title "text" |
Window title | termgif |
@theme "name" |
Color theme | mocha |
@cursor "style" |
block / bar / underline | block |
@prompt "$ " |
Custom prompt | auto |
@bare |
No window chrome | off |
Corners
| Directive | Description | Default |
|---|---|---|
@radius N |
Corner radius (both) | 10 |
@radius-outer N |
Outer GIF edge | @radius |
@radius-inner N |
Inner window | @radius |
Advanced
| Directive | Description | Default |
|---|---|---|
@loop N |
0=infinite, N=times | 0 |
@quality N |
1=fast, 2=smooth, 3=ultra | 2 |
Script Syntax
| Syntax | Description |
|---|---|
-> "text" |
Type text |
>> |
Press enter |
-> "text" >> |
Type + enter |
~500ms |
Wait (ms or s) |
// comment |
Single-line comment |
/* ... */ |
Multi-line comment |
Themes
| Theme | Description |
|---|---|
mocha |
Catppuccin Mocha (default) |
latte |
Catppuccin Latte (light) |
frappe |
Catppuccin Frappe |
macchiato |
Catppuccin Macchiato |
dracula |
Dracula |
nord |
Nord |
tokyo |
Tokyo Night |
gruvbox |
Gruvbox |
CLI Options
termgif <script.tg> [options]
Options:
-o, --output <path> Override output path
-b, --bare No window chrome
-s, --simulate Simulated mode (no real commands)
-t, --terminal Terminal capture mode
-v, --version Show version
-h, --help Show help
Example
// showcase.tg
@output "showcase.gif"
@size 80x24
@font 16
@speed 60ms
@title "my-awesome-cli"
@theme "dracula"
@radius 12
@quality 3
-> "my-cli --help" >>
~2s
-> "my-cli init myproject" >>
~1.5s
-> "cd myproject && my-cli run" >>
~3s
termgif showcase
Features
- Beautiful output - macOS-style window chrome, traffic lights, shadows
- 8 themes - Catppuccin, Dracula, Nord, Tokyo Night, Gruvbox
- 3 modes - Live commands, simulated, or screen capture
- Rounded corners - Independent inner/outer radius
- Pure Python - No FFmpeg or browser automation
- Cross-platform - Windows, macOS, Linux
License
MIT
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 termgif-0.1.1.tar.gz.
File metadata
- Download URL: termgif-0.1.1.tar.gz
- Upload date:
- Size: 783.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0999991adc14ee91622a16b79e3d677b4bff20b60761a91adbabc7fe1bc858c9
|
|
| MD5 |
5f7357b3f76841fdccb54762a7049f73
|
|
| BLAKE2b-256 |
f1534114a3dd4a760827455f7db31ff95c2b6f295e4c09116f3a5ec6351aa4cf
|
Provenance
The following attestation bundles were made for termgif-0.1.1.tar.gz:
Publisher:
python-publish.yml on aayushadhikari7/termgif
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
termgif-0.1.1.tar.gz -
Subject digest:
0999991adc14ee91622a16b79e3d677b4bff20b60761a91adbabc7fe1bc858c9 - Sigstore transparency entry: 814783877
- Sigstore integration time:
-
Permalink:
aayushadhikari7/termgif@3af7d5b8c613638d1bef88f3b2055d68af9c4e38 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/aayushadhikari7
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@3af7d5b8c613638d1bef88f3b2055d68af9c4e38 -
Trigger Event:
release
-
Statement type:
File details
Details for the file termgif-0.1.1-py3-none-any.whl.
File metadata
- Download URL: termgif-0.1.1-py3-none-any.whl
- Upload date:
- Size: 25.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c86d2b870b033f086cdafc9bbf8ca3782cc5f2d3d4ddf82af8352390bb85ec61
|
|
| MD5 |
2f675b06a6dfd711a67bb2bc2d227613
|
|
| BLAKE2b-256 |
07703df7fd670a4df11c879a35ef9c724d1f1a24f0594e73f85460923c4831e7
|
Provenance
The following attestation bundles were made for termgif-0.1.1-py3-none-any.whl:
Publisher:
python-publish.yml on aayushadhikari7/termgif
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
termgif-0.1.1-py3-none-any.whl -
Subject digest:
c86d2b870b033f086cdafc9bbf8ca3782cc5f2d3d4ddf82af8352390bb85ec61 - Sigstore transparency entry: 814783879
- Sigstore integration time:
-
Permalink:
aayushadhikari7/termgif@3af7d5b8c613638d1bef88f3b2055d68af9c4e38 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/aayushadhikari7
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@3af7d5b8c613638d1bef88f3b2055d68af9c4e38 -
Trigger Event:
release
-
Statement type: