kazesynth 0.1.0a0__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 (80) hide show
  1. kazesynth-0.1.0a0/.gitignore +229 -0
  2. kazesynth-0.1.0a0/LICENSE +291 -0
  3. kazesynth-0.1.0a0/PKG-INFO +144 -0
  4. kazesynth-0.1.0a0/README.md +119 -0
  5. kazesynth-0.1.0a0/pyproject.toml +123 -0
  6. kazesynth-0.1.0a0/src/kazesynth/__init__.py +1 -0
  7. kazesynth-0.1.0a0/src/kazesynth/__main__.py +5 -0
  8. kazesynth-0.1.0a0/src/kazesynth/adapters/__init__.py +19 -0
  9. kazesynth-0.1.0a0/src/kazesynth/adapters/base.py +178 -0
  10. kazesynth-0.1.0a0/src/kazesynth/adapters/flac.py +57 -0
  11. kazesynth-0.1.0a0/src/kazesynth/adapters/mkvmerge.py +63 -0
  12. kazesynth-0.1.0a0/src/kazesynth/adapters/opusenc.py +56 -0
  13. kazesynth-0.1.0a0/src/kazesynth/adapters/qaac.py +59 -0
  14. kazesynth-0.1.0a0/src/kazesynth/adapters/x264.py +97 -0
  15. kazesynth-0.1.0a0/src/kazesynth/adapters/x265.py +111 -0
  16. kazesynth-0.1.0a0/src/kazesynth/adapters/x26x.py +136 -0
  17. kazesynth-0.1.0a0/src/kazesynth/cli/__init__.py +50 -0
  18. kazesynth-0.1.0a0/src/kazesynth/cli/cmd/__init__.py +0 -0
  19. kazesynth-0.1.0a0/src/kazesynth/cli/cmd/add.py +29 -0
  20. kazesynth-0.1.0a0/src/kazesynth/cli/cmd/cancel.py +43 -0
  21. kazesynth-0.1.0a0/src/kazesynth/cli/cmd/daemon.py +40 -0
  22. kazesynth-0.1.0a0/src/kazesynth/cli/cmd/encode.py +97 -0
  23. kazesynth-0.1.0a0/src/kazesynth/cli/cmd/env.py +17 -0
  24. kazesynth-0.1.0a0/src/kazesynth/cli/cmd/export.py +28 -0
  25. kazesynth-0.1.0a0/src/kazesynth/cli/cmd/jobs.py +37 -0
  26. kazesynth-0.1.0a0/src/kazesynth/cli/cmd/probe.py +25 -0
  27. kazesynth-0.1.0a0/src/kazesynth/cli/cmd/queue.py +52 -0
  28. kazesynth-0.1.0a0/src/kazesynth/cli/cmd/remove.py +31 -0
  29. kazesynth-0.1.0a0/src/kazesynth/cli/cmd/retry.py +23 -0
  30. kazesynth-0.1.0a0/src/kazesynth/cli/cmd/run.py +50 -0
  31. kazesynth-0.1.0a0/src/kazesynth/cli/cmd/stop.py +18 -0
  32. kazesynth-0.1.0a0/src/kazesynth/cli/cmd/template.py +25 -0
  33. kazesynth-0.1.0a0/src/kazesynth/cli/cmd/tui.py +13 -0
  34. kazesynth-0.1.0a0/src/kazesynth/cli/helpers.py +125 -0
  35. kazesynth-0.1.0a0/src/kazesynth/client.py +310 -0
  36. kazesynth-0.1.0a0/src/kazesynth/config.py +408 -0
  37. kazesynth-0.1.0a0/src/kazesynth/control.py +185 -0
  38. kazesynth-0.1.0a0/src/kazesynth/envs.py +92 -0
  39. kazesynth-0.1.0a0/src/kazesynth/exception.py +18 -0
  40. kazesynth-0.1.0a0/src/kazesynth/jobfile.py +256 -0
  41. kazesynth-0.1.0a0/src/kazesynth/lock.py +59 -0
  42. kazesynth-0.1.0a0/src/kazesynth/model.py +123 -0
  43. kazesynth-0.1.0a0/src/kazesynth/paths.py +60 -0
  44. kazesynth-0.1.0a0/src/kazesynth/runner.py +388 -0
  45. kazesynth-0.1.0a0/src/kazesynth/scheduler.py +492 -0
  46. kazesynth-0.1.0a0/src/kazesynth/schema.sql +31 -0
  47. kazesynth-0.1.0a0/src/kazesynth/server.py +304 -0
  48. kazesynth-0.1.0a0/src/kazesynth/store.py +253 -0
  49. kazesynth-0.1.0a0/src/kazesynth/tools.py +24 -0
  50. kazesynth-0.1.0a0/src/kazesynth/types.py +3 -0
  51. kazesynth-0.1.0a0/src/kazesynth/ui/__init__.py +3 -0
  52. kazesynth-0.1.0a0/src/kazesynth/ui/app.py +220 -0
  53. kazesynth-0.1.0a0/src/kazesynth/ui/app.tcss +120 -0
  54. kazesynth-0.1.0a0/src/kazesynth/ui/base.py +152 -0
  55. kazesynth-0.1.0a0/src/kazesynth/ui/commands.py +40 -0
  56. kazesynth-0.1.0a0/src/kazesynth/ui/dialogs.py +134 -0
  57. kazesynth-0.1.0a0/src/kazesynth/ui/dialogs.tcss +20 -0
  58. kazesynth-0.1.0a0/src/kazesynth/ui/live.py +72 -0
  59. kazesynth-0.1.0a0/src/kazesynth/ui/screens/__init__.py +0 -0
  60. kazesynth-0.1.0a0/src/kazesynth/ui/screens/jobs.py +349 -0
  61. kazesynth-0.1.0a0/src/kazesynth/ui/screens/jobs.tcss +31 -0
  62. kazesynth-0.1.0a0/src/kazesynth/ui/screens/menu.py +79 -0
  63. kazesynth-0.1.0a0/src/kazesynth/ui/screens/menu.tcss +27 -0
  64. kazesynth-0.1.0a0/src/kazesynth/ui/screens/new_job.py +617 -0
  65. kazesynth-0.1.0a0/src/kazesynth/ui/screens/new_job.tcss +16 -0
  66. kazesynth-0.1.0a0/src/kazesynth/ui/screens/presets.py +412 -0
  67. kazesynth-0.1.0a0/src/kazesynth/ui/screens/queues.py +125 -0
  68. kazesynth-0.1.0a0/src/kazesynth/ui/screens/settings.py +97 -0
  69. kazesynth-0.1.0a0/src/kazesynth/workerio.py +134 -0
  70. kazesynth-0.1.0a0/src/kazesynth/workerpkg.py +53 -0
  71. kazesynth-0.1.0a0/src/kazesynth_worker/__init__.py +5 -0
  72. kazesynth-0.1.0a0/src/kazesynth_worker/__main__.py +78 -0
  73. kazesynth-0.1.0a0/src/kazesynth_worker/commands.py +182 -0
  74. kazesynth-0.1.0a0/src/kazesynth_worker/exception.py +1 -0
  75. kazesynth-0.1.0a0/src/kazesynth_worker/protocol.py +187 -0
  76. kazesynth-0.1.0a0/src/kazesynth_worker/pyrefly.toml +9 -0
  77. kazesynth-0.1.0a0/src/kazesynth_worker/script.py +98 -0
  78. kazesynth-0.1.0a0/src/kazesynth_worker/streams.py +104 -0
  79. kazesynth-0.1.0a0/src/kazesynth_worker/wave.py +61 -0
  80. kazesynth-0.1.0a0/src/kazesynth_worker/y4m.py +15 -0
@@ -0,0 +1,229 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py.cover
50
+ *.lcov
51
+ .hypothesis/
52
+ .pytest_cache/
53
+ cover/
54
+
55
+ # Translations
56
+ *.mo
57
+ *.pot
58
+
59
+ # Django stuff:
60
+ *.log
61
+ local_settings.py
62
+ db.sqlite3
63
+ db.sqlite3-journal
64
+ db.sqlite3-wal
65
+ db.sqlite3-shm
66
+
67
+ # Flask stuff:
68
+ instance/
69
+ .webassets-cache
70
+
71
+ # Scrapy stuff:
72
+ .scrapy
73
+
74
+ # Sphinx documentation
75
+ docs/_build/
76
+
77
+ # PyBuilder
78
+ .pybuilder/
79
+ target/
80
+
81
+ # Jupyter Notebook
82
+ .ipynb_checkpoints
83
+
84
+ # IPython
85
+ profile_default/
86
+ ipython_config.py
87
+
88
+ # pyenv
89
+ # For a library or package, you might want to ignore these files since the code is
90
+ # intended to run in multiple environments; otherwise, check them in:
91
+ # .python-version
92
+
93
+ # pipenv
94
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
95
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
96
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
97
+ # install all needed dependencies.
98
+ # Pipfile.lock
99
+
100
+ # uv
101
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
102
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
103
+ # commonly ignored for libraries.
104
+ # uv.lock
105
+
106
+ # poetry
107
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
108
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
109
+ # commonly ignored for libraries.
110
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
111
+ # poetry.lock
112
+ # poetry.toml
113
+
114
+ # pdm
115
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
116
+ # pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
117
+ # https://pdm-project.org/en/latest/usage/project/#working-with-version-control
118
+ # pdm.lock
119
+ # pdm.toml
120
+ .pdm-python
121
+ .pdm-build/
122
+
123
+ # pixi
124
+ # Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
125
+ # pixi.lock
126
+ # Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
127
+ # in the .venv directory. It is recommended not to include this directory in version control.
128
+ .pixi/*
129
+ !.pixi/config.toml
130
+
131
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
132
+ __pypackages__/
133
+
134
+ # Celery stuff
135
+ celerybeat-schedule*
136
+ celerybeat.pid
137
+
138
+ # Redis
139
+ *.rdb
140
+ *.aof
141
+ *.pid
142
+
143
+ # RabbitMQ
144
+ mnesia/
145
+ rabbitmq/
146
+ rabbitmq-data/
147
+
148
+ # ActiveMQ
149
+ activemq-data/
150
+
151
+ # SageMath parsed files
152
+ *.sage.py
153
+
154
+ # Environments
155
+ .env
156
+ .envrc
157
+ .venv
158
+ env/
159
+ venv/
160
+ ENV/
161
+ env.bak/
162
+ venv.bak/
163
+
164
+ # Conda environments
165
+ conda-meta/
166
+
167
+ # Spyder project settings
168
+ .spyderproject
169
+ .spyproject
170
+
171
+ # Rope project settings
172
+ .ropeproject
173
+
174
+ # mkdocs/Zensical documentation
175
+ /site
176
+
177
+ # mypy
178
+ .mypy_cache/
179
+ .dmypy.json
180
+ dmypy.json
181
+
182
+ # Pyre type checker
183
+ .pyre/
184
+
185
+ # pytype static type analyzer
186
+ .pytype/
187
+
188
+ # Cython debug symbols
189
+ cython_debug/
190
+
191
+ # PyCharm
192
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
193
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
194
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
195
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
196
+ # .idea/
197
+
198
+ # Abstra
199
+ # Abstra is an AI-powered process automation framework.
200
+ # Ignore directories containing user credentials, local state, and settings.
201
+ # Learn more at https://abstra.io/docs
202
+ .abstra/
203
+
204
+ # Visual Studio Code
205
+ # Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore that
206
+ # can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
207
+ # and can be added to the global gitignore or merged into this file. However, if you prefer, you
208
+ # could uncomment the following to ignore the entire vscode folder
209
+ # .vscode/
210
+ # Temporary file for partial code execution
211
+ tempCodeRunnerFile.py
212
+
213
+ # Ruff stuff:
214
+ .ruff_cache/
215
+
216
+ # PyPI configuration file
217
+ .pypirc
218
+
219
+ # Marimo
220
+ marimo/_static/
221
+ marimo/_lsp/
222
+ __marimo__/
223
+
224
+ # Streamlit
225
+ .streamlit/secrets.toml
226
+
227
+ #
228
+ AGENTS.md
229
+ CLAUDE.md
@@ -0,0 +1,291 @@
1
+ EUROPEAN UNION PUBLIC LICENCE v. 1.2
2
+ EUPL © the European Union 2007, 2016
3
+
4
+ This European Union Public Licence (the ‘EUPL’) applies to the Work (as
5
+ defined below) which is provided under the terms of this Licence. Any use of
6
+ the Work, other than as authorised under this Licence is prohibited (to the
7
+ extent such use is covered by a right of the copyright holder of the Work).
8
+
9
+ The Work is provided under the terms of this Licence when the Licensor (as
10
+ defined below) has placed the following notice immediately following the
11
+ copyright notice for the Work:
12
+
13
+ Licensed under the EUPL
14
+
15
+ or has expressed by any other means his willingness to license under the EUPL.
16
+
17
+ 1. Definitions
18
+
19
+ In this Licence, the following terms have the following meaning:
20
+
21
+ - ‘The Licence’: this Licence.
22
+
23
+ - ‘The Original Work’: the work or software distributed or communicated by the
24
+ Licensor under this Licence, available as Source Code and also as Executable
25
+ Code as the case may be.
26
+
27
+ - ‘Derivative Works’: the works or software that could be created by the
28
+ Licensee, based upon the Original Work or modifications thereof. This
29
+ Licence does not define the extent of modification or dependence on the
30
+ Original Work required in order to classify a work as a Derivative Work;
31
+ this extent is determined by copyright law applicable in the country
32
+ mentioned in Article 15.
33
+
34
+ - ‘The Work’: the Original Work or its Derivative Works.
35
+
36
+ - ‘The Source Code’: the human-readable form of the Work which is the most
37
+ convenient for people to study and modify.
38
+
39
+ - ‘The Executable Code’: any code which has generally been compiled and which
40
+ is meant to be interpreted by a computer as a program.
41
+
42
+ - ‘The Licensor’: the natural or legal person that distributes or communicates
43
+ the Work under the Licence.
44
+
45
+ - ‘Contributor(s)’: any natural or legal person who modifies the Work under
46
+ the Licence, or otherwise contributes to the creation of a Derivative Work.
47
+
48
+ - ‘The Licensee’ or ‘You’: any natural or legal person who makes any usage of
49
+ the Work under the terms of the Licence.
50
+
51
+ - ‘Distribution’ or ‘Communication’: any act of selling, giving, lending,
52
+ renting, distributing, communicating, transmitting, or otherwise making
53
+ available, online or offline, copies of the Work or providing access to its
54
+ essential functionalities at the disposal of any other natural or legal
55
+ person.
56
+
57
+ 2. Scope of the rights granted by the Licence
58
+
59
+ The Licensor hereby grants You a worldwide, royalty-free, non-exclusive,
60
+ sublicensable licence to do the following, for the duration of copyright
61
+ vested in the Original Work:
62
+
63
+ - use the Work in any circumstance and for all usage,
64
+ - reproduce the Work,
65
+ - modify the Work, and make Derivative Works based upon the Work,
66
+ - communicate to the public, including the right to make available or display
67
+ the Work or copies thereof to the public and perform publicly, as the case
68
+ may be, the Work,
69
+ - distribute the Work or copies thereof,
70
+ - lend and rent the Work or copies thereof,
71
+ - sublicense rights in the Work or copies thereof.
72
+
73
+ Those rights can be exercised on any media, supports and formats, whether now
74
+ known or later invented, as far as the applicable law permits so.
75
+
76
+ In the countries where moral rights apply, the Licensor waives his right to
77
+ exercise his moral right to the extent allowed by law in order to make
78
+ effective the licence of the economic rights here above listed.
79
+
80
+ The Licensor grants to the Licensee royalty-free, non-exclusive usage rights
81
+ to any patents held by the Licensor, to the extent necessary to make use of
82
+ the rights granted on the Work under this Licence.
83
+
84
+ 3. Communication of the Source Code
85
+
86
+ The Licensor may provide the Work either in its Source Code form, or as
87
+ Executable Code. If the Work is provided as Executable Code, the Licensor
88
+ provides in addition a machine-readable copy of the Source Code of the Work
89
+ along with each copy of the Work that the Licensor distributes or indicates,
90
+ in a notice following the copyright notice attached to the Work, a repository
91
+ where the Source Code is easily and freely accessible for as long as the
92
+ Licensor continues to distribute or communicate the Work.
93
+
94
+ 4. Limitations on copyright
95
+
96
+ Nothing in this Licence is intended to deprive the Licensee of the benefits
97
+ from any exception or limitation to the exclusive rights of the rights owners
98
+ in the Work, of the exhaustion of those rights or of other applicable
99
+ limitations thereto.
100
+
101
+ 5. Obligations of the Licensee
102
+
103
+ The grant of the rights mentioned above is subject to some restrictions and
104
+ obligations imposed on the Licensee. Those obligations are the following:
105
+
106
+ Attribution right: The Licensee shall keep intact all copyright, patent or
107
+ trademarks notices and all notices that refer to the Licence and to the
108
+ disclaimer of warranties. The Licensee must include a copy of such notices and
109
+ a copy of the Licence with every copy of the Work he/she distributes or
110
+ communicates. The Licensee must cause any Derivative Work to carry prominent
111
+ notices stating that the Work has been modified and the date of modification.
112
+
113
+ Copyleft clause: If the Licensee distributes or communicates copies of the
114
+ Original Works or Derivative Works, this Distribution or Communication will be
115
+ done under the terms of this Licence or of a later version of this Licence
116
+ unless the Original Work is expressly distributed only under this version of
117
+ the Licence — for example by communicating ‘EUPL v. 1.2 only’. The Licensee
118
+ (becoming Licensor) cannot offer or impose any additional terms or conditions
119
+ on the Work or Derivative Work that alter or restrict the terms of the
120
+ Licence.
121
+
122
+ Compatibility clause: If the Licensee Distributes or Communicates Derivative
123
+ Works or copies thereof based upon both the Work and another work licensed
124
+ under a Compatible Licence, this Distribution or Communication can be done
125
+ under the terms of this Compatible Licence. For the sake of this clause,
126
+ ‘Compatible Licence’ refers to the licences listed in the appendix attached to
127
+ this Licence. Should the Licensee's obligations under the Compatible Licence
128
+ conflict with his/her obligations under this Licence, the obligations of the
129
+ Compatible Licence shall prevail.
130
+
131
+ Provision of Source Code: When distributing or communicating copies of the
132
+ Work, the Licensee will provide a machine-readable copy of the Source Code or
133
+ indicate a repository where this Source will be easily and freely available
134
+ for as long as the Licensee continues to distribute or communicate the Work.
135
+
136
+ Legal Protection: This Licence does not grant permission to use the trade
137
+ names, trademarks, service marks, or names of the Licensor, except as required
138
+ for reasonable and customary use in describing the origin of the Work and
139
+ reproducing the content of the copyright notice.
140
+
141
+ 6. Chain of Authorship
142
+
143
+ The original Licensor warrants that the copyright in the Original Work granted
144
+ hereunder is owned by him/her or licensed to him/her and that he/she has the
145
+ power and authority to grant the Licence.
146
+
147
+ Each Contributor warrants that the copyright in the modifications he/she
148
+ brings to the Work are owned by him/her or licensed to him/her and that he/she
149
+ has the power and authority to grant the Licence.
150
+
151
+ Each time You accept the Licence, the original Licensor and subsequent
152
+ Contributors grant You a licence to their contributions to the Work, under the
153
+ terms of this Licence.
154
+
155
+ 7. Disclaimer of Warranty
156
+
157
+ The Work is a work in progress, which is continuously improved by numerous
158
+ Contributors. It is not a finished work and may therefore contain defects or
159
+ ‘bugs’ inherent to this type of development.
160
+
161
+ For the above reason, the Work is provided under the Licence on an ‘as is’
162
+ basis and without warranties of any kind concerning the Work, including
163
+ without limitation merchantability, fitness for a particular purpose, absence
164
+ of defects or errors, accuracy, non-infringement of intellectual property
165
+ rights other than copyright as stated in Article 6 of this Licence.
166
+
167
+ This disclaimer of warranty is an essential part of the Licence and a
168
+ condition for the grant of any rights to the Work.
169
+
170
+ 8. Disclaimer of Liability
171
+
172
+ Except in the cases of wilful misconduct or damages directly caused to natural
173
+ persons, the Licensor will in no event be liable for any direct or indirect,
174
+ material or moral, damages of any kind, arising out of the Licence or of the
175
+ use of the Work, including without limitation, damages for loss of goodwill,
176
+ work stoppage, computer failure or malfunction, loss of data or any commercial
177
+ damage, even if the Licensor has been advised of the possibility of such
178
+ damage. However, the Licensor will be liable under statutory product liability
179
+ laws as far such laws apply to the Work.
180
+
181
+ 9. Additional agreements
182
+
183
+ While distributing the Work, You may choose to conclude an additional
184
+ agreement, defining obligations or services consistent with this Licence.
185
+ However, if accepting obligations, You may act only on your own behalf and on
186
+ your sole responsibility, not on behalf of the original Licensor or any other
187
+ Contributor, and only if You agree to indemnify, defend, and hold each
188
+ Contributor harmless for any liability incurred by, or claims asserted against
189
+ such Contributor by the fact You have accepted any warranty or additional
190
+ liability.
191
+
192
+ 10. Acceptance of the Licence
193
+
194
+ The provisions of this Licence can be accepted by clicking on an icon ‘I
195
+ agree’ placed under the bottom of a window displaying the text of this Licence
196
+ or by affirming consent in any other similar way, in accordance with the rules
197
+ of applicable law. Clicking on that icon indicates your clear and irrevocable
198
+ acceptance of this Licence and all of its terms and conditions.
199
+
200
+ Similarly, you irrevocably accept this Licence and all of its terms and
201
+ conditions by exercising any rights granted to You by Article 2 of this
202
+ Licence, such as the use of the Work, the creation by You of a Derivative Work
203
+ or the Distribution or Communication by You of the Work or copies thereof.
204
+
205
+ 11. Information to the public
206
+
207
+ In case of any Distribution or Communication of the Work by means of
208
+ electronic communication by You (for example, by offering to download the Work
209
+ from a remote location) the distribution channel or media (for example, a
210
+ website) must at least provide to the public the information requested by the
211
+ applicable law regarding the Licensor, the Licence and the way it may be
212
+ accessible, concluded, stored and reproduced by the Licensee.
213
+
214
+ 12. Termination of the Licence
215
+
216
+ The Licence and the rights granted hereunder will terminate automatically upon
217
+ any breach by the Licensee of the terms of the Licence.
218
+
219
+ Such a termination will not terminate the licences of any person who has
220
+ received the Work from the Licensee under the Licence, provided such persons
221
+ remain in full compliance with the Licence.
222
+
223
+ 13. Miscellaneous
224
+
225
+ Without prejudice of Article 9 above, the Licence represents the complete
226
+ agreement between the Parties as to the Work.
227
+
228
+ If any provision of the Licence is invalid or unenforceable under applicable
229
+ law, this will not affect the validity or enforceability of the Licence as a
230
+ whole. Such provision will be construed or reformed so as necessary to make it
231
+ valid and enforceable.
232
+
233
+ The European Commission may publish other linguistic versions or new versions
234
+ of this Licence or updated versions of the Appendix, so far this is required
235
+ and reasonable, without reducing the scope of the rights granted by the
236
+ Licence. New versions of the Licence will be published with a unique version
237
+ number.
238
+
239
+ All linguistic versions of this Licence, approved by the European Commission,
240
+ have identical value. Parties can take advantage of the linguistic version of
241
+ their choice.
242
+
243
+ 14. Jurisdiction
244
+
245
+ Without prejudice to specific agreement between parties,
246
+
247
+ - any litigation resulting from the interpretation of this License, arising
248
+ between the European Union institutions, bodies, offices or agencies, as a
249
+ Licensor, and any Licensee, will be subject to the jurisdiction of the Court
250
+ of Justice of the European Union, as laid down in article 272 of the Treaty
251
+ on the Functioning of the European Union,
252
+
253
+ - any litigation arising between other parties and resulting from the
254
+ interpretation of this License, will be subject to the exclusive
255
+ jurisdiction of the competent court where the Licensor resides or conducts
256
+ its primary business.
257
+
258
+ 15. Applicable Law
259
+
260
+ Without prejudice to specific agreement between parties,
261
+
262
+ - this Licence shall be governed by the law of the European Union Member State
263
+ where the Licensor has his seat, resides or has his registered office,
264
+
265
+ - this licence shall be governed by Belgian law if the Licensor has no seat,
266
+ residence or registered office inside a European Union Member State.
267
+
268
+ Appendix
269
+
270
+ ‘Compatible Licences’ according to Article 5 EUPL are:
271
+
272
+ - GNU General Public License (GPL) v. 2, v. 3
273
+ - GNU Affero General Public License (AGPL) v. 3
274
+ - Open Software License (OSL) v. 2.1, v. 3.0
275
+ - Eclipse Public License (EPL) v. 1.0
276
+ - CeCILL v. 2.0, v. 2.1
277
+ - Mozilla Public Licence (MPL) v. 2
278
+ - GNU Lesser General Public Licence (LGPL) v. 2.1, v. 3
279
+ - Creative Commons Attribution-ShareAlike v. 3.0 Unported (CC BY-SA 3.0) for
280
+ works other than software
281
+ - European Union Public Licence (EUPL) v. 1.1, v. 1.2
282
+ - Québec Free and Open-Source Licence — Reciprocity (LiLiQ-R) or Strong
283
+ Reciprocity (LiLiQ-R+).
284
+
285
+ The European Commission may update this Appendix to later versions of the
286
+ above licences without producing a new version of the EUPL, as long as they
287
+ provide the rights granted in Article 2 of this Licence and protect the
288
+ covered Source Code from exclusive appropriation.
289
+
290
+ All other changes or additions to this Appendix require the production of a
291
+ new EUPL version.
@@ -0,0 +1,144 @@
1
+ Metadata-Version: 2.5
2
+ Name: kazesynth
3
+ Version: 0.1.0a0
4
+ Summary: A terminal UI and CLI to queue and run VapourSynth encodes.
5
+ Author-email: Vardë <ichunjo.le.terrible@gmail.com>
6
+ License-Expression: EUPL-1.2
7
+ License-File: LICENSE
8
+ Keywords: cli,encoding,job-queue,kaze,textual,tui,vapoursynth,video,x265
9
+ Classifier: Development Status :: 3 - Alpha
10
+ Classifier: Environment :: Console
11
+ Classifier: Intended Audience :: End Users/Desktop
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Programming Language :: Python :: 3 :: Only
15
+ Classifier: Programming Language :: Python :: 3.15
16
+ Classifier: Topic :: Multimedia :: Video
17
+ Classifier: Topic :: Multimedia :: Video :: Conversion
18
+ Classifier: Typing :: Typed
19
+ Requires-Python: >=3.15
20
+ Requires-Dist: cyclopts>=5.5.3
21
+ Requires-Dist: platformdirs>=4.14.8
22
+ Requires-Dist: textual>=8.2.8
23
+ Requires-Dist: tomlkit>=0.15.3
24
+ Description-Content-Type: text/markdown
25
+
26
+ # Kazé
27
+
28
+ <div align="center">
29
+ <img src="https://raw.githubusercontent.com/Ichunjo/kazesynth/refs/heads/master/assets/home.svg" height="500"/>
30
+
31
+ A lightweight terminal UI for queuing and managing VapourSynth encode jobs.
32
+ </div>
33
+
34
+ ## Installation
35
+
36
+ ```bash
37
+ uv tool install --python 3.15 kazesynth
38
+ ```
39
+
40
+ ## TUI
41
+
42
+ ```bash
43
+ uv run kaze
44
+ ```
45
+
46
+ ## Job files and CLI
47
+
48
+ `kaze template ep01.toml` writes a job file with comments that list every field.
49
+
50
+ ```toml
51
+ script = "ep01.vpy"
52
+
53
+ [[track]]
54
+ node = 0
55
+ preset = "x265-slow" # from <config>/presets/x265-slow.toml
56
+ options = { crf = 16 } # optional: replaces crf from the preset
57
+
58
+ [[track]]
59
+ node = 1
60
+ tool = "flac"
61
+
62
+ [mux]
63
+ output = "Episode 01.mkv"
64
+ ```
65
+
66
+ ```bash
67
+ uv run kaze run ep01.toml # add the job and run the queue until it is idle
68
+ uv run kaze run --background # the same, in a background process
69
+ uv run kaze add ep02.toml --queue night
70
+ uv run kaze jobs
71
+ uv run kaze cancel 3
72
+ uv run kaze retry 3 # done tasks are skipped
73
+ uv run kaze stop # stop the process that runs jobs
74
+ ```
75
+
76
+ `kaze --help` lists all the commands. Only one Kazé process runs jobs at a time, and the TUI and the other commands talk to it.
77
+
78
+ Without `python` in the job, Kazé uses a `.venv` or `venv` folder next to the script or in a parent folder.
79
+ If it finds none, it tries the last interpreter used for that folder.
80
+ After that, it uses `default_python` from the settings.
81
+
82
+ Without `binary` in a track or preset, Kazé uses `[tools]` from the settings, and then PATH.
83
+
84
+ - A `binary` with a folder part, like `tools/x265.exe`, is a path.
85
+ - A relative path starts at the folder of the file that sets it: the job file, the preset file or the project file.
86
+ - A name without a folder, like `x265-mod`, is found in PATH.
87
+
88
+ The settings live in `<config>/settings.toml` (see `src/kazesynth/config.py`). To keep all Kazé files in one folder, set `KAZE_HOME`.
89
+
90
+ ## Project presets
91
+
92
+ A project can have its own presets.
93
+ You write them in a `kaze.toml` file, or in the `[tool.kaze]` table of `pyproject.toml`:
94
+
95
+ ```toml
96
+ # kaze.toml
97
+ [presets.x265-show]
98
+ tool = "x265"
99
+ options = { crf = 15, preset = "slower" }
100
+
101
+ # the same preset in pyproject.toml
102
+ [tool.kaze.presets.x265-show]
103
+ tool = "x265"
104
+ options = { crf = 15, preset = "slower" }
105
+ ```
106
+
107
+ A project preset can build on a global preset, like a job track can:
108
+
109
+ ```toml
110
+ [presets.x265-slow]
111
+ preset = "x265-slow" # the global preset with the same name, or any other global preset
112
+ options = { crf = 20 } # replaces only crf
113
+ ```
114
+
115
+ `options` replace the options with the same name and `extra_args` come after the arguments of the global preset.
116
+ The base must be a global preset, not another project preset.
117
+ A change to the global preset also changes the project presets built on it.
118
+
119
+ - A job file uses the project of its own folder, or of the closest parent folder that has one. In one folder, `kaze.toml` wins over `pyproject.toml`.
120
+ - A project preset wins over a global preset with the same name.
121
+ - Project presets are copied into the job when you add it, like global presets. Editing the file later does not change queued jobs.
122
+ - The TUI uses the project of the folder you open it in, for `/presets` and `/new`.
123
+ `/presets` shows where each preset comes from, and you can copy a project preset to a global preset there.
124
+
125
+ To change or delete a project preset, you must edit the file. Kazé never writes to it.
126
+
127
+ ## Flags added for x264 and x265
128
+
129
+ Kazé reads the props of frame 0 and adds these flags:
130
+
131
+ | Flag | From |
132
+ | --------------------------- | -------------------------------------------------------- |
133
+ | `--output-depth` | the bit depth of the clip |
134
+ | `--colormatrix` | `_Matrix` |
135
+ | `--transfer` | `_Transfer` |
136
+ | `--colorprim` | `_Primaries` |
137
+ | `--range` | `_Range` (`tv`/`pc` for x264, `limited`/`full` for x265) |
138
+ | `--input-range` (x264 only) | `_Range` |
139
+ | `--chromaloc` | `_ChromaLocation` |
140
+ | `--sar` | `_SARNum` and `_SARDen` |
141
+
142
+ - A flag you set yourself always wins. `-D` counts as `--output-depth`.
143
+ - A missing or unspecified prop sends nothing. Kazé never guesses.
144
+ - If you set `--input-range` for x264, Kazé does not send `--range` either.