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.3.tar.gz (88.4 kB view details)

Uploaded Source

Built Distributions

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

agg_python_bindings-0.1.3-cp312-cp312-manylinux_2_34_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

agg_python_bindings-0.1.3-cp311-cp311-manylinux_2_34_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

agg_python_bindings-0.1.3-cp310-cp310-manylinux_2_34_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

agg_python_bindings-0.1.3-cp39-cp39-manylinux_2_34_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.34+ x86-64

agg_python_bindings-0.1.3-cp38-cp38-manylinux_2_34_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.34+ x86-64

File details

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

File metadata

  • Download URL: agg_python_bindings-0.1.3.tar.gz
  • Upload date:
  • Size: 88.4 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.3.tar.gz
Algorithm Hash digest
SHA256 bff7c8e84785e24dd96edc4ffbb0153bf8b6f4a546cb327823dde03ed6b77e34
MD5 8b21553991aae8ee3f2e219ce0e92b77
BLAKE2b-256 dbe4d590e6e818417649027c732d741c05184b7907bfacf948a2fe7d4e9f9162

See more details on using hashes here.

File details

Details for the file agg_python_bindings-0.1.3-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for agg_python_bindings-0.1.3-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 a0e69148e2f7f39343a432797dc525955b3f28ca086e4b2597e148c091b2958a
MD5 d97f99dee768d05e5f2f51d49acaf1f7
BLAKE2b-256 3d44dc47b188741e90484431e6af87faaf67a57ea20e323bba9f4e7f019050f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for agg_python_bindings-0.1.3-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 1a2a19154d5b4b97e65514dc69d7ff588c620c9dee36b4d128ba73239b955f46
MD5 33db6a06a9ef3ac54fb4b2ec9db40b42
BLAKE2b-256 ee7f505aad1f18f558450b2c9e446a4cf931559d693a3b7974dfac95d839b085

See more details on using hashes here.

File details

Details for the file agg_python_bindings-0.1.3-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for agg_python_bindings-0.1.3-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 bd52bafec4ef6f365f59b9e8f9c6a7817fc06e07d45e68ac5e93b01b46ce6a4c
MD5 983857be914c7fde176ca32b9ab10d68
BLAKE2b-256 5e0f3edf6a7395a95bd393e4c6c1dddbd1e8cd7fa50392bc3e3f940779865af6

See more details on using hashes here.

File details

Details for the file agg_python_bindings-0.1.3-cp39-cp39-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for agg_python_bindings-0.1.3-cp39-cp39-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 dde1a7528563909866401588ce4cced5a3e8380f64e74332d4022ad98cc7b4ef
MD5 ab2cada702c034ddb016fa45c08be4f0
BLAKE2b-256 16ae977b8c40daecec1d03ee5ebf99249b001b677a485e915c2c9d8345fbccd2

See more details on using hashes here.

File details

Details for the file agg_python_bindings-0.1.3-cp38-cp38-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for agg_python_bindings-0.1.3-cp38-cp38-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 2a3bfeed4d3b7ac13f2d793b37f4ab67cdeba87f347f32e0ef0bc28329fca2d6
MD5 ecf44f2d9b539c2c4275e3a506ad0d45
BLAKE2b-256 12c168771cbd57401d8913579da9c90da22f20110204b7c577e7157c3e69a2f4

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