auto-editor 24.30.1__tar.gz → 24.31.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 (61) hide show
  1. {auto_editor-24.30.1 → auto_editor-24.31.1}/PKG-INFO +1 -1
  2. auto_editor-24.31.1/auto_editor/__init__.py +2 -0
  3. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/lang/palet.py +12 -16
  4. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/lib/data_structs.py +2 -0
  5. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/output.py +1 -1
  6. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/subcommands/test.py +2 -2
  7. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor.egg-info/PKG-INFO +1 -1
  8. auto_editor-24.30.1/auto_editor/__init__.py +0 -2
  9. {auto_editor-24.30.1 → auto_editor-24.31.1}/LICENSE +0 -0
  10. {auto_editor-24.30.1 → auto_editor-24.31.1}/README.md +0 -0
  11. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/__main__.py +0 -0
  12. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/analyze.py +0 -0
  13. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/edit.py +0 -0
  14. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/ffwrapper.py +0 -0
  15. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/formats/__init__.py +0 -0
  16. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/formats/fcp11.py +0 -0
  17. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/formats/fcp7.py +0 -0
  18. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/formats/json.py +0 -0
  19. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/formats/shotcut.py +0 -0
  20. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/formats/utils.py +0 -0
  21. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/help.py +0 -0
  22. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/lang/__init__.py +0 -0
  23. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/lang/json.py +0 -0
  24. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/lang/libmath.py +0 -0
  25. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/lib/__init__.py +0 -0
  26. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/lib/contracts.py +0 -0
  27. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/lib/err.py +0 -0
  28. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/make_layers.py +0 -0
  29. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/preview.py +0 -0
  30. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/render/__init__.py +0 -0
  31. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/render/audio.py +0 -0
  32. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/render/subtitle.py +0 -0
  33. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/render/video.py +0 -0
  34. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/subcommands/__init__.py +0 -0
  35. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/subcommands/desc.py +0 -0
  36. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/subcommands/info.py +0 -0
  37. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/subcommands/levels.py +0 -0
  38. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/subcommands/palet.py +0 -0
  39. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/subcommands/repl.py +0 -0
  40. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/subcommands/subdump.py +0 -0
  41. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/timeline.py +0 -0
  42. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/utils/__init__.py +0 -0
  43. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/utils/bar.py +0 -0
  44. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/utils/chunks.py +0 -0
  45. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/utils/cmdkw.py +0 -0
  46. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/utils/container.py +0 -0
  47. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/utils/encoder.py +0 -0
  48. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/utils/func.py +0 -0
  49. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/utils/log.py +0 -0
  50. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/utils/subtitle_tools.py +0 -0
  51. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/utils/types.py +0 -0
  52. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/validate_input.py +0 -0
  53. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/vanparse.py +0 -0
  54. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor/wavfile.py +0 -0
  55. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor.egg-info/SOURCES.txt +0 -0
  56. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor.egg-info/dependency_links.txt +0 -0
  57. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor.egg-info/entry_points.txt +0 -0
  58. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor.egg-info/requires.txt +0 -0
  59. {auto_editor-24.30.1 → auto_editor-24.31.1}/auto_editor.egg-info/top_level.txt +0 -0
  60. {auto_editor-24.30.1 → auto_editor-24.31.1}/pyproject.toml +0 -0
  61. {auto_editor-24.30.1 → auto_editor-24.31.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: auto-editor
3
- Version: 24.30.1
3
+ Version: 24.31.1
4
4
  Summary: Auto-Editor: Effort free video editing!
5
5
  Author-email: WyattBlue <wyattblue@auto-editor.com>
6
6
  License: Unlicense
@@ -0,0 +1,2 @@
1
+ __version__ = "24.31.1"
2
+ version = "24w31a"
@@ -620,42 +620,36 @@ def make_array(dtype: Sym, size: int, v: int = 0) -> np.ndarray:
620
620
  raise MyError(f"number too large to be converted to {dtype}")
621
621
 
622
622
 
623
- def minclip(oarr: BoolList, _min: int) -> BoolList:
623
+ def minclip(oarr: BoolList, _min: int, /) -> BoolList:
624
624
  arr = np.copy(oarr)
625
625
  mut_remove_small(arr, _min, replace=1, with_=0)
626
626
  return arr
627
627
 
628
628
 
629
- def mincut(oarr: BoolList, _min: int) -> BoolList:
629
+ def mincut(oarr: BoolList, _min: int, /) -> BoolList:
630
630
  arr = np.copy(oarr)
631
631
  mut_remove_small(arr, _min, replace=0, with_=1)
632
632
  return arr
633
633
 
634
634
 
635
- def maxclip(oarr: BoolList, _min: int) -> BoolList:
635
+ def maxclip(oarr: BoolList, _min: int, /) -> BoolList:
636
636
  arr = np.copy(oarr)
637
637
  mut_remove_large(arr, _min, replace=1, with_=0)
638
638
  return arr
639
639
 
640
640
 
641
- def maxcut(oarr: BoolList, _min: int) -> BoolList:
641
+ def maxcut(oarr: BoolList, _min: int, /) -> BoolList:
642
642
  arr = np.copy(oarr)
643
643
  mut_remove_large(arr, _min, replace=0, with_=1)
644
644
  return arr
645
645
 
646
646
 
647
- def margin(a: int, b: Any, c: Any = None) -> BoolList:
648
- if c is None:
649
- check_args("margin", [a, b], (2, 2), (is_int, is_boolarr))
650
- oarr = b
651
- start, end = a, a
652
- else:
653
- check_args("margin", [a, b, c], (3, 3), (is_int, is_int, is_boolarr))
654
- oarr = c
655
- start, end = a, b
656
-
647
+ def margin(oarr: BoolList, start: int, end: int | None = None, /) -> BoolList:
657
648
  arr = np.copy(oarr)
658
- mut_margin(arr, start, end)
649
+ if end is None:
650
+ mut_margin(arr, start, start)
651
+ else:
652
+ mut_margin(arr, start, end)
659
653
  return arr
660
654
 
661
655
 
@@ -1741,6 +1735,8 @@ env.update({
1741
1735
  "round": Proc("round", round, (1, 1), is_real),
1742
1736
  "max": Proc("max", lambda *v: max(v), (1, None), is_real),
1743
1737
  "min": Proc("min", lambda *v: min(v), (1, None), is_real),
1738
+ "max-seq": Proc("max-seq", max, (1, 1), is_sequence),
1739
+ "min-seq": Proc("min-seq", min, (1, 1), is_sequence),
1744
1740
  "mod": Proc("mod", mod, (2, 2), is_int),
1745
1741
  "modulo": Proc("modulo", mod, (2, 2), is_int),
1746
1742
  # symbols
@@ -1796,7 +1792,7 @@ env.update({
1796
1792
  "bool-array": Proc(
1797
1793
  "bool-array", lambda *a: np.array(a, dtype=np.bool_), (1, None), is_nat
1798
1794
  ),
1799
- "margin": Proc("margin", margin, (2, 3)),
1795
+ "margin": Proc("margin", margin, (2, 3), is_boolarr, is_int),
1800
1796
  "mincut": Proc("mincut", mincut, (2, 2), is_boolarr, is_nat),
1801
1797
  "minclip": Proc("minclip", minclip, (2, 2), is_boolarr, is_nat),
1802
1798
  "maxcut": Proc("maxcut", maxcut, (2, 2), is_boolarr, is_nat),
@@ -185,6 +185,8 @@ def display_str(val: object) -> str:
185
185
  return f"{val.real}{join}{val.imag}i"
186
186
  if type(val) is np.bool_:
187
187
  return "1" if val else "0"
188
+ if type(val) is np.float64 or type(val) is np.float32:
189
+ return f"{float(val)}"
188
190
  if type(val) is Fraction:
189
191
  return f"{val.numerator}/{val.denominator}"
190
192
 
@@ -227,7 +227,7 @@ def mux_quality_media(
227
227
  cmd.extend(["-color_range", f"{color_range}"])
228
228
  if colorspace in (0, 1) or (colorspace >= 3 and colorspace < 16):
229
229
  cmd.extend(["-colorspace", f"{colorspace}"])
230
- if color_prim in (0, 1) or (color_prim >= 4 and color_prim < 17):
230
+ if color_prim == 1 or (color_prim >= 4 and color_prim < 17):
231
231
  cmd.extend(["-color_primaries", f"{color_prim}"])
232
232
  if color_trc == 1 or (color_trc >= 4 and color_trc < 22):
233
233
  cmd.extend(["-color_trc", f"{color_trc}"])
@@ -628,11 +628,11 @@ def main(sys_args: list[str] | None = None):
628
628
  ("(string #\\a #\\b)", "ab"),
629
629
  ("(string #\\a #\\b #\\c)", "abc"),
630
630
  (
631
- "(margin 0 (bool-array 0 0 0 1 0 0 0))",
631
+ "(margin (bool-array 0 0 0 1 0 0 0) 0)",
632
632
  np.array([0, 0, 0, 1, 0, 0, 0], dtype=np.bool_),
633
633
  ),
634
634
  (
635
- "(margin -2 2 (bool-array 0 0 1 1 0 0 0))",
635
+ "(margin (bool-array 0 0 1 1 0 0 0) -2 2)",
636
636
  np.array([0, 0, 0, 0, 1, 1, 0], dtype=np.bool_),
637
637
  ),
638
638
  ("(equal? 3 3)", True),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: auto-editor
3
- Version: 24.30.1
3
+ Version: 24.31.1
4
4
  Summary: Auto-Editor: Effort free video editing!
5
5
  Author-email: WyattBlue <wyattblue@auto-editor.com>
6
6
  License: Unlicense
@@ -1,2 +0,0 @@
1
- __version__ = "24.30.1"
2
- version = "24w30a"
File without changes
File without changes
File without changes