MCPcopy Create free account
hub / github.com/scanny/python-pptx / from_blob

Method from_blob

src/pptx/media.py:24–26  ·  view source on GitHub ↗

Return a new |Video| object loaded from image binary in *blob*.

(cls, blob: bytes, mime_type: str | None, filename: str | None = None)

Source from the content-addressed store, hash-verified

22
23 @classmethod
24 def from_blob(cls, blob: bytes, mime_type: str | None, filename: str | None = None):
25 """Return a new |Video| object loaded from image binary in *blob*."""
26 return cls(blob, mime_type, filename)
27
28 @classmethod
29 def from_path_or_file_like(cls, movie_file: str | IO[bytes], mime_type: str | None) -> Video:

Calls

no outgoing calls

Tested by 2