Skip to main content

textual-video

Textual widget for playing videos in terminal UIs. Based on textual-image.

Installation

pip install textual-video

Dependencies

  • textual (TUI framework)
  • textual-image (image widget)
  • textual-canvas (canvas widget, for displaying track)
  • av (get video frames and metadata)
  • numpy (av requires)

Example

from textual_video.player import VideoPlayer
from textual.app import App, ComposeResult

class ExampleApp(App):
    def compose(self) -> ComposeResult:
        yield VideoPlayer(r'examples\video.mp4')

if __name__ == '__main__':
    ExampleApp().run()

Image types

Textual-image provides 4 ways to display image

Member Description
ImageType.SIXEL Slow; Highest fidelity; requires terminal sixel support.
ImageType.TGP ? (not work in my laptop)
ImageType.HALFCELL Fast; uses half-cell Unicode blocks.
ImageType.UNICODE Fastest; low fidelity, widest compatibility.

Metadata

Release files for textual-video 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for textual-video 0.1.4
File Size Uploaded Provenance Actions
textual_video-0.1.4.tar.gz 9.6 kB Without provenance Details for textual_video-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for textual-video 0.1.4
File Interpreter ABI Platform Actions
textual_video-0.1.4-py3-none-any.whl Python 3 none any Details for textual_video-0.1.4-py3-none-any.whl

Total release size: 20.0 kB

Release files / textual_video-0.1.4.tar.gz

Download URL textual_video-0.1.4.tar.gz
Size 9.6 kB
Tags Source
SHA-256 checksum
How to use checksums
60c934090c808b539dbe95245d2ec28a6ea34025357bbb5bfc68808b199c3f0b
BLAKE2b-256 checksum
How to use checksums
c78083f99397b0c7a11b2e296c2f7006a6255ad4d086b0d2a9c7a167d0d7c3bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / textual_video-0.1.4-py3-none-any.whl

Download URL textual_video-0.1.4-py3-none-any.whl
Size 10.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7f9b947c02875b94de50899e631f46f84f00370b099e2df90875cf94589de25a
BLAKE2b-256 checksum
How to use checksums
e32d36fa9aadf4f4dcc187aba04f6de9ae36eccfcfe02221a5dd458b399fe9af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Security for textual-video 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page