[PR #378] [CLOSED] Add local file readers for compressed .gz and .bz2 files #445

Closed
opened 2026-02-25 20:33:45 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/asciinema/asciinema/pull/378
Author: @tomdottom
Created: 11/6/2019
Status: Closed

Base: developHead: develop


📝 Commits (1)

  • a7f7e6f Add local file readers for compressed .gz and .bz2 files

📊 Changes

7 files changed (+116 additions, -0 deletions)

View changed files

📝 asciinema/asciicast/__init__.py (+15 -0)
asciinema/encodings.py (+52 -0)
tests/cast_decoders_test.py (+49 -0)
tests/demo.cast.bz2 (+0 -0)
tests/demo.cast.gz (+0 -0)
tests/demo.json.bz2 (+0 -0)
tests/demo.json.gz (+0 -0)

📄 Description

Adds the ability for asciinema to read from .gz. and .bz2 compressed files.

asciinema play tests/demo.json.gz
asciinema play tests/demo.json.bz2
asciinema play tests/demo.cast.gz
asciinema play tests/demo.cast.bz2

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/asciinema/asciinema/pull/378 **Author:** [@tomdottom](https://github.com/tomdottom) **Created:** 11/6/2019 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `develop` --- ### 📝 Commits (1) - [`a7f7e6f`](https://github.com/asciinema/asciinema/commit/a7f7e6fbef9f5476beaa0216a059146d5dff1ce4) Add local file readers for compressed .gz and .bz2 files ### 📊 Changes **7 files changed** (+116 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `asciinema/asciicast/__init__.py` (+15 -0) ➕ `asciinema/encodings.py` (+52 -0) ➕ `tests/cast_decoders_test.py` (+49 -0) ➕ `tests/demo.cast.bz2` (+0 -0) ➕ `tests/demo.cast.gz` (+0 -0) ➕ `tests/demo.json.bz2` (+0 -0) ➕ `tests/demo.json.gz` (+0 -0) </details> ### 📄 Description Adds the ability for `asciinema` to read from `.gz.` and `.bz2` compressed files. ```shell asciinema play tests/demo.json.gz asciinema play tests/demo.json.bz2 asciinema play tests/demo.cast.gz asciinema play tests/demo.cast.bz2 ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-25 20:33:45 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asciinema#445
No description provided.