auto-editor 24.3.1__py3-none-any.whl → 24.9.1__py3-none-any.whl

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.
@@ -172,3 +172,44 @@ def parse_with_palet(
172
172
  raise ParserError(f"'{k}' must be specified.")
173
173
 
174
174
  return kwargs
175
+
176
+
177
+ def parse_method(
178
+ name: str, text: str, env: Env
179
+ ) -> tuple[str, list[Any], dict[str, Any]]:
180
+ from auto_editor.lang.palet import Lexer, Parser, interpret
181
+ from auto_editor.lib.err import MyError
182
+
183
+ # Positional Arguments
184
+ # audio:0.04,0,6,3
185
+ # Keyword Arguments
186
+ # audio:threshold=0.04,stream=0,mincut=6,minclip=3
187
+
188
+ args: list[Any] = []
189
+ kwargs: dict[str, Any] = {}
190
+
191
+ allow_positional_args = True
192
+ lexer = PLexer(text)
193
+ while (arg := lexer.get_next_token()) is not None:
194
+ if not arg:
195
+ continue
196
+
197
+ if "=" in arg:
198
+ key, val = arg.split("=", 1)
199
+
200
+ results = interpret(env, Parser(Lexer(name, val)))
201
+ if not results:
202
+ raise MyError("Results must be of length > 0")
203
+
204
+ kwargs[key] = results[-1]
205
+ allow_positional_args = False
206
+
207
+ elif allow_positional_args:
208
+ results = interpret(env, Parser(Lexer(name, arg)))
209
+ if not results:
210
+ raise MyError("Results must be of length > 0")
211
+ args.append(results[-1])
212
+ else:
213
+ raise ParserError(f"{name} positional argument follows keyword argument.")
214
+
215
+ return name, args, kwargs
@@ -229,6 +229,7 @@ class Args:
229
229
  video_quality_scale: str = "unset"
230
230
  scale: float = 1.0
231
231
  extras: str | None = None
232
+ sn: bool = False
232
233
  no_seek: bool = False
233
234
  cut_out: list[list[str]] = field(default_factory=list)
234
235
  add_in: list[list[str]] = field(default_factory=list)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: auto-editor
3
- Version: 24.3.1
3
+ Version: 24.9.1
4
4
  Summary: Auto-Editor: Effort free video editing!
5
5
  Author-email: WyattBlue <wyattblue@auto-editor.com>
6
6
  License: Unlicense
@@ -1,36 +1,37 @@
1
1
  ae-ffmpeg/setup.py,sha256=HeORyrs8OyJ32lSnMaIhI2B7U1lkk3QP6wOjxpoiF3Y,1891
2
2
  ae-ffmpeg/ae_ffmpeg/__init__.py,sha256=Y_dn5Uoh1fOrhhJ9B3agOsPF2VXnCbIaXuN3ZRft-pk,453
3
3
  ae-ffmpeg/ae_ffmpeg/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- auto_editor/__init__.py,sha256=guX3DDmGMwPMzCOQ41YcNInOiC-jTMIlNENpBh6RQ4E,42
5
- auto_editor/__main__.py,sha256=O7GMya_8grveg6ZBGYkhgGiKLhHuKyD8iXMlxxLnycQ,9685
6
- auto_editor/analyze.py,sha256=DP4L-JF0W3BFt50TlKiyNWufAQZN9ytvJ3SsNKk3AVk,14489
7
- auto_editor/edit.py,sha256=mkyuFz4AKVryMcKVxTg87hecRXuQy56hdPrEXCn2Fzc,11989
8
- auto_editor/ffwrapper.py,sha256=0WEX_xVTgRIVfRvPOEwDb1DGAPFyLjKGPEb8uLiFbV8,8545
9
- auto_editor/help.py,sha256=RGCUb_5_lPFwbrXOlgnwlB0G_L88LN8yx-aycTeu8Hs,8150
4
+ auto_editor/__init__.py,sha256=RJIMlcL3cdE7LOygV0nkUUrFZqTrOQb2DimvfAvLfF8,42
5
+ auto_editor/__main__.py,sha256=Lb_0h7Zop0SHK-nLWgwp7MWFrznuir8Ilo17Vx_0aKs,9827
6
+ auto_editor/analyze.py,sha256=zvN4hXyEGXdUUVkfnYlyrCXPgBRl3DoQtBwIfHo7q68,11938
7
+ auto_editor/edit.py,sha256=oL8-oCHMbTARb89IY4tsnSs_vWeqk6lwVvNhdw4Xp5M,12013
8
+ auto_editor/ffwrapper.py,sha256=TrYdEyjzbpRif4mGWfi8FHkRl5chbI07-tUUyg-CpBA,8667
9
+ auto_editor/help.py,sha256=BFiP7vBz42TUzum4-zaQIrV1OY7kHeN0pe0MPE0T5xw,7997
10
10
  auto_editor/make_layers.py,sha256=_YyuV7JvF9sneu3FJQPDkvRqzja8Fzscr4624bXN4iI,8214
11
- auto_editor/output.py,sha256=AoJa1zYnq8b8LgPj9VYX56OF7bmJnVfueo2TokshTBM,6267
11
+ auto_editor/output.py,sha256=NkdwGbiUAXvieOqjmsH4jMj3pplSKAOrbhN503U2o-o,6311
12
12
  auto_editor/preview.py,sha256=K10TyP0_LWD4yEIUHzqSHs_97hKl0VIaIuA1xGHI8ZI,3023
13
13
  auto_editor/timeline.py,sha256=JwcS-8AS5vsoTL_m03aosYijScQef4AGa2lyutQ8wbI,7069
14
14
  auto_editor/validate_input.py,sha256=G4LzUdt0fSrIPRd-wvP7x9cOzXmHTd7-BPrFk2ZNEWk,2671
15
15
  auto_editor/vanparse.py,sha256=kHvGK7itqt37q0MPTSriPljB7ilFpjG5LuEVdulUbyg,9902
16
16
  auto_editor/wavfile.py,sha256=UatK5yRJGe2vIpHC1U0ccxyixaLyzLoNvApzWcrxLy8,9168
17
17
  auto_editor/formats/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
18
- auto_editor/formats/fcp11.py,sha256=eNAM6OO2SfYezR0reNOUhABPf6_zXROy9sRfm5UFA48,5950
19
- auto_editor/formats/fcp7.py,sha256=L5RLqFlRu-5i8zpx517FOVRoZ2i6KwHTyc8o8l2lc04,19530
18
+ auto_editor/formats/fcp11.py,sha256=3Z7-AYkGmlnk2WyzNG11483krZqj3XRAnvw491RTxHE,5860
19
+ auto_editor/formats/fcp7.py,sha256=zzkcq6U0NYlckc1X81ioStd4QbdN4pj_de4EHlV5dbo,17757
20
20
  auto_editor/formats/json.py,sha256=AFrQwjzmMMoEJFgYNEipnz2X75ftRfHmPHJKWW_KPwo,6741
21
21
  auto_editor/formats/shotcut.py,sha256=9XM-NGDVSrHyG05Tsq6RR6WacyatQxGa6wPuRu-QtXU,5023
22
22
  auto_editor/formats/utils.py,sha256=GIZw28WHuCIaZ_zMI0v6Kxbq0QaIpbLsdSegdYwQxQ8,1990
23
23
  auto_editor/lang/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
24
24
  auto_editor/lang/json.py,sha256=OsNcYlfEj8ZLlzLK-gkLcrCCKI7mJz9rpe-6XLr4f9U,9231
25
- auto_editor/lang/palet.py,sha256=YoCFOTrrHKM8vQbk45eaqHqo1a_ITolAcZ8ZGPQQ1KU,56257
25
+ auto_editor/lang/libmath.py,sha256=z33A161Oe6vYYK7R6pgYjdZZe63dQkN38Qf36TL3prg,847
26
+ auto_editor/lang/palet.py,sha256=9eQwirwwejf0qrXxXqwETEFv4MQ98jUs-0X_wHMaxRg,59027
26
27
  auto_editor/lib/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
27
- auto_editor/lib/contracts.py,sha256=olP7QkjP91Tp8zXJmv5-ktwIPmbvh_jKDdZMkFM5j0E,5462
28
- auto_editor/lib/data_structs.py,sha256=y1PXdrMz9im7IAWqNQbNuFG3hXHMaL6MsY4eLVPiUcU,6851
28
+ auto_editor/lib/contracts.py,sha256=CTay7wMWnMSbTD1QAwE-b6yvIcSPvkpxkFQRXoJiqZE,7258
29
+ auto_editor/lib/data_structs.py,sha256=EXNcdMsdmZxMRlpbXmIbRoC-YfGzvPZi7EdBQGwvpP4,6887
29
30
  auto_editor/lib/err.py,sha256=UlszQJdzMZwkbT8x3sY4GkCV_5x9yrd6uVVUzvA8iiI,35
30
31
  auto_editor/render/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
31
32
  auto_editor/render/audio.py,sha256=lEmPuRKW5QipJV6ncCx8CHjg7wyK1knwqRM5p7zKvBY,8816
32
33
  auto_editor/render/subtitle.py,sha256=D4WDiY4iM9HsNfJvZay7zv_gvZPvyd12nd9Fi9vbPjQ,4646
33
- auto_editor/render/video.py,sha256=pgTM2tRkWDwk9y420QWHAUA2D_eNpXdUkvlg0NTMx2U,12989
34
+ auto_editor/render/video.py,sha256=LufVJJW-r0_5xWSGGpOIH3Clh63FWxEJuct-TORErDQ,13286
34
35
  auto_editor/subcommands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
35
36
  auto_editor/subcommands/desc.py,sha256=CWnRk3LCTV_sMVJVA45ZMBfPy_ESfwqkySMVuW8Fbrg,1032
36
37
  auto_editor/subcommands/info.py,sha256=etsjaKBEy0AxDtZ7XZNiizSmBnx8Wf2HeRfUyPyBCqA,6237
@@ -38,19 +39,19 @@ auto_editor/subcommands/levels.py,sha256=utCuRmpa2mirnQ_t1ogPexqjZAUBTC9KrCSS_Bb
38
39
  auto_editor/subcommands/palet.py,sha256=tbQoRWoT4jR3yu0etGApfprM-oQgXIjC-rIY-QG3nM0,655
39
40
  auto_editor/subcommands/repl.py,sha256=j5jxWgscaaRULa6ZsrV4tDJQB4vOzxiEQR0jI90v5s0,3725
40
41
  auto_editor/subcommands/subdump.py,sha256=GGekYMnqLkcqfihKjlHcuWkMazvgsYTF0q4ulEDOrRc,1669
41
- auto_editor/subcommands/test.py,sha256=5FXTWdkkhNs9Fni8toYdIB9Ke6oN5Y-hd-4ngjNu0W4,24858
42
+ auto_editor/subcommands/test.py,sha256=YOhmvehSohM1nCbU-Ivub_xEJEM57NwHuadLbrojJ84,24823
42
43
  auto_editor/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
43
44
  auto_editor/utils/bar.py,sha256=eWpiXZpRc2v2LW-EaoAgG_cTtMh5275or8Ttda3Ei-I,3974
44
45
  auto_editor/utils/chunks.py,sha256=J-eGKtEz68gFtRrj1kOSgH4Tj_Yz6prNQ7Xr-d9NQJw,52
45
- auto_editor/utils/cmdkw.py,sha256=qysqLvOHKXlRDcChGnRvP1Ar_Tud_FOhonDQt90Hjog,4785
46
+ auto_editor/utils/cmdkw.py,sha256=XApxw7FZBOEJV9N4LHhdw1GVfHbFfCjr-zCZ1gJsSvY,6002
46
47
  auto_editor/utils/container.py,sha256=WOMlUJ5pxVmeYsy79uCWMU5fCzM4tBRupAx-_Q5-PLg,7939
47
48
  auto_editor/utils/encoder.py,sha256=auNYo7HXbcU4iTUCc0LE5lpwFmSvdWvBm6-5KIaRK8w,2983
48
49
  auto_editor/utils/func.py,sha256=H38xO6Wxg1TZILVrx-nCowCzj_mqBUtJuOFp4DV3Hsc,4843
49
50
  auto_editor/utils/log.py,sha256=6j2EWE97_urQijBvxhk2Gr2-VO_KNR1XbEobcAtTG-w,2668
50
- auto_editor/utils/types.py,sha256=D8MVu5weJxJF5wVcyuLbRCqBwXIy4-wBtNJtrK-cR8M,11512
51
- auto_editor-24.3.1.dist-info/LICENSE,sha256=yiq99pWITHfqS0pbZMp7cy2dnbreTuvBwudsU-njvIM,1210
52
- auto_editor-24.3.1.dist-info/METADATA,sha256=erDZbew5rIljq4HZ_pfeXmoeB916guPcfOQs5GaeIDc,7092
53
- auto_editor-24.3.1.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
54
- auto_editor-24.3.1.dist-info/entry_points.txt,sha256=-H7zdTw4MqnAcwrN5xTNkGIhzZtJMxS9r6lTMeR9-aA,240
55
- auto_editor-24.3.1.dist-info/top_level.txt,sha256=xwV1JV1ZeRmlH9VeBRZXgXtWHpWSD4w1mY5II56D3ns,22
56
- auto_editor-24.3.1.dist-info/RECORD,,
51
+ auto_editor/utils/types.py,sha256=aWyJpVBjmctxlxiL5o8r6lplKnaFSjVNQlcoXFgfmSk,11533
52
+ auto_editor-24.9.1.dist-info/LICENSE,sha256=yiq99pWITHfqS0pbZMp7cy2dnbreTuvBwudsU-njvIM,1210
53
+ auto_editor-24.9.1.dist-info/METADATA,sha256=KeE8QXLu3b7IVUd5-3c6A_rax_5LXoqzuSN96wKp4gk,7092
54
+ auto_editor-24.9.1.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
55
+ auto_editor-24.9.1.dist-info/entry_points.txt,sha256=-H7zdTw4MqnAcwrN5xTNkGIhzZtJMxS9r6lTMeR9-aA,240
56
+ auto_editor-24.9.1.dist-info/top_level.txt,sha256=xwV1JV1ZeRmlH9VeBRZXgXtWHpWSD4w1mY5II56D3ns,22
57
+ auto_editor-24.9.1.dist-info/RECORD,,