cutcutcodec 1.0.post3__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.
Potentially problematic release.
This version of cutcutcodec might be problematic. Click here for more details.
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/__init__.py +6 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/__main__.py +38 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/c_build.py +33 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/__init__.py +3 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/analysis/__init__.py +3 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/analysis/_helper_properties.py +52 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/analysis/audio/__init__.py +3 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/analysis/audio/properties/__init__.py +3 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/analysis/audio/properties/duration.py +83 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/analysis/ffprobe.py +637 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/analysis/graph/__init__.py +3 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/analysis/graph/find.py +82 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/analysis/graph/time_backprop.py +68 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/analysis/stream/__init__.py +3 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/analysis/stream/rate_audio.py +239 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/analysis/stream/rate_video.py +97 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/analysis/stream/shape.py +107 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/analysis/stream/time_backprop.py +183 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/analysis/video/__init__.py +3 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/analysis/video/properties/__init__.py +3 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/analysis/video/properties/duration.py +162 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/analysis/video/properties/nb_frames.py +159 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/analysis/video/properties/rate.py +102 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/analysis/video/properties/timestamps.py +194 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/classes/__init__.py +3 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/classes/container.py +40 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/classes/encoder.py +152 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/classes/filter.py +33 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/classes/frame.py +127 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/classes/frame_audio.py +205 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/classes/frame_video.py +322 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/classes/layout.py +206 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/classes/meta_filter.py +41 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/classes/muxer.py +184 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/classes/node.py +164 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/classes/stream.py +182 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/classes/stream_audio.py +130 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/classes/stream_video.py +193 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/compilation/__init__.py +7 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/compilation/ast_to_file.py +125 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/compilation/export/__init__.py +6 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/compilation/export/compatibility.py +734 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/compilation/export/default.py +99 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/compilation/export/encodec.py +40 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/compilation/export/muxer.py +8 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/compilation/export/rate.py +133 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/compilation/graph_to_ast.py +477 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/compilation/graph_to_json.py +104 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/compilation/graph_to_tree.py +190 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/compilation/json_to_graph.py +114 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/compilation/parse.py +123 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/compilation/sympy_to_torch/__init__.py +15 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/compilation/sympy_to_torch/dynamic.py +544 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/compilation/sympy_to_torch/lambdify.py +612 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/compilation/sympy_to_torch/preprocess.py +698 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/compilation/sympy_to_torch/printer.py +926 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/compilation/tree_to_graph.py +168 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/edit/__init__.py +3 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/edit/decision/__init__.py +8 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/edit/operation/__init__.py +3 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/edit/operation/add.py +73 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/edit/operation/remove.py +476 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/exceptions.py +60 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/filters/__init__.py +3 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/filters/audio/__init__.py +3 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/filters/audio/add.py +170 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/filters/audio/cat.py +60 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/filters/audio/cut.py +112 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/filters/audio/delay.py +85 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/filters/audio/equation.py +261 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/filters/audio/fir.py +231 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/filters/audio/identity.py +48 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/filters/audio/resample.py +451 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/filters/audio/subclip.py +91 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/filters/cut.py +74 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/filters/mix/__init__.py +3 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/filters/mix/audio_cast.py +208 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/filters/mix/video_cast.py +197 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/filters/subclip.py +53 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/filters/video/__init__.py +3 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/filters/video/add.py +331 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/filters/video/cat.py +60 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/filters/video/cut.py +113 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/filters/video/delay.py +84 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/filters/video/equation.py +265 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/filters/video/identity.py +48 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/filters/video/pad.py +99 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/filters/video/subclip.py +91 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/generation/__init__.py +3 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/generation/audio/__init__.py +3 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/generation/audio/empty.py +73 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/generation/audio/equation.py +56 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/generation/audio/noise.py +243 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/generation/video/__init__.py +3 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/generation/video/c_fractal.cpython-312-x86_64-linux-gnu.so +0 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/generation/video/empty.py +69 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/generation/video/equation.py +109 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/generation/video/fractal/__init__.py +3 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/generation/video/fractal/fractal.c +116 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/generation/video/fractal/geometry.py +100 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/generation/video/fractal/mandelbrot.py +176 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/generation/video/noise.py +112 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/interfaces/__init__.py +3 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/interfaces/seedable.py +82 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/io/__init__.py +3 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/io/read_ffmpeg.py +904 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/io/read_svg.py +145 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/io/scheduler.py +356 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/io/write.py +340 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/opti/__init__.py +3 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/opti/cache/__init__.py +3 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/opti/cache/basic.py +35 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/opti/cache/clean/__init__.py +3 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/opti/cache/clean/graph.py +80 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/opti/cache/hashes/__init__.py +3 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/opti/cache/hashes/graph.py +81 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/opti/cache/singleton.py +47 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/opti/cuda/__init__.py +3 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/opti/factor/__init__.py +5 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/opti/factor/proba.py +189 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/opti/generalize/__init__.py +5 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/opti/generalize/delay_to_fir.py +88 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/opti/graph.py +17 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/opti/parallel/__init__.py +3 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/opti/parallel/buffer.py +90 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/core/opti/utils.py +34 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/examples/audio_5.1_narration.oga +0 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/examples/intro.webm +0 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/examples/logo.svg +13 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/examples/project.json +226 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/examples/video.mp4 +0 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/__init__.py +8 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/__main__.py +25 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/actions.py +63 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/app/__init__.py +3 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/app/app.py +248 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/base.py +50 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/edit_node_state/__init__.py +3 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/edit_node_state/all/__init__.py +3 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/edit_node_state/all/container_input_ffmpeg.py +90 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/edit_node_state/all/filter_audio_delay.py +9 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/edit_node_state/all/filter_audio_equation.py +45 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/edit_node_state/all/filter_audio_fir.py +58 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/edit_node_state/all/filter_audio_subclip.py +9 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/edit_node_state/all/filter_cut.py +82 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/edit_node_state/all/filter_delay.py +20 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/edit_node_state/all/filter_subclip.py +21 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/edit_node_state/all/filter_video_delay.py +9 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/edit_node_state/all/filter_video_equation.py +53 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/edit_node_state/all/filter_video_subclip.py +9 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/edit_node_state/all/generator_audio_equation.py +14 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/edit_node_state/all/generator_audio_noise.py +19 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/edit_node_state/all/generator_video_equation.py +13 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/edit_node_state/all/generator_video_mandelbrot.py +60 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/edit_node_state/all/generator_video_noise.py +18 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/edit_node_state/base.py +99 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/edit_node_state/default.py +27 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/edit_node_state/documentation.py +47 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/edit_node_state/general.py +71 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/edit_node_state/interface.py +305 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/edit_node_state/loader.py +41 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/edit_node_state/main.py +62 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/edition_tabs.py +34 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/entry/__init__.py +3 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/entry/base.py +122 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/entry/filters.py +42 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/entry/generators.py +42 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/entry_tabs.py +46 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/export/__init__.py +3 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/export/_helper.py +54 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/export/container.py +226 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/export/doc.py +67 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/export/encodec.py +289 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/export/main.py +173 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/flowchart/__init__.py +3 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/flowchart/edge_properties.py +56 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/flowchart/main.py +280 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/flowchart/node.py +44 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/main.py +151 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/menu.py +21 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/preferences/__init__.py +3 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/preferences/audio_settings.py +183 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/preferences/main.py +41 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/preferences/video_settings.py +257 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/run.py +71 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/timeline/__init__.py +3 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/timeline/main.py +30 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/timeline/slider.py +286 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/timeline/track.py +97 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/timeline/view.py +90 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/toolbar.py +29 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/tools.py +23 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/video_preview/__init__.py +3 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/video_preview/audio_player.py +103 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/video_preview/control.py +96 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/video_preview/frame_extractor.py +254 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/gui/video_preview/main.py +115 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/testing/__init__.py +8 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/testing/__main__.py +27 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/testing/coding_style.py +49 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/testing/generation.py +52 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/testing/install.py +72 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/testing/run.py +58 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/testing/tests/abstract.py +215 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/testing/tests/audio_cast.py +35 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/testing/tests/audio_equation.py +71 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/testing/tests/c_memory.py +132 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/testing/tests/compatibility.py +27 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/testing/tests/compile.py +42 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/testing/tests/encoder.py +23 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/testing/tests/filter_cut.py +107 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/testing/tests/filter_delay.py +71 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/testing/tests/filter_empty.py +40 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/testing/tests/fir.py +143 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/testing/tests/hashes.py +23 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/testing/tests/initialisation.py +24 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/testing/tests/muxer.py +22 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/testing/tests/nan_snapshot.py +39 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/testing/tests/read.py +192 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/testing/tests/serialization_equality.py +50 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/testing/tests/snapshot_shape.py +21 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/testing/tests/sympy_to_torch.py +135 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/testing/tests/thread_safe.py +77 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/testing/tests/time_range.py +55 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/testing/tests/video_equation.py +77 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/testing/tests/write.py +95 -0
- cutcutcodec-1.0.post3.data/platlib/cutcutcodec/utils.py +40 -0
- cutcutcodec-1.0.post3.dist-info/LICENSE +7 -0
- cutcutcodec-1.0.post3.dist-info/METADATA +271 -0
- cutcutcodec-1.0.post3.dist-info/RECORD +233 -0
- cutcutcodec-1.0.post3.dist-info/WHEEL +5 -0
- cutcutcodec-1.0.post3.dist-info/entry_points.txt +6 -0
- cutcutcodec-1.0.post3.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
|
|
3
|
+
"""The widget that contains all the elements to pick from to add them to the timeline."""
|
|
4
|
+
|
|
5
|
+
from qtpy import QtWidgets
|
|
6
|
+
|
|
7
|
+
from cutcutcodec.gui.base import CutcutcodecWidget
|
|
8
|
+
from cutcutcodec.gui.entry.filters import Filters, FiltersAudio, FiltersVideo
|
|
9
|
+
from cutcutcodec.gui.entry.generators import Generators, GeneratorsAudio, GeneratorsVideo
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class EntryTabs(CutcutcodecWidget, QtWidgets.QWidget):
|
|
13
|
+
"""Contains the different selection windows."""
|
|
14
|
+
|
|
15
|
+
def __init__(self, parent):
|
|
16
|
+
super().__init__(parent)
|
|
17
|
+
self._parent = parent
|
|
18
|
+
|
|
19
|
+
# declaration
|
|
20
|
+
self.generators = Generators(self)
|
|
21
|
+
self.generators_audio = GeneratorsAudio(self)
|
|
22
|
+
self.generators_video = GeneratorsVideo(self)
|
|
23
|
+
self.filters = Filters(self)
|
|
24
|
+
self.filters_audio = FiltersAudio(self)
|
|
25
|
+
self.filters_video = FiltersVideo(self)
|
|
26
|
+
|
|
27
|
+
# location
|
|
28
|
+
tabs = QtWidgets.QTabWidget()
|
|
29
|
+
tabs.addTab(self.generators, "All Generators")
|
|
30
|
+
tabs.addTab(self.generators_audio, "Audio Generators")
|
|
31
|
+
tabs.addTab(self.generators_video, "Video Generators")
|
|
32
|
+
tabs.addTab(self.filters, "All Filters")
|
|
33
|
+
tabs.addTab(self.filters_audio, "Audio Filters")
|
|
34
|
+
tabs.addTab(self.filters_video, "Video Filters")
|
|
35
|
+
layout = QtWidgets.QVBoxLayout()
|
|
36
|
+
layout.addWidget(tabs)
|
|
37
|
+
self.setLayout(layout)
|
|
38
|
+
|
|
39
|
+
def refresh(self):
|
|
40
|
+
"""Update the elements of this widget and child widgets."""
|
|
41
|
+
self.generators.refresh()
|
|
42
|
+
self.generators_audio.refresh()
|
|
43
|
+
self.generators_video.refresh()
|
|
44
|
+
self.filters.refresh()
|
|
45
|
+
self.filters_audio.refresh()
|
|
46
|
+
self.filters_video.refresh()
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
|
|
3
|
+
"""Helps to avoid redundancy on simple functions."""
|
|
4
|
+
|
|
5
|
+
import abc
|
|
6
|
+
import re
|
|
7
|
+
|
|
8
|
+
from qtpy import QtWidgets
|
|
9
|
+
|
|
10
|
+
from cutcutcodec.gui.base import CutcutcodecWidget
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class ComboBox(CutcutcodecWidget, QtWidgets.QComboBox):
|
|
14
|
+
"""Main class for uniformization of QComboBox."""
|
|
15
|
+
|
|
16
|
+
def __init__(self, parent):
|
|
17
|
+
super().__init__(parent)
|
|
18
|
+
self._parent = parent
|
|
19
|
+
|
|
20
|
+
self.currentTextChanged.connect(self.text_changed)
|
|
21
|
+
|
|
22
|
+
self.setSizeAdjustPolicy(QtWidgets.QComboBox.SizeAdjustPolicy.AdjustToContents)
|
|
23
|
+
self.setInsertPolicy(QtWidgets.QComboBox.InsertPolicy.InsertAtBottom)
|
|
24
|
+
|
|
25
|
+
@abc.abstractmethod
|
|
26
|
+
def _text_changed(self, name):
|
|
27
|
+
"""Apply the changes."""
|
|
28
|
+
raise NotImplementedError
|
|
29
|
+
|
|
30
|
+
def text_changed(self, element):
|
|
31
|
+
"""Return the action when a new element is selected."""
|
|
32
|
+
if not element: # for avoid catching self.clear()
|
|
33
|
+
return
|
|
34
|
+
pattern = r"(?P<name>[a-z0-9_\-]{2,})([\s:]+.*)?"
|
|
35
|
+
name = re.fullmatch(pattern, element)["name"]
|
|
36
|
+
self._text_changed(name)
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class CoupleLabelWidget(CutcutcodecWidget, QtWidgets.QWidget):
|
|
40
|
+
"""Add a label a the left to a widget."""
|
|
41
|
+
|
|
42
|
+
def __init__(self, parent, label_txt, widget_class):
|
|
43
|
+
super().__init__(parent)
|
|
44
|
+
self._parent = parent
|
|
45
|
+
|
|
46
|
+
self.widget = widget_class(self) # Instanciate a CutcutcodecWidget child.
|
|
47
|
+
grid_layout = QtWidgets.QGridLayout()
|
|
48
|
+
grid_layout.addWidget(QtWidgets.QLabel(label_txt, self), 0, 0)
|
|
49
|
+
grid_layout.addWidget(self.widget, 0, 1)
|
|
50
|
+
self.setLayout(grid_layout)
|
|
51
|
+
|
|
52
|
+
def refresh(self):
|
|
53
|
+
"""Update the elements of this widget and child widgets."""
|
|
54
|
+
self.widget.refresh()
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
|
|
3
|
+
"""Interactive widget for help to choose the export muxer settings."""
|
|
4
|
+
|
|
5
|
+
import pathlib
|
|
6
|
+
|
|
7
|
+
from qtpy import QtCore, QtWidgets
|
|
8
|
+
|
|
9
|
+
from cutcutcodec.core.classes.muxer import AllMuxers, Muxer
|
|
10
|
+
from cutcutcodec.core.compilation.export.compatibility import Compatibilities
|
|
11
|
+
from cutcutcodec.gui.base import CutcutcodecWidget
|
|
12
|
+
from cutcutcodec.gui.export._helper import ComboBox
|
|
13
|
+
from cutcutcodec.gui.export.doc import DocViewer
|
|
14
|
+
from cutcutcodec.gui.tools import WaitCursor
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class MuxerComboBox(ComboBox):
|
|
18
|
+
"""List the availables muxers."""
|
|
19
|
+
|
|
20
|
+
def _text_changed(self, name: str):
|
|
21
|
+
if name == "default":
|
|
22
|
+
name = None
|
|
23
|
+
if self.app.export_settings["muxer"] != name:
|
|
24
|
+
with WaitCursor(self.parent.parent):
|
|
25
|
+
self.app.export_settings["muxer"] = name
|
|
26
|
+
print(f"update muxer: {self.app.export_settings['muxer']}")
|
|
27
|
+
if name is not None:
|
|
28
|
+
suffix = sorted(Muxer(name).extensions)
|
|
29
|
+
suffix = suffix.pop(0) if len(suffix) >= 1 else ""
|
|
30
|
+
else:
|
|
31
|
+
suffix = ""
|
|
32
|
+
if self.app.export_settings["suffix"] != suffix:
|
|
33
|
+
self.app.export_settings["suffix"] = suffix
|
|
34
|
+
print(f"update export suffix: {self.app.export_settings['suffix']}")
|
|
35
|
+
self.parent.parent.refresh() # WindowsExportSettings
|
|
36
|
+
|
|
37
|
+
def available_muxers(self) -> set[str]:
|
|
38
|
+
"""Set of muxers compatible with all the streams.
|
|
39
|
+
|
|
40
|
+
The returned muxers are tested to ensure the compatibility with all the encoders.
|
|
41
|
+
"""
|
|
42
|
+
muxers = sorted(AllMuxers().set)
|
|
43
|
+
tree = self.app.tree()
|
|
44
|
+
|
|
45
|
+
# process by elimination
|
|
46
|
+
for stream, encoder, rate in zip( # starts by audio because is faster than video
|
|
47
|
+
tree.in_select("audio"),
|
|
48
|
+
self.app.export_settings["encoders"]["audio"],
|
|
49
|
+
self.app.export_settings["rates"]["audio"],
|
|
50
|
+
):
|
|
51
|
+
if encoder is not None:
|
|
52
|
+
encoders = [encoder]
|
|
53
|
+
else:
|
|
54
|
+
encoders = sorted(
|
|
55
|
+
self.parent.parent.encoders_widgets[tree.in_index(stream)]
|
|
56
|
+
.widgets["encoder_combo_box"]
|
|
57
|
+
.available_encoders()
|
|
58
|
+
)
|
|
59
|
+
comp = Compatibilities().check( # we should to forward 'profile' as well
|
|
60
|
+
encoders, muxers,
|
|
61
|
+
layout=stream.layout.name,
|
|
62
|
+
rate=rate,
|
|
63
|
+
)
|
|
64
|
+
muxers = [m for m, a in zip(muxers, (comp != "").any(axis=0)) if a]
|
|
65
|
+
for stream, encoder, shape, rate, pix_fmt in zip( # continue elimination with video
|
|
66
|
+
tree.in_select("video"),
|
|
67
|
+
self.app.export_settings["encoders"]["video"],
|
|
68
|
+
self.app.export_settings["shapes"],
|
|
69
|
+
self.app.export_settings["rates"]["video"],
|
|
70
|
+
self.app.export_settings["pix_fmt"],
|
|
71
|
+
):
|
|
72
|
+
if encoder is not None:
|
|
73
|
+
encoders = [encoder]
|
|
74
|
+
else:
|
|
75
|
+
encoders = sorted(
|
|
76
|
+
self.parent.parent.encoders_widgets[tree.in_index(stream)]
|
|
77
|
+
.widgets["encoder_combo_box"]
|
|
78
|
+
.available_encoders()
|
|
79
|
+
)
|
|
80
|
+
comp = Compatibilities().check(
|
|
81
|
+
encoders, muxers,
|
|
82
|
+
shape=shape,
|
|
83
|
+
rate=rate,
|
|
84
|
+
pix_fmt=pix_fmt,
|
|
85
|
+
)
|
|
86
|
+
muxers = [m for m, a in zip(muxers, (comp != "").any(axis=0)) if a]
|
|
87
|
+
return set(muxers)
|
|
88
|
+
|
|
89
|
+
def refresh(self):
|
|
90
|
+
"""Update the elements of this widget and child widgets."""
|
|
91
|
+
self.clear()
|
|
92
|
+
self.addItem(self.app.export_settings["muxer"] or "default")
|
|
93
|
+
for muxer in [None] + sorted(self.available_muxers()):
|
|
94
|
+
if muxer == self.app.export_settings["muxer"]:
|
|
95
|
+
continue
|
|
96
|
+
self.addItem(muxer or "default") # QtGui.QIcon.fromTheme("video-x-generic")
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
class FileNameSelector(CutcutcodecWidget, QtWidgets.QWidget):
|
|
100
|
+
"""File manager for select the filename."""
|
|
101
|
+
|
|
102
|
+
def __init__(self, parent):
|
|
103
|
+
super().__init__(parent)
|
|
104
|
+
self._parent = parent
|
|
105
|
+
|
|
106
|
+
self._textbox = QtWidgets.QLineEdit(self)
|
|
107
|
+
self._textbox.textEdited.connect(self._validate_path)
|
|
108
|
+
|
|
109
|
+
grid_layout = QtWidgets.QGridLayout()
|
|
110
|
+
grid_layout.addWidget(self._textbox, 0, 0)
|
|
111
|
+
button = QtWidgets.QPushButton("Select", self)
|
|
112
|
+
button.clicked.connect(self.filename_dialog)
|
|
113
|
+
button.setAutoDefault(False)
|
|
114
|
+
grid_layout.addWidget(button, 0, 1)
|
|
115
|
+
self.setLayout(grid_layout)
|
|
116
|
+
|
|
117
|
+
def _validate_path(self, new_path):
|
|
118
|
+
"""Try to validate the new path if it is valid."""
|
|
119
|
+
try:
|
|
120
|
+
self.update_path(new_path)
|
|
121
|
+
except ValueError:
|
|
122
|
+
self._textbox.setStyleSheet("background:red;")
|
|
123
|
+
else:
|
|
124
|
+
self._textbox.setStyleSheet("background:none;")
|
|
125
|
+
|
|
126
|
+
def filename_dialog(self):
|
|
127
|
+
"""Open a window to choose a new file name."""
|
|
128
|
+
new_path, _ = QtWidgets.QFileDialog.getSaveFileName(self)
|
|
129
|
+
if new_path:
|
|
130
|
+
try:
|
|
131
|
+
self.update_path(new_path)
|
|
132
|
+
except AssertionError as err:
|
|
133
|
+
QtWidgets.QMessageBox.warning(
|
|
134
|
+
None, "Invalid filename", f"Unable to change the filename {new_path} : {err}"
|
|
135
|
+
)
|
|
136
|
+
|
|
137
|
+
def update_path(self, new_path):
|
|
138
|
+
"""Check that the new path is correct and set the new path in the settings."""
|
|
139
|
+
with WaitCursor(self.parent.parent):
|
|
140
|
+
assert isinstance(new_path, str), new_path.__class__.__name__
|
|
141
|
+
new_path = pathlib.Path(new_path)
|
|
142
|
+
if new_path.is_dir():
|
|
143
|
+
raise ValueError(f"the path {new_path} can not be a directory")
|
|
144
|
+
if not new_path.parent.is_dir():
|
|
145
|
+
raise ValueError(f"the parent of {new_path} has to be a directory")
|
|
146
|
+
if new_path.suffix and all(
|
|
147
|
+
new_path.suffix != suf
|
|
148
|
+
for mux in self.parent.muxer_combo_box.available_muxers()
|
|
149
|
+
for suf in Muxer(mux).extensions
|
|
150
|
+
):
|
|
151
|
+
raise ValueError(f"the suffix {new_path.suffix} not allow")
|
|
152
|
+
|
|
153
|
+
modif = False
|
|
154
|
+
|
|
155
|
+
if self.app.export_settings["parent"] != str(new_path.parent):
|
|
156
|
+
modif = True
|
|
157
|
+
self.app.export_settings["parent"] = str(new_path.parent)
|
|
158
|
+
print(f"update directory: {self.app.export_settings['parent']}")
|
|
159
|
+
if self.app.export_settings["stem"] != new_path.stem:
|
|
160
|
+
modif = True
|
|
161
|
+
self.app.export_settings["stem"] = new_path.stem
|
|
162
|
+
print(f"update file stem: {self.app.export_settings['stem']}")
|
|
163
|
+
if new_path.suffix != self.app.export_settings["suffix"]:
|
|
164
|
+
modif = True
|
|
165
|
+
self.app.export_settings["suffix"] = new_path.suffix
|
|
166
|
+
print(f"update suffix: {self.app.export_settings['suffix']}")
|
|
167
|
+
if new_path.suffix:
|
|
168
|
+
self.app.export_settings["muxer"] = Muxer(new_path.suffix).name
|
|
169
|
+
print(f"update muxer: {self.app.export_settings['muxer']}")
|
|
170
|
+
|
|
171
|
+
if modif:
|
|
172
|
+
self.parent.parent.refresh() # WindowsExportSettings
|
|
173
|
+
|
|
174
|
+
def refresh(self):
|
|
175
|
+
"""Update the elements of this widget and child widgets."""
|
|
176
|
+
new_text = str(
|
|
177
|
+
(
|
|
178
|
+
pathlib.Path(self.app.export_settings['parent'])
|
|
179
|
+
/ self.app.export_settings['stem']
|
|
180
|
+
)
|
|
181
|
+
.with_suffix(self.app.export_settings['suffix'])
|
|
182
|
+
)
|
|
183
|
+
self._textbox.setStyleSheet("background:none;")
|
|
184
|
+
self._textbox.setText(new_text)
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
class ContainerSettings(CutcutcodecWidget, QtWidgets.QWidget):
|
|
188
|
+
"""Settings of the container file."""
|
|
189
|
+
|
|
190
|
+
def __init__(self, parent):
|
|
191
|
+
super().__init__(parent)
|
|
192
|
+
self._parent = parent
|
|
193
|
+
|
|
194
|
+
self.filename_selector = FileNameSelector(self)
|
|
195
|
+
self.muxer_combo_box = MuxerComboBox(self)
|
|
196
|
+
self.muxer_doc_viewer = DocViewer(
|
|
197
|
+
self,
|
|
198
|
+
self.app.export_settings["muxer_settings"],
|
|
199
|
+
lambda w: (
|
|
200
|
+
"" if (muxer := w.app.export_settings["muxer"]) is None
|
|
201
|
+
else Muxer(muxer).doc
|
|
202
|
+
)
|
|
203
|
+
)
|
|
204
|
+
self.muxer_doc_viewer.hide()
|
|
205
|
+
|
|
206
|
+
layout = QtWidgets.QGridLayout()
|
|
207
|
+
self.init_title(layout)
|
|
208
|
+
layout.addWidget(QtWidgets.QLabel("Path:", self), 1, 0)
|
|
209
|
+
layout.addWidget(self.filename_selector, 1, 1)
|
|
210
|
+
layout.addWidget(QtWidgets.QLabel("Muxer:", self), 2, 0)
|
|
211
|
+
layout.addWidget(self.muxer_combo_box, 2, 1)
|
|
212
|
+
layout.addWidget(self.muxer_doc_viewer, 3, 0, 1, 2)
|
|
213
|
+
self.setLayout(layout)
|
|
214
|
+
|
|
215
|
+
def init_title(self, layout):
|
|
216
|
+
"""Return the section title."""
|
|
217
|
+
title = QtWidgets.QLabel("Muxer Settings")
|
|
218
|
+
title.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
|
|
219
|
+
title.setStyleSheet("font-weight: bold")
|
|
220
|
+
layout.addWidget(title, 0, 0, 1, 2)
|
|
221
|
+
|
|
222
|
+
def refresh(self):
|
|
223
|
+
"""Update the elements of this widget and child widgets."""
|
|
224
|
+
self.filename_selector.refresh()
|
|
225
|
+
self.muxer_combo_box.refresh()
|
|
226
|
+
self.muxer_doc_viewer.refresh()
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
|
|
3
|
+
"""Processing of ffmpeg documentation."""
|
|
4
|
+
|
|
5
|
+
import logging
|
|
6
|
+
import re
|
|
7
|
+
|
|
8
|
+
from qtpy import QtGui, QtWidgets
|
|
9
|
+
|
|
10
|
+
from cutcutcodec.gui.base import CutcutcodecWidget
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class DocViewer(CutcutcodecWidget, QtWidgets.QWidget):
|
|
14
|
+
"""Allow to show and hide a documentation."""
|
|
15
|
+
|
|
16
|
+
def __init__(self, parent, dict_settings: dict[str, str], doc_getter: callable):
|
|
17
|
+
super().__init__(parent)
|
|
18
|
+
self._parent = parent
|
|
19
|
+
self.dict_settings = dict_settings
|
|
20
|
+
self.doc_getter = doc_getter
|
|
21
|
+
|
|
22
|
+
scroll_area = QtWidgets.QScrollArea(self)
|
|
23
|
+
scroll_area.setWidgetResizable(True)
|
|
24
|
+
self._doc_label = QtWidgets.QLabel(scroll_area)
|
|
25
|
+
font = QtGui.QFont("", -1)
|
|
26
|
+
font.setFixedPitch(True)
|
|
27
|
+
if not QtGui.QFontInfo(font).fixedPitch():
|
|
28
|
+
logging.warning("no fixed pitch font found")
|
|
29
|
+
self._doc_label.setFont(font)
|
|
30
|
+
scroll_area.setWidget(self._doc_label)
|
|
31
|
+
|
|
32
|
+
layout = QtWidgets.QGridLayout()
|
|
33
|
+
layout.addWidget(QtWidgets.QLabel("Documentation:", self), 0, 0)
|
|
34
|
+
layout.addWidget(scroll_area, 0, 1)
|
|
35
|
+
|
|
36
|
+
layout.addWidget(QtWidgets.QLabel("Custom Settings:"), 1, 0)
|
|
37
|
+
self._params_textbox = QtWidgets.QLineEdit(self)
|
|
38
|
+
self._params_textbox.textEdited.connect(self.validate)
|
|
39
|
+
layout.addWidget(self._params_textbox, 1, 1)
|
|
40
|
+
|
|
41
|
+
self.setLayout(layout)
|
|
42
|
+
|
|
43
|
+
def refresh(self):
|
|
44
|
+
"""Update the doc content and displaying."""
|
|
45
|
+
doc_content = self.doc_getter(self)
|
|
46
|
+
self._doc_label.setText(doc_content)
|
|
47
|
+
self._params_textbox.setText(" ".join(f"-{k} {v}" for k, v in self.dict_settings.items()))
|
|
48
|
+
if doc_content:
|
|
49
|
+
self.show()
|
|
50
|
+
else:
|
|
51
|
+
self.hide()
|
|
52
|
+
|
|
53
|
+
def validate(self, text):
|
|
54
|
+
"""Update and checks the specific settings."""
|
|
55
|
+
if re.fullmatch(r"\s*", text): # empty string
|
|
56
|
+
self.dict_settings.clear()
|
|
57
|
+
self._params_textbox.setStyleSheet("background:none;")
|
|
58
|
+
return
|
|
59
|
+
if not re.fullmatch(r"(?:-[a-zA-Z][a-zA-Z0-9_:-]*\s+.*?\w\s+)+", text+" "): # no conform
|
|
60
|
+
self._params_textbox.setStyleSheet("background:red;")
|
|
61
|
+
return
|
|
62
|
+
|
|
63
|
+
self.dict_settings.clear()
|
|
64
|
+
for match in re.finditer(r"-(?P<label>[a-zA-Z][a-zA-Z0-9_:-]*)\s+(?P<set>.*?\w+)", text):
|
|
65
|
+
self.dict_settings[match["label"]] = match["set"]
|
|
66
|
+
print(f"update settings: {self.dict_settings}")
|
|
67
|
+
self._params_textbox.setStyleSheet("background:none;")
|