Skip to main content

Python bindings for the Rust graph library 'agg'

Project description

Asciinema Agg Python Bindings

This is a Python binding for agg which is a command line tool for converting asciinema recordings into GIF video files.

It requires a modified version of agg (by making some modules public), which is included in this repository at local_cargo_registry/agg.

Installation

From PyPI:

pip install agg-python-bindings

From GitHub:

pip install git+https://github.com/james4ever0/agg-python-bindings.git

Source install:

git clone https://github.com/james4ever0/agg-python-bindings.git
cd agg-python-bindings
pip install .

Usage

import agg_python_bindings

asciicast_filepath = "asciinema.cast"

# Load asciicast file from path, save terminal screenshots separated by frame_time_min_spacing (seconds) to png_write_dir
# Output png filename format: "{png_filename_prefix}_{screenshot_timestamp}.png"
agg_python_bindings.load_asciicast_and_save_png_screenshots(
    asciicast_filepath, # required, path to asciicast file (input)
    png_write_dir=".", # optional
    png_filename_prefix="screenshot", # optional
    frame_time_min_spacing=1.0 # optional
)

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

agg_python_bindings-0.1.0.tar.gz (82.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agg_python_bindings-0.1.0-cp311-cp311-manylinux_2_34_x86_64.whl (21.6 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

File details

Details for the file agg_python_bindings-0.1.0.tar.gz.

File metadata

  • Download URL: agg_python_bindings-0.1.0.tar.gz
  • Upload date:
  • Size: 82.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.19

File hashes

Hashes for agg_python_bindings-0.1.0.tar.gz
Algorithm Hash digest
SHA256 51d4cff913dcc4a1322c41e9c85a158f4dafdd7182215940f81557e346363ce6
MD5 bc1ab532865e8fed32054ce39c9b3c3a
BLAKE2b-256 671c2d0e03a2bdcef0e6d580d2d392f6633ee26c60004cc07418fc8a80ca0fe2

See more details on using hashes here.

File details

Details for the file agg_python_bindings-0.1.0-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for agg_python_bindings-0.1.0-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 f32c074adaaabcbae40889b7d9202e1178984a1699d8470c22ad7ef982dbb915
MD5 1d093472e290b1e2c4546e49044b30b5
BLAKE2b-256 29363e4852e649e456af511a4431d48b9b2b12234603914d0ee550b819811172

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page