mirror of
https://github.com/Akascape/Datamosher-Pro.git
synced 2025-12-06 00:09:59 +01:00
Add files via upload
This commit is contained in:
27
Python Version/pymosh/__init__.py
Normal file
27
Python Version/pymosh/__init__.py
Normal file
@@ -0,0 +1,27 @@
|
||||
from .container import avi
|
||||
|
||||
__all__ = ['Index']
|
||||
|
||||
|
||||
class Index(object):
|
||||
"""Index is an index of video frame data."""
|
||||
|
||||
def __init__(self):
|
||||
pass
|
||||
|
||||
@staticmethod
|
||||
def from_file(filename: str):
|
||||
instance = Index()
|
||||
instance.filename = filename
|
||||
instance.index = None
|
||||
|
||||
# Assume AVI for now
|
||||
instance.index = avi.AVIFile.from_file(filename)
|
||||
|
||||
return instance
|
||||
|
||||
def __getattr__(self, index):
|
||||
return getattr(self.index, index)
|
||||
|
||||
def __iter__(self):
|
||||
return iter(self.index)
|
||||
Reference in New Issue
Block a user