videopython 0.62.0__tar.gz → 0.62.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. {videopython-0.62.0 → videopython-0.62.1}/PKG-INFO +1 -1
  2. {videopython-0.62.0 → videopython-0.62.1}/pyproject.toml +1 -1
  3. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/base/video.py +11 -4
  4. {videopython-0.62.0 → videopython-0.62.1}/.gitignore +0 -0
  5. {videopython-0.62.0 → videopython-0.62.1}/LICENSE +0 -0
  6. {videopython-0.62.0 → videopython-0.62.1}/README.md +0 -0
  7. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/__init__.py +0 -0
  8. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/_exceptions.py +0 -0
  9. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/_ffmpeg.py +0 -0
  10. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/__init__.py +0 -0
  11. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/_device.py +0 -0
  12. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/_ollama.py +0 -0
  13. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/_optional.py +0 -0
  14. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/_predictor.py +0 -0
  15. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/_revisions.py +0 -0
  16. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/_text_chunks.py +0 -0
  17. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/auto_edit/__init__.py +0 -0
  18. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/auto_edit/_speech.py +0 -0
  19. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/auto_edit/backend.py +0 -0
  20. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/auto_edit/catalog.py +0 -0
  21. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/auto_edit/editor.py +0 -0
  22. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/auto_edit/local.py +0 -0
  23. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/auto_edit/models.py +0 -0
  24. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/auto_edit/resolve.py +0 -0
  25. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/dubbing/__init__.py +0 -0
  26. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/dubbing/_phrases.py +0 -0
  27. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/dubbing/_synthesis.py +0 -0
  28. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/dubbing/_tts_backend.py +0 -0
  29. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/dubbing/audio_ops.py +0 -0
  30. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/dubbing/config.py +0 -0
  31. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/dubbing/dubber.py +0 -0
  32. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/dubbing/models.py +0 -0
  33. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/dubbing/pipeline.py +0 -0
  34. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/dubbing/quality.py +0 -0
  35. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/dubbing/remux.py +0 -0
  36. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/dubbing/separation.py +0 -0
  37. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/dubbing/timing.py +0 -0
  38. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/dubbing/translation.py +0 -0
  39. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/dubbing/voice_sample.py +0 -0
  40. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/effects.py +0 -0
  41. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/errors.py +0 -0
  42. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/generation/__init__.py +0 -0
  43. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/generation/_speech_graphs.py +0 -0
  44. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/generation/_speech_tokens.py +0 -0
  45. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/generation/audio.py +0 -0
  46. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/generation/image.py +0 -0
  47. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/generation/video.py +0 -0
  48. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/keyframe.py +0 -0
  49. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/ops.py +0 -0
  50. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/transforms.py +0 -0
  51. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/understanding/__init__.py +0 -0
  52. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/understanding/_detector.py +0 -0
  53. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/understanding/_pyannote_patches.py +0 -0
  54. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/understanding/audio.py +0 -0
  55. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/understanding/classification.py +0 -0
  56. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/understanding/faces.py +0 -0
  57. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/understanding/image.py +0 -0
  58. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/understanding/objects.py +0 -0
  59. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/understanding/temporal.py +0 -0
  60. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/video_analysis/__init__.py +0 -0
  61. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/video_analysis/_identity.py +0 -0
  62. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/video_analysis/analyzer.py +0 -0
  63. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/video_analysis/detectors.py +0 -0
  64. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/video_analysis/models.py +0 -0
  65. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/video_analysis/sampling.py +0 -0
  66. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/ai/video_analysis/source_metadata.py +0 -0
  67. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/audio/__init__.py +0 -0
  68. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/audio/analysis.py +0 -0
  69. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/audio/audio.py +0 -0
  70. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/base/__init__.py +0 -0
  71. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/base/_dimensions.py +0 -0
  72. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/base/_video_io.py +0 -0
  73. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/base/description.py +0 -0
  74. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/base/draw_detections.py +0 -0
  75. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/base/fonts/Anton-OFL.txt +0 -0
  76. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/base/fonts/Anton-Regular.ttf +0 -0
  77. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/base/fonts/BebasNeue-OFL.txt +0 -0
  78. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/base/fonts/BebasNeue-Regular.ttf +0 -0
  79. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/base/fonts/DejaVuSans.ttf +0 -0
  80. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/base/fonts/LICENSE_DEJAVU +0 -0
  81. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/base/fonts/Lato-Bold.ttf +0 -0
  82. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/base/fonts/Lato-OFL.txt +0 -0
  83. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/base/fonts/Poppins-Bold.ttf +0 -0
  84. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/base/fonts/Poppins-OFL.txt +0 -0
  85. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/base/fonts/__init__.py +0 -0
  86. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/base/transcription.py +0 -0
  87. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/editing/__init__.py +0 -0
  88. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/editing/_ass.py +0 -0
  89. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/editing/_easing.py +0 -0
  90. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/editing/_schema.py +0 -0
  91. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/editing/audio_ops.py +0 -0
  92. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/editing/effects.py +0 -0
  93. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/editing/errors.py +0 -0
  94. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/editing/operation.py +0 -0
  95. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/editing/progress.py +0 -0
  96. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/editing/streaming.py +0 -0
  97. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/editing/transcription_overlay.py +0 -0
  98. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/editing/transforms.py +0 -0
  99. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/editing/video_edit.py +0 -0
  100. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/mcp/__init__.py +0 -0
  101. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/mcp/_models.py +0 -0
  102. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/mcp/server.py +0 -0
  103. {videopython-0.62.0 → videopython-0.62.1}/src/videopython/py.typed +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: videopython
3
- Version: 0.62.0
3
+ Version: 0.62.1
4
4
  Summary: LLM-friendly Python video editing with JSON plans, local AI, and MCP tools.
5
5
  Project-URL: Homepage, https://videopython.com
6
6
  Project-URL: Repository, https://github.com/bartwojtowicz/videopython/
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "videopython"
3
- version = "0.62.0"
3
+ version = "0.62.1"
4
4
  description = "LLM-friendly Python video editing with JSON plans, local AI, and MCP tools."
5
5
  authors = [
6
6
  { name = "Bartosz Wójtowicz", email = "bartoszwojtowicz@outlook.com" },
@@ -533,11 +533,18 @@ class Video:
533
533
  return self.fps is not None and self.frames is not None and self.audio is not None
534
534
 
535
535
  def split(self, frame_index: int | None = None) -> tuple[Video, Video]:
536
- if frame_index:
537
- if not (0 <= frame_index <= len(self.frames)):
538
- raise ValueError(f"frame_idx must be between 0 and {len(self.frames)}, got {frame_index}")
539
- else:
536
+ """Split before a frame and divide audio at the same time.
537
+
538
+ ``None`` selects ``len(self.frames) // 2``. The index must be strictly
539
+ between zero and the frame count so both parts contain frames.
540
+
541
+ Raises:
542
+ ValueError: If the split would leave either part empty.
543
+ """
544
+ if frame_index is None:
540
545
  frame_index = len(self.frames) // 2
546
+ if not 0 < frame_index < len(self.frames):
547
+ raise ValueError("Split must leave at least one frame on each side")
541
548
 
542
549
  split_videos = (
543
550
  self.from_frames(self.frames[:frame_index], self.fps),
File without changes
File without changes
File without changes