cutcutcodec 1.0.1__tar.gz → 1.0.3__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.

Potentially problematic release.


This version of cutcutcodec might be problematic. Click here for more details.

Files changed (211) hide show
  1. {cutcutcodec-1.0.1/cutcutcodec.egg-info → cutcutcodec-1.0.3}/PKG-INFO +101 -77
  2. {cutcutcodec-1.0.1 → cutcutcodec-1.0.3}/README.rst +68 -61
  3. cutcutcodec-1.0.3/c_build.py +33 -0
  4. cutcutcodec-1.0.3/cutcutcodec/__init__.py +6 -0
  5. {cutcutcodec-1.0.1 → cutcutcodec-1.0.3}/cutcutcodec/__main__.py +5 -11
  6. {cutcutcodec-1.0.1 → cutcutcodec-1.0.3}/cutcutcodec/core/generation/video/fractal/fractal.c +4 -1
  7. {cutcutcodec-1.0.1 → cutcutcodec-1.0.3}/cutcutcodec/utils.py +10 -17
  8. {cutcutcodec-1.0.1 → cutcutcodec-1.0.3/cutcutcodec.egg-info}/PKG-INFO +101 -77
  9. cutcutcodec-1.0.3/cutcutcodec.egg-info/SOURCES.txt +14 -0
  10. {cutcutcodec-1.0.1 → cutcutcodec-1.0.3}/cutcutcodec.egg-info/requires.txt +10 -4
  11. {cutcutcodec-1.0.1 → cutcutcodec-1.0.3}/cutcutcodec.egg-info/top_level.txt +1 -0
  12. cutcutcodec-1.0.3/pyproject.toml +153 -0
  13. cutcutcodec-1.0.1/.pylintrc +0 -628
  14. cutcutcodec-1.0.1/cutcutcodec/__init__.py +0 -8
  15. cutcutcodec-1.0.1/cutcutcodec/core/__init__.py +0 -1
  16. cutcutcodec-1.0.1/cutcutcodec/core/analysis/__init__.py +0 -1
  17. cutcutcodec-1.0.1/cutcutcodec/core/analysis/_helper_properties.py +0 -55
  18. cutcutcodec-1.0.1/cutcutcodec/core/analysis/audio/__init__.py +0 -1
  19. cutcutcodec-1.0.1/cutcutcodec/core/analysis/audio/properties/__init__.py +0 -1
  20. cutcutcodec-1.0.1/cutcutcodec/core/analysis/audio/properties/duration.py +0 -81
  21. cutcutcodec-1.0.1/cutcutcodec/core/analysis/ffprobe.py +0 -607
  22. cutcutcodec-1.0.1/cutcutcodec/core/analysis/graph/__init__.py +0 -1
  23. cutcutcodec-1.0.1/cutcutcodec/core/analysis/graph/find.py +0 -87
  24. cutcutcodec-1.0.1/cutcutcodec/core/analysis/graph/time_backprop.py +0 -73
  25. cutcutcodec-1.0.1/cutcutcodec/core/analysis/stream/__init__.py +0 -1
  26. cutcutcodec-1.0.1/cutcutcodec/core/analysis/stream/rate_audio.py +0 -256
  27. cutcutcodec-1.0.1/cutcutcodec/core/analysis/stream/rate_video.py +0 -96
  28. cutcutcodec-1.0.1/cutcutcodec/core/analysis/stream/shape.py +0 -112
  29. cutcutcodec-1.0.1/cutcutcodec/core/analysis/stream/time_backprop.py +0 -185
  30. cutcutcodec-1.0.1/cutcutcodec/core/analysis/video/__init__.py +0 -1
  31. cutcutcodec-1.0.1/cutcutcodec/core/analysis/video/properties/__init__.py +0 -1
  32. cutcutcodec-1.0.1/cutcutcodec/core/analysis/video/properties/duration.py +0 -162
  33. cutcutcodec-1.0.1/cutcutcodec/core/analysis/video/properties/nb_frames.py +0 -162
  34. cutcutcodec-1.0.1/cutcutcodec/core/analysis/video/properties/rate.py +0 -105
  35. cutcutcodec-1.0.1/cutcutcodec/core/analysis/video/properties/timestamps.py +0 -198
  36. cutcutcodec-1.0.1/cutcutcodec/core/classes/__init__.py +0 -1
  37. cutcutcodec-1.0.1/cutcutcodec/core/classes/container.py +0 -49
  38. cutcutcodec-1.0.1/cutcutcodec/core/classes/filter.py +0 -37
  39. cutcutcodec-1.0.1/cutcutcodec/core/classes/frame.py +0 -123
  40. cutcutcodec-1.0.1/cutcutcodec/core/classes/frame_audio.py +0 -216
  41. cutcutcodec-1.0.1/cutcutcodec/core/classes/frame_video.py +0 -346
  42. cutcutcodec-1.0.1/cutcutcodec/core/classes/meta_filter.py +0 -48
  43. cutcutcodec-1.0.1/cutcutcodec/core/classes/node.py +0 -176
  44. cutcutcodec-1.0.1/cutcutcodec/core/classes/profile.py +0 -202
  45. cutcutcodec-1.0.1/cutcutcodec/core/classes/stream.py +0 -208
  46. cutcutcodec-1.0.1/cutcutcodec/core/classes/stream_audio.py +0 -135
  47. cutcutcodec-1.0.1/cutcutcodec/core/classes/stream_video.py +0 -203
  48. cutcutcodec-1.0.1/cutcutcodec/core/compilation/__init__.py +0 -1
  49. cutcutcodec-1.0.1/cutcutcodec/core/compilation/ast_to_file.py +0 -127
  50. cutcutcodec-1.0.1/cutcutcodec/core/compilation/export/__init__.py +0 -1
  51. cutcutcodec-1.0.1/cutcutcodec/core/compilation/export/compatibility.py +0 -846
  52. cutcutcodec-1.0.1/cutcutcodec/core/compilation/export/default.py +0 -103
  53. cutcutcodec-1.0.1/cutcutcodec/core/compilation/export/encodec.py +0 -50
  54. cutcutcodec-1.0.1/cutcutcodec/core/compilation/export/muxer.py +0 -13
  55. cutcutcodec-1.0.1/cutcutcodec/core/compilation/export/rate.py +0 -102
  56. cutcutcodec-1.0.1/cutcutcodec/core/compilation/graph_to_ast.py +0 -490
  57. cutcutcodec-1.0.1/cutcutcodec/core/compilation/graph_to_json.py +0 -108
  58. cutcutcodec-1.0.1/cutcutcodec/core/compilation/graph_to_tree.py +0 -198
  59. cutcutcodec-1.0.1/cutcutcodec/core/compilation/json_to_graph.py +0 -120
  60. cutcutcodec-1.0.1/cutcutcodec/core/compilation/parse.py +0 -125
  61. cutcutcodec-1.0.1/cutcutcodec/core/compilation/sympy_to_torch/__init__.py +0 -16
  62. cutcutcodec-1.0.1/cutcutcodec/core/compilation/sympy_to_torch/dynamic.py +0 -508
  63. cutcutcodec-1.0.1/cutcutcodec/core/compilation/sympy_to_torch/lambdify.py +0 -623
  64. cutcutcodec-1.0.1/cutcutcodec/core/compilation/sympy_to_torch/preprocess.py +0 -708
  65. cutcutcodec-1.0.1/cutcutcodec/core/compilation/sympy_to_torch/printer.py +0 -886
  66. cutcutcodec-1.0.1/cutcutcodec/core/compilation/tree_to_graph.py +0 -178
  67. cutcutcodec-1.0.1/cutcutcodec/core/edit/__init__.py +0 -6
  68. cutcutcodec-1.0.1/cutcutcodec/core/edit/operation/__init__.py +0 -6
  69. cutcutcodec-1.0.1/cutcutcodec/core/edit/operation/add.py +0 -77
  70. cutcutcodec-1.0.1/cutcutcodec/core/edit/operation/remove.py +0 -487
  71. cutcutcodec-1.0.1/cutcutcodec/core/edit/resource_estimation/__init__.py +0 -1
  72. cutcutcodec-1.0.1/cutcutcodec/core/exceptions.py +0 -64
  73. cutcutcodec-1.0.1/cutcutcodec/core/filters/__init__.py +0 -1
  74. cutcutcodec-1.0.1/cutcutcodec/core/filters/audio/__init__.py +0 -1
  75. cutcutcodec-1.0.1/cutcutcodec/core/filters/audio/add.py +0 -173
  76. cutcutcodec-1.0.1/cutcutcodec/core/filters/audio/cat.py +0 -64
  77. cutcutcodec-1.0.1/cutcutcodec/core/filters/audio/cut.py +0 -110
  78. cutcutcodec-1.0.1/cutcutcodec/core/filters/audio/delay.py +0 -92
  79. cutcutcodec-1.0.1/cutcutcodec/core/filters/audio/equation.py +0 -274
  80. cutcutcodec-1.0.1/cutcutcodec/core/filters/audio/fir.py +0 -242
  81. cutcutcodec-1.0.1/cutcutcodec/core/filters/audio/identity.py +0 -51
  82. cutcutcodec-1.0.1/cutcutcodec/core/filters/audio/resample.py +0 -461
  83. cutcutcodec-1.0.1/cutcutcodec/core/filters/audio/subclip.py +0 -93
  84. cutcutcodec-1.0.1/cutcutcodec/core/filters/cut.py +0 -81
  85. cutcutcodec-1.0.1/cutcutcodec/core/filters/mix/__init__.py +0 -6
  86. cutcutcodec-1.0.1/cutcutcodec/core/filters/mix/audio_cast.py +0 -213
  87. cutcutcodec-1.0.1/cutcutcodec/core/filters/mix/video_cast.py +0 -202
  88. cutcutcodec-1.0.1/cutcutcodec/core/filters/subclip.py +0 -64
  89. cutcutcodec-1.0.1/cutcutcodec/core/filters/video/__init__.py +0 -1
  90. cutcutcodec-1.0.1/cutcutcodec/core/filters/video/add.py +0 -345
  91. cutcutcodec-1.0.1/cutcutcodec/core/filters/video/cat.py +0 -64
  92. cutcutcodec-1.0.1/cutcutcodec/core/filters/video/cut.py +0 -111
  93. cutcutcodec-1.0.1/cutcutcodec/core/filters/video/delay.py +0 -91
  94. cutcutcodec-1.0.1/cutcutcodec/core/filters/video/equation.py +0 -277
  95. cutcutcodec-1.0.1/cutcutcodec/core/filters/video/identity.py +0 -51
  96. cutcutcodec-1.0.1/cutcutcodec/core/filters/video/resize.py +0 -115
  97. cutcutcodec-1.0.1/cutcutcodec/core/filters/video/subclip.py +0 -93
  98. cutcutcodec-1.0.1/cutcutcodec/core/generation/__init__.py +0 -1
  99. cutcutcodec-1.0.1/cutcutcodec/core/generation/audio/__init__.py +0 -1
  100. cutcutcodec-1.0.1/cutcutcodec/core/generation/audio/empty.py +0 -78
  101. cutcutcodec-1.0.1/cutcutcodec/core/generation/audio/equation.py +0 -59
  102. cutcutcodec-1.0.1/cutcutcodec/core/generation/audio/noise.py +0 -248
  103. cutcutcodec-1.0.1/cutcutcodec/core/generation/video/__init__.py +0 -1
  104. cutcutcodec-1.0.1/cutcutcodec/core/generation/video/empty.py +0 -75
  105. cutcutcodec-1.0.1/cutcutcodec/core/generation/video/equation.py +0 -112
  106. cutcutcodec-1.0.1/cutcutcodec/core/generation/video/fractal/__init__.py +0 -1
  107. cutcutcodec-1.0.1/cutcutcodec/core/generation/video/fractal/geometry.py +0 -106
  108. cutcutcodec-1.0.1/cutcutcodec/core/generation/video/fractal/mandelbrot.py +0 -189
  109. cutcutcodec-1.0.1/cutcutcodec/core/generation/video/noise.py +0 -117
  110. cutcutcodec-1.0.1/cutcutcodec/core/interfaces/__init__.py +0 -1
  111. cutcutcodec-1.0.1/cutcutcodec/core/interfaces/seedable.py +0 -92
  112. cutcutcodec-1.0.1/cutcutcodec/core/io/__init__.py +0 -1
  113. cutcutcodec-1.0.1/cutcutcodec/core/io/read_ffmpeg.py +0 -821
  114. cutcutcodec-1.0.1/cutcutcodec/core/io/read_svg.py +0 -156
  115. cutcutcodec-1.0.1/cutcutcodec/core/io/scheduler.py +0 -360
  116. cutcutcodec-1.0.1/cutcutcodec/core/io/write.py +0 -343
  117. cutcutcodec-1.0.1/cutcutcodec/core/opti/__init__.py +0 -1
  118. cutcutcodec-1.0.1/cutcutcodec/core/opti/cache/__init__.py +0 -1
  119. cutcutcodec-1.0.1/cutcutcodec/core/opti/cache/basic.py +0 -39
  120. cutcutcodec-1.0.1/cutcutcodec/core/opti/cache/clean/__init__.py +0 -1
  121. cutcutcodec-1.0.1/cutcutcodec/core/opti/cache/clean/graph.py +0 -85
  122. cutcutcodec-1.0.1/cutcutcodec/core/opti/cache/hashes/__init__.py +0 -1
  123. cutcutcodec-1.0.1/cutcutcodec/core/opti/cache/hashes/graph.py +0 -85
  124. cutcutcodec-1.0.1/cutcutcodec/core/opti/cache/singleton.py +0 -50
  125. cutcutcodec-1.0.1/cutcutcodec/core/opti/cuda/__init__.py +0 -1
  126. cutcutcodec-1.0.1/cutcutcodec/core/opti/factor/__init__.py +0 -6
  127. cutcutcodec-1.0.1/cutcutcodec/core/opti/factor/proba.py +0 -195
  128. cutcutcodec-1.0.1/cutcutcodec/core/opti/generalize/__init__.py +0 -6
  129. cutcutcodec-1.0.1/cutcutcodec/core/opti/generalize/delay_to_fir.py +0 -95
  130. cutcutcodec-1.0.1/cutcutcodec/core/opti/graph.py +0 -22
  131. cutcutcodec-1.0.1/cutcutcodec/core/opti/parallel/__init__.py +0 -1
  132. cutcutcodec-1.0.1/cutcutcodec/core/opti/parallel/buffer.py +0 -101
  133. cutcutcodec-1.0.1/cutcutcodec/core/opti/utils.py +0 -39
  134. cutcutcodec-1.0.1/cutcutcodec/gui/__init__.py +0 -12
  135. cutcutcodec-1.0.1/cutcutcodec/gui/__main__.py +0 -31
  136. cutcutcodec-1.0.1/cutcutcodec/gui/actions.py +0 -67
  137. cutcutcodec-1.0.1/cutcutcodec/gui/app/__init__.py +0 -1
  138. cutcutcodec-1.0.1/cutcutcodec/gui/app/app.py +0 -296
  139. cutcutcodec-1.0.1/cutcutcodec/gui/base.py +0 -63
  140. cutcutcodec-1.0.1/cutcutcodec/gui/edit_node_state/__init__.py +0 -6
  141. cutcutcodec-1.0.1/cutcutcodec/gui/edit_node_state/all/__init__.py +0 -1
  142. cutcutcodec-1.0.1/cutcutcodec/gui/edit_node_state/all/container_input_ffmpeg.py +0 -104
  143. cutcutcodec-1.0.1/cutcutcodec/gui/edit_node_state/all/filter_audio_delay.py +0 -15
  144. cutcutcodec-1.0.1/cutcutcodec/gui/edit_node_state/all/filter_audio_equation.py +0 -55
  145. cutcutcodec-1.0.1/cutcutcodec/gui/edit_node_state/all/filter_audio_fir.py +0 -72
  146. cutcutcodec-1.0.1/cutcutcodec/gui/edit_node_state/all/filter_audio_subclip.py +0 -15
  147. cutcutcodec-1.0.1/cutcutcodec/gui/edit_node_state/all/filter_cut.py +0 -87
  148. cutcutcodec-1.0.1/cutcutcodec/gui/edit_node_state/all/filter_delay.py +0 -26
  149. cutcutcodec-1.0.1/cutcutcodec/gui/edit_node_state/all/filter_subclip.py +0 -27
  150. cutcutcodec-1.0.1/cutcutcodec/gui/edit_node_state/all/filter_video_delay.py +0 -15
  151. cutcutcodec-1.0.1/cutcutcodec/gui/edit_node_state/all/filter_video_equation.py +0 -63
  152. cutcutcodec-1.0.1/cutcutcodec/gui/edit_node_state/all/filter_video_subclip.py +0 -15
  153. cutcutcodec-1.0.1/cutcutcodec/gui/edit_node_state/all/generator_audio_equation.py +0 -20
  154. cutcutcodec-1.0.1/cutcutcodec/gui/edit_node_state/all/generator_audio_noise.py +0 -25
  155. cutcutcodec-1.0.1/cutcutcodec/gui/edit_node_state/all/generator_video_equation.py +0 -19
  156. cutcutcodec-1.0.1/cutcutcodec/gui/edit_node_state/all/generator_video_mandelbrot.py +0 -55
  157. cutcutcodec-1.0.1/cutcutcodec/gui/edit_node_state/all/generator_video_noise.py +0 -24
  158. cutcutcodec-1.0.1/cutcutcodec/gui/edit_node_state/base.py +0 -112
  159. cutcutcodec-1.0.1/cutcutcodec/gui/edit_node_state/default.py +0 -32
  160. cutcutcodec-1.0.1/cutcutcodec/gui/edit_node_state/documentation.py +0 -55
  161. cutcutcodec-1.0.1/cutcutcodec/gui/edit_node_state/general.py +0 -84
  162. cutcutcodec-1.0.1/cutcutcodec/gui/edit_node_state/interface.py +0 -338
  163. cutcutcodec-1.0.1/cutcutcodec/gui/edit_node_state/loader.py +0 -46
  164. cutcutcodec-1.0.1/cutcutcodec/gui/edit_node_state/main.py +0 -73
  165. cutcutcodec-1.0.1/cutcutcodec/gui/edition_tabs.py +0 -42
  166. cutcutcodec-1.0.1/cutcutcodec/gui/entry/__init__.py +0 -1
  167. cutcutcodec-1.0.1/cutcutcodec/gui/entry/base.py +0 -124
  168. cutcutcodec-1.0.1/cutcutcodec/gui/entry/filters.py +0 -24
  169. cutcutcodec-1.0.1/cutcutcodec/gui/entry/generators.py +0 -24
  170. cutcutcodec-1.0.1/cutcutcodec/gui/entry/project_files.py +0 -124
  171. cutcutcodec-1.0.1/cutcutcodec/gui/entry_tabs.py +0 -46
  172. cutcutcodec-1.0.1/cutcutcodec/gui/export/__init__.py +0 -1
  173. cutcutcodec-1.0.1/cutcutcodec/gui/export/_helper.py +0 -65
  174. cutcutcodec-1.0.1/cutcutcodec/gui/export/container.py +0 -229
  175. cutcutcodec-1.0.1/cutcutcodec/gui/export/doc.py +0 -77
  176. cutcutcodec-1.0.1/cutcutcodec/gui/export/encodec.py +0 -222
  177. cutcutcodec-1.0.1/cutcutcodec/gui/export/main.py +0 -154
  178. cutcutcodec-1.0.1/cutcutcodec/gui/flowchart/__init__.py +0 -1
  179. cutcutcodec-1.0.1/cutcutcodec/gui/flowchart/edge_properties.py +0 -62
  180. cutcutcodec-1.0.1/cutcutcodec/gui/flowchart/main.py +0 -276
  181. cutcutcodec-1.0.1/cutcutcodec/gui/flowchart/node.py +0 -55
  182. cutcutcodec-1.0.1/cutcutcodec/gui/main.py +0 -168
  183. cutcutcodec-1.0.1/cutcutcodec/gui/menu.py +0 -28
  184. cutcutcodec-1.0.1/cutcutcodec/gui/preferences/__init__.py +0 -1
  185. cutcutcodec-1.0.1/cutcutcodec/gui/preferences/audio_settings.py +0 -198
  186. cutcutcodec-1.0.1/cutcutcodec/gui/preferences/main.py +0 -39
  187. cutcutcodec-1.0.1/cutcutcodec/gui/preferences/video_settings.py +0 -202
  188. cutcutcodec-1.0.1/cutcutcodec/gui/run.py +0 -79
  189. cutcutcodec-1.0.1/cutcutcodec/gui/timeline/__init__.py +0 -1
  190. cutcutcodec-1.0.1/cutcutcodec/gui/timeline/main.py +0 -35
  191. cutcutcodec-1.0.1/cutcutcodec/gui/timeline/slider.py +0 -310
  192. cutcutcodec-1.0.1/cutcutcodec/gui/timeline/track.py +0 -114
  193. cutcutcodec-1.0.1/cutcutcodec/gui/timeline/view.py +0 -106
  194. cutcutcodec-1.0.1/cutcutcodec/gui/toolbar.py +0 -35
  195. cutcutcodec-1.0.1/cutcutcodec/gui/tools.py +0 -27
  196. cutcutcodec-1.0.1/cutcutcodec/gui/video_preview/__init__.py +0 -1
  197. cutcutcodec-1.0.1/cutcutcodec/gui/video_preview/audio_player.py +0 -125
  198. cutcutcodec-1.0.1/cutcutcodec/gui/video_preview/control.py +0 -108
  199. cutcutcodec-1.0.1/cutcutcodec/gui/video_preview/frame_extractor.py +0 -283
  200. cutcutcodec-1.0.1/cutcutcodec/gui/video_preview/main.py +0 -132
  201. cutcutcodec-1.0.1/cutcutcodec/testing/__init__.py +0 -12
  202. cutcutcodec-1.0.1/cutcutcodec/testing/__main__.py +0 -25
  203. cutcutcodec-1.0.1/cutcutcodec/testing/generation.py +0 -64
  204. cutcutcodec-1.0.1/cutcutcodec/testing/run.py +0 -46
  205. cutcutcodec-1.0.1/cutcutcodec.egg-info/SOURCES.txt +0 -205
  206. cutcutcodec-1.0.1/pyproject.toml +0 -2
  207. cutcutcodec-1.0.1/setup.py +0 -143
  208. {cutcutcodec-1.0.1 → cutcutcodec-1.0.3}/LICENSE +0 -0
  209. {cutcutcodec-1.0.1 → cutcutcodec-1.0.3}/cutcutcodec.egg-info/dependency_links.txt +0 -0
  210. {cutcutcodec-1.0.1 → cutcutcodec-1.0.3}/cutcutcodec.egg-info/entry_points.txt +0 -0
  211. {cutcutcodec-1.0.1 → cutcutcodec-1.0.3}/setup.cfg +0 -0
@@ -1,12 +1,21 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cutcutcodec
3
- Version: 1.0.1
3
+ Version: 1.0.3
4
4
  Summary: video editing software
5
- Home-page: https://framagit.org/robinechuca/cutcutcodec/-/blob/main/README.rst
6
- Author: Robin RICHARD (robinechuca)
7
- Author-email: serveurpython.oz@gmail.com
8
- Project-URL: Source Repository, https://framagit.org/robinechuca/cutcutcodec/
9
- Keywords: effect,ffmpeg,filter,graphical,video editing
5
+ Author-email: "Robin RICHARD (robinechuca)" <serveurpython.oz@gmail.com>
6
+ Maintainer-email: "Robin RICHARD (robinechuca)" <serveurpython.oz@gmail.com>
7
+ License: Copyright © 2023 Robin RICHARD
8
+
9
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
14
+
15
+ Project-URL: Homepage, https://framagit.org/robinechuca/cutcutcodec/-/blob/main/README.rst
16
+ Project-URL: Documentation, https://cutcutcodec.readthedocs.io/latest/
17
+ Project-URL: Repository, https://framagit.org/robinechuca/cutcutcodec/
18
+ Keywords: audio,effect,equation,ffmpeg,filtering,fractal,graph,graphical interface,gui,open source,video editing
10
19
  Classifier: Development Status :: 5 - Production/Stable
11
20
  Classifier: Environment :: GPU
12
21
  Classifier: Environment :: X11 Applications :: Qt
@@ -20,6 +29,7 @@ Classifier: Operating System :: POSIX :: Linux
20
29
  Classifier: Programming Language :: C
21
30
  Classifier: Programming Language :: Python :: 3.10
22
31
  Classifier: Programming Language :: Python :: 3.11
32
+ Classifier: Programming Language :: Python :: 3.12
23
33
  Classifier: Programming Language :: Python :: 3.9
24
34
  Classifier: Topic :: Multimedia :: Graphics :: Editors
25
35
  Classifier: Topic :: Multimedia :: Graphics :: Graphics Conversion
@@ -39,7 +49,7 @@ Classifier: Topic :: Scientific/Engineering :: Information Analysis
39
49
  Classifier: Topic :: Scientific/Engineering :: Mathematics
40
50
  Classifier: Topic :: Software Development :: Code Generators
41
51
  Classifier: Typing :: Typed
42
- Requires-Python: >=3.9,<3.12
52
+ Requires-Python: <3.13,>=3.9
43
53
  Description-Content-Type: text/x-rst
44
54
  License-File: LICENSE
45
55
  Requires-Dist: av
@@ -60,39 +70,66 @@ Requires-Dist: pyqt6; extra == "gui"
60
70
  Requires-Dist: pyqtgraph>=0.3.1; extra == "gui"
61
71
  Requires-Dist: qtpy; extra == "gui"
62
72
  Requires-Dist: qtpynodeeditor>=0.3.1; extra == "gui"
63
- Provides-Extra: optional
64
- Requires-Dist: black; extra == "optional"
65
- Requires-Dist: pdoc3; extra == "optional"
66
- Requires-Dist: pylint==2.17.7; extra == "optional"
67
- Requires-Dist: pyqt6; extra == "optional"
68
- Requires-Dist: pyqtgraph>=0.3.1; extra == "optional"
69
- Requires-Dist: pytest; extra == "optional"
70
- Requires-Dist: qtpy; extra == "optional"
71
- Requires-Dist: qtpynodeeditor>=0.3.1; extra == "optional"
73
+ Provides-Extra: all
74
+ Requires-Dist: black; extra == "all"
75
+ Requires-Dist: pdoc3; extra == "all"
76
+ Requires-Dist: pydocstyle<=6.1.1; extra == "all"
77
+ Requires-Dist: pylama[all]; extra == "all"
78
+ Requires-Dist: pylama[toml]; extra == "all"
79
+ Requires-Dist: pyqt6; extra == "all"
80
+ Requires-Dist: pyqtgraph>=0.3.1; extra == "all"
81
+ Requires-Dist: pytest; extra == "all"
82
+ Requires-Dist: qtpy; extra == "all"
83
+ Requires-Dist: qtpynodeeditor>=0.3.1; extra == "all"
84
+ Requires-Dist: recommonmark; extra == "all"
85
+ Requires-Dist: sphinx-copybutton; extra == "all"
86
+ Requires-Dist: sphinx-copybutton; extra == "all"
87
+ Requires-Dist: sphinx-inline-tabs; extra == "all"
88
+ Requires-Dist: sphinxext-opengraph; extra == "all"
72
89
 
73
90
  .. rst syntax: https://deusyss.developpez.com/tutoriels/Python/SphinxDoc/
74
91
  .. version conv: https://peps.python.org/pep-0440/
75
92
  .. icons: https://specifications.freedesktop.org/icon-naming-spec/latest/ar01s04.html or https://www.pythonguis.com/faq/built-in-qicons-pyqt/
76
93
  .. pyqtdoc: https://www.riverbankcomputing.com/static/Docs/PyQt6/
94
+ .. colors-spaces: https://trac.ffmpeg.org/wiki/colorspace
77
95
 
78
96
  ***********
79
97
  CutCutCodec
80
98
  ***********
81
99
 
82
100
  .. image:: https://img.shields.io/badge/License-MIT-green.svg
101
+ :alt: [license MIT]
83
102
  :target: https://opensource.org/licenses/MIT
84
103
 
85
- .. image:: https://img.shields.io/badge/code_quality-pylint_10/10-green
104
+ .. image:: https://img.shields.io/badge/linting-pylint-green
105
+ :alt: [linting: pylint]
86
106
  :target: https://github.com/pylint-dev/pylint
87
107
 
88
108
  .. image:: https://img.shields.io/badge/tests-pass-green
109
+ :alt: [testing]
89
110
  :target: https://docs.pytest.org/
90
111
 
112
+ .. image:: https://img.shields.io/badge/python-3.9%20%7C%203.10%20%7C%203.11-blue
113
+ :alt: [versions]
114
+ :target: https://framagit.org/robinechuca/cutcutcodec/-/blob/main/run_tests.sh
115
+
116
+ .. image:: https://img.shields.io/pypi/v/cutcutcodec.svg
117
+ :alt: [pypi version]
118
+ :target: https://pypi.python.org/pypi/cutcutcodec
119
+
120
+ .. image:: https://static.pepy.tech/badge/cutcutcodec
121
+ :alt: [downloads]
122
+ :target: https://www.pepy.tech/projects/cutcutcodec
123
+
124
+ .. image:: https://readthedocs.org/projects/cutcutcodec/badge/?version=latest
125
+ :alt: [documentation]
126
+ :target: https://cutcutcodec.readthedocs.io/latest/
127
+
91
128
 
92
129
  Description
93
130
  ===========
94
131
 
95
- This **video editing software** has a graphical interface powered by qtpy (run ``cutcutcodec-qt``).
132
+ This **video editing software** has a graphical interface powered by qtpy (run ``cutcutcodec-gui``).
96
133
  It has been designed for speed and to implement some effects that are hard to find elsewhere.
97
134
  The kernel is written in python and C, so it's easy to integrate it in your own project (module ``cutcutcodec.core``).
98
135
  Although it allows you to fine-tune many parameters, it's smart enough to find the settings that are best suited to your project.
@@ -103,14 +140,42 @@ This software is **light**, **fast** and **highly configurable** for the followi
103
140
  #. This software allows editing the assembly graph. Compared to a timeline, this representation permits to do everything.
104
141
  #. This software doesn't export the final video directly from the graphic interface. Instead, it generates a python script. You can edit this script yourself, giving you infinite possibilities!
105
142
  #. A complete test benchmark guarantees an excelent kernel reliability.
106
- #. Powered by `torch <https://pytorch.org/>`_, this software efficiently exploits the CPU and GPU in order to make it very fast.
143
+ #. Powered by `torch <https://pytorch.org/>`_ and written in C, this software efficiently exploits the CPU and GPU in order to make it very fast.
107
144
  #. Video export is performed without a graphical interface, releasing a large part of computer resources to speed up export.
108
145
  #. This software is able to optimize the assembly graph in order to limit calculation waste.
146
+ #. The code is parallelised to take advantage of all the CPU threads, making it extremely fast.
109
147
 
110
- .. image:: https://framagit.org/robinechuca/cutcutcodec/-/raw/main/doc/gui.png
148
+ .. image:: https://framagit.org/robinechuca/cutcutcodec/-/raw/main/doc/gui.avif
111
149
  :alt: An example of the cutcutcodec GUI.
112
150
 
113
151
 
152
+ Quick Start
153
+ ===========
154
+
155
+ Installation
156
+ ------------
157
+
158
+ CutCutCodec is based on `ffmpeg <https://pytorch.org/>`_ and `pytorch <https://pytorch.org/>`_, so please follow the `cutcutcodec installation guide <https://cutcutcodec.readthedocs.io/latest/installation.html>`_.
159
+
160
+ You can use the following command to install everything automatically (not recommended, it's better to follow the guide).
161
+
162
+ .. code::
163
+
164
+ pip install cutcutcodec[gui]
165
+
166
+
167
+ Running
168
+ -------
169
+
170
+ For a very complete description, please refer to `the documentation <https://cutcutcodec.readthedocs.io/latest/start.html>`_.
171
+
172
+ In a terminal, just type ``cutcutcodec-gui`` to start the GUI, it is possible to access the *cli* with:
173
+
174
+ .. code::
175
+
176
+ python -m cutcutcodec --help
177
+
178
+
114
179
  Features
115
180
  ========
116
181
 
@@ -128,6 +193,7 @@ Audio
128
193
  #. Add multiple tracks.
129
194
  #. Arbitrary equation on several channels of several tracks. (dynamic volume, mixing, wouawoua, ...)
130
195
  #. Finite Impulse Response (FIR) invariant filter. (reverb, equalizer, echo, delay, volume, ...)
196
+ #. Hight quality anti aliasing low pass filter (based on FIR).
131
197
 
132
198
  Video
133
199
  -----
@@ -148,61 +214,6 @@ Video
148
214
  #. Apply an arbitrary equation one several video streams.
149
215
 
150
216
 
151
- Installation
152
- ============
153
-
154
- Dependencies
155
- ------------
156
-
157
- cutcutcodec has hard dependency on the ffmpeg package (version >= 4.0). You should install it first, please refer to the `FFmpeg download page <https://ffmpeg.org/download.html>`_.
158
-
159
- In many cases, these commands should work:
160
-
161
- .. code:: bash
162
-
163
- $ sudo apt install ffmpeg
164
-
165
- Although it is installed automatically, it is better to install **av** manually to avoid redundancy with ffmpeg. Please refer to the `PyAv installation guide <https://pyav.org/docs/develop/overview/installation.html>`_.
166
-
167
- If you have a GPU, please install CUDA or ROC then follow the `PyTorch installation guide <https://pytorch.org/>`_. Without CUDA or ROC, the software is not able to use the GPU (CPU only).
168
-
169
- It is preferable to install cutcutcodec in a virtual environment. Please refer to the `pyenv installation guide <https://github.com/pyenv/pyenv>`_. It is possible to use ``python3-venv`` as well.
170
-
171
-
172
- Installation of the lastest development version
173
- -----------------------------------------------
174
-
175
- To install cutcutcodec from `Framagit <https://framagit.org/robinechuca/cutcutcodec>`_ source, clone cutcutcodec using ``git`` and install it using ``pip`` of ``python3``:
176
-
177
- .. code:: bash
178
-
179
- git clone https://framagit.org/robinechuca/cutcutcodec.git
180
- cd cutcutcodec/
181
- chmod +x setup.py run_tests.sh
182
- python -m pip install --upgrade pip setuptools wheel
183
- python -m pip -v install --user --editable .[optional]
184
- python -m cutcutcodec test # or `cutcutcodec-test`
185
-
186
-
187
- Installation of the stable version
188
- ----------------------------------
189
-
190
- To install cutcutcodec using `PyPI <https://pypi.org/project/cutcutcodec/>`_, just type this in a terminal:
191
-
192
- .. code:: bash
193
-
194
- $ python -m pip install cutcutcodec[gui]
195
-
196
-
197
- Running
198
- -------
199
-
200
- In a terminal, just type ``cutcutcodec-gui`` to start the GUI and ``cutcutcodec-test`` for the simple test banchmark.
201
- If these shortcuts are not recognised, it is possible to access the *cli* via ``python -m cutcutcodec``.
202
-
203
- To execute a more complete test bench, you must run the ``bash run_tests.sh`` script.
204
-
205
-
206
217
  Example
207
218
  =======
208
219
 
@@ -230,7 +241,7 @@ In this example we open a video file, add video noise, add audio A and C note, s
230
241
  [video_trunc, note_a_trunc],
231
242
  "final.mkv",
232
243
  [
233
- {"encodec": "libx264", "rate": 30, "shape": [720, 1080], "options": {"crf": "23"}},
244
+ {"encodec": "libx264", "rate": 30, "shape": (720, 1080), "options": {"crf": "23"}},
234
245
  {"encodec": "libvorbis", "rate": 44100},
235
246
  ],
236
247
  ).write()
@@ -244,5 +255,18 @@ For the complete list of changes, refer to the `git commits <https://framagit.or
244
255
  1.0.1
245
256
  -----
246
257
 
247
- * Added a command line interface.
258
+ * Add a command line interface.
248
259
  * Compiling dynamic expressions in C.
260
+
261
+ 1.0.2
262
+ -----
263
+
264
+ * Add support for ``ffmpeg 6``.
265
+ * Able to compile ``atan`` function.
266
+ * Handling of non-square pixel readings.
267
+
268
+ 1.0.3
269
+ -----
270
+
271
+ * Improved ergonomics of the "Entry Tabs" and "Export" window.
272
+ * Speed-up codec/encoder/muxer tests of compatibility by a factor 10.
@@ -2,25 +2,45 @@
2
2
  .. version conv: https://peps.python.org/pep-0440/
3
3
  .. icons: https://specifications.freedesktop.org/icon-naming-spec/latest/ar01s04.html or https://www.pythonguis.com/faq/built-in-qicons-pyqt/
4
4
  .. pyqtdoc: https://www.riverbankcomputing.com/static/Docs/PyQt6/
5
+ .. colors-spaces: https://trac.ffmpeg.org/wiki/colorspace
5
6
 
6
7
  ***********
7
8
  CutCutCodec
8
9
  ***********
9
10
 
10
11
  .. image:: https://img.shields.io/badge/License-MIT-green.svg
12
+ :alt: [license MIT]
11
13
  :target: https://opensource.org/licenses/MIT
12
14
 
13
- .. image:: https://img.shields.io/badge/code_quality-pylint_10/10-green
15
+ .. image:: https://img.shields.io/badge/linting-pylint-green
16
+ :alt: [linting: pylint]
14
17
  :target: https://github.com/pylint-dev/pylint
15
18
 
16
19
  .. image:: https://img.shields.io/badge/tests-pass-green
20
+ :alt: [testing]
17
21
  :target: https://docs.pytest.org/
18
22
 
23
+ .. image:: https://img.shields.io/badge/python-3.9%20%7C%203.10%20%7C%203.11-blue
24
+ :alt: [versions]
25
+ :target: https://framagit.org/robinechuca/cutcutcodec/-/blob/main/run_tests.sh
26
+
27
+ .. image:: https://img.shields.io/pypi/v/cutcutcodec.svg
28
+ :alt: [pypi version]
29
+ :target: https://pypi.python.org/pypi/cutcutcodec
30
+
31
+ .. image:: https://static.pepy.tech/badge/cutcutcodec
32
+ :alt: [downloads]
33
+ :target: https://www.pepy.tech/projects/cutcutcodec
34
+
35
+ .. image:: https://readthedocs.org/projects/cutcutcodec/badge/?version=latest
36
+ :alt: [documentation]
37
+ :target: https://cutcutcodec.readthedocs.io/latest/
38
+
19
39
 
20
40
  Description
21
41
  ===========
22
42
 
23
- This **video editing software** has a graphical interface powered by qtpy (run ``cutcutcodec-qt``).
43
+ This **video editing software** has a graphical interface powered by qtpy (run ``cutcutcodec-gui``).
24
44
  It has been designed for speed and to implement some effects that are hard to find elsewhere.
25
45
  The kernel is written in python and C, so it's easy to integrate it in your own project (module ``cutcutcodec.core``).
26
46
  Although it allows you to fine-tune many parameters, it's smart enough to find the settings that are best suited to your project.
@@ -31,14 +51,42 @@ This software is **light**, **fast** and **highly configurable** for the followi
31
51
  #. This software allows editing the assembly graph. Compared to a timeline, this representation permits to do everything.
32
52
  #. This software doesn't export the final video directly from the graphic interface. Instead, it generates a python script. You can edit this script yourself, giving you infinite possibilities!
33
53
  #. A complete test benchmark guarantees an excelent kernel reliability.
34
- #. Powered by `torch <https://pytorch.org/>`_, this software efficiently exploits the CPU and GPU in order to make it very fast.
54
+ #. Powered by `torch <https://pytorch.org/>`_ and written in C, this software efficiently exploits the CPU and GPU in order to make it very fast.
35
55
  #. Video export is performed without a graphical interface, releasing a large part of computer resources to speed up export.
36
56
  #. This software is able to optimize the assembly graph in order to limit calculation waste.
57
+ #. The code is parallelised to take advantage of all the CPU threads, making it extremely fast.
37
58
 
38
- .. image:: https://framagit.org/robinechuca/cutcutcodec/-/raw/main/doc/gui.png
59
+ .. image:: https://framagit.org/robinechuca/cutcutcodec/-/raw/main/doc/gui.avif
39
60
  :alt: An example of the cutcutcodec GUI.
40
61
 
41
62
 
63
+ Quick Start
64
+ ===========
65
+
66
+ Installation
67
+ ------------
68
+
69
+ CutCutCodec is based on `ffmpeg <https://pytorch.org/>`_ and `pytorch <https://pytorch.org/>`_, so please follow the `cutcutcodec installation guide <https://cutcutcodec.readthedocs.io/latest/installation.html>`_.
70
+
71
+ You can use the following command to install everything automatically (not recommended, it's better to follow the guide).
72
+
73
+ .. code::
74
+
75
+ pip install cutcutcodec[gui]
76
+
77
+
78
+ Running
79
+ -------
80
+
81
+ For a very complete description, please refer to `the documentation <https://cutcutcodec.readthedocs.io/latest/start.html>`_.
82
+
83
+ In a terminal, just type ``cutcutcodec-gui`` to start the GUI, it is possible to access the *cli* with:
84
+
85
+ .. code::
86
+
87
+ python -m cutcutcodec --help
88
+
89
+
42
90
  Features
43
91
  ========
44
92
 
@@ -56,6 +104,7 @@ Audio
56
104
  #. Add multiple tracks.
57
105
  #. Arbitrary equation on several channels of several tracks. (dynamic volume, mixing, wouawoua, ...)
58
106
  #. Finite Impulse Response (FIR) invariant filter. (reverb, equalizer, echo, delay, volume, ...)
107
+ #. Hight quality anti aliasing low pass filter (based on FIR).
59
108
 
60
109
  Video
61
110
  -----
@@ -76,61 +125,6 @@ Video
76
125
  #. Apply an arbitrary equation one several video streams.
77
126
 
78
127
 
79
- Installation
80
- ============
81
-
82
- Dependencies
83
- ------------
84
-
85
- cutcutcodec has hard dependency on the ffmpeg package (version >= 4.0). You should install it first, please refer to the `FFmpeg download page <https://ffmpeg.org/download.html>`_.
86
-
87
- In many cases, these commands should work:
88
-
89
- .. code:: bash
90
-
91
- $ sudo apt install ffmpeg
92
-
93
- Although it is installed automatically, it is better to install **av** manually to avoid redundancy with ffmpeg. Please refer to the `PyAv installation guide <https://pyav.org/docs/develop/overview/installation.html>`_.
94
-
95
- If you have a GPU, please install CUDA or ROC then follow the `PyTorch installation guide <https://pytorch.org/>`_. Without CUDA or ROC, the software is not able to use the GPU (CPU only).
96
-
97
- It is preferable to install cutcutcodec in a virtual environment. Please refer to the `pyenv installation guide <https://github.com/pyenv/pyenv>`_. It is possible to use ``python3-venv`` as well.
98
-
99
-
100
- Installation of the lastest development version
101
- -----------------------------------------------
102
-
103
- To install cutcutcodec from `Framagit <https://framagit.org/robinechuca/cutcutcodec>`_ source, clone cutcutcodec using ``git`` and install it using ``pip`` of ``python3``:
104
-
105
- .. code:: bash
106
-
107
- git clone https://framagit.org/robinechuca/cutcutcodec.git
108
- cd cutcutcodec/
109
- chmod +x setup.py run_tests.sh
110
- python -m pip install --upgrade pip setuptools wheel
111
- python -m pip -v install --user --editable .[optional]
112
- python -m cutcutcodec test # or `cutcutcodec-test`
113
-
114
-
115
- Installation of the stable version
116
- ----------------------------------
117
-
118
- To install cutcutcodec using `PyPI <https://pypi.org/project/cutcutcodec/>`_, just type this in a terminal:
119
-
120
- .. code:: bash
121
-
122
- $ python -m pip install cutcutcodec[gui]
123
-
124
-
125
- Running
126
- -------
127
-
128
- In a terminal, just type ``cutcutcodec-gui`` to start the GUI and ``cutcutcodec-test`` for the simple test banchmark.
129
- If these shortcuts are not recognised, it is possible to access the *cli* via ``python -m cutcutcodec``.
130
-
131
- To execute a more complete test bench, you must run the ``bash run_tests.sh`` script.
132
-
133
-
134
128
  Example
135
129
  =======
136
130
 
@@ -158,7 +152,7 @@ In this example we open a video file, add video noise, add audio A and C note, s
158
152
  [video_trunc, note_a_trunc],
159
153
  "final.mkv",
160
154
  [
161
- {"encodec": "libx264", "rate": 30, "shape": [720, 1080], "options": {"crf": "23"}},
155
+ {"encodec": "libx264", "rate": 30, "shape": (720, 1080), "options": {"crf": "23"}},
162
156
  {"encodec": "libvorbis", "rate": 44100},
163
157
  ],
164
158
  ).write()
@@ -172,5 +166,18 @@ For the complete list of changes, refer to the `git commits <https://framagit.or
172
166
  1.0.1
173
167
  -----
174
168
 
175
- * Added a command line interface.
169
+ * Add a command line interface.
176
170
  * Compiling dynamic expressions in C.
171
+
172
+ 1.0.2
173
+ -----
174
+
175
+ * Add support for ``ffmpeg 6``.
176
+ * Able to compile ``atan`` function.
177
+ * Handling of non-square pixel readings.
178
+
179
+ 1.0.3
180
+ -----
181
+
182
+ * Improved ergonomics of the "Entry Tabs" and "Export" window.
183
+ * Speed-up codec/encoder/muxer tests of compatibility by a factor 10.
@@ -0,0 +1,33 @@
1
+ #!/usr/bin/env python3
2
+
3
+ """The rules of compilation for setuptools."""
4
+
5
+ import os
6
+ import sys
7
+
8
+ from setuptools import Extension
9
+ from setuptools.command.build_py import build_py as _build_py
10
+
11
+ sys.path.insert(0, os.getcwd()) # it is required to find cutcutcodec
12
+ from cutcutcodec.utils import get_compilation_rules
13
+
14
+
15
+ class Build(_build_py):
16
+ """Builder to compile c files."""
17
+
18
+ def run(self):
19
+ self.run_command("build_ext")
20
+ return super().run()
21
+
22
+ def initialize_options(self):
23
+ super().initialize_options()
24
+ if self.distribution.ext_modules is None:
25
+ self.distribution.ext_modules = []
26
+
27
+ self.distribution.ext_modules.append(
28
+ Extension(
29
+ "cutcutcodec.core.generation.video.c_fractal",
30
+ sources=["cutcutcodec/core/generation/video/fractal/fractal.c"],
31
+ **get_compilation_rules(),
32
+ )
33
+ )
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env python3
2
+
3
+ """Video editing software."""
4
+
5
+ __author__ = "Robin RICHARD (robinechuca)"
6
+ __version__ = "1.0.3" # pep 440
@@ -1,9 +1,6 @@
1
1
  #!/usr/bin/env python3
2
2
 
3
- """
4
- ** Entry point of the graphic interface. **
5
- -------------------------------------------
6
- """
3
+ """Entry point of the graphic interface."""
7
4
 
8
5
  import sys
9
6
 
@@ -15,18 +12,14 @@ from cutcutcodec.testing.__main__ import main as main_test
15
12
  from cutcutcodec.utils import get_project_root
16
13
 
17
14
 
18
-
19
15
  @click.group(invoke_without_command=True)
20
16
  @click.pass_context
21
17
  @click.option("--version", is_flag=True, help="Display the version of cutcutcodec.")
22
- def main(ctx=None, version: bool=False):
23
- """
24
- ** Global entry point for ``cutcutcodec`` command line interface. **
25
- """
18
+ def main(ctx=None, version: bool = False):
19
+ """Run the main ``cutcutcodec`` command line interface."""
26
20
  if version:
27
21
  click.echo(__version__)
28
-
29
- if not ctx.invoked_subcommand:
22
+ elif not ctx.invoked_subcommand:
30
23
  readme = get_project_root().parent / "README.rst"
31
24
  title = f"* cutcutcodec {__version__} *"
32
25
  click.echo(
@@ -36,6 +29,7 @@ def main(ctx=None, version: bool=False):
36
29
  f"Type `{sys.executable} -m cutcutcodec --help` to see all the cli options.\n"
37
30
  )
38
31
 
32
+
39
33
  main.add_command(main_test, "test")
40
34
  main.add_command(main_gui, "gui")
41
35
 
@@ -6,7 +6,6 @@
6
6
  #include <Python.h>
7
7
 
8
8
 
9
-
10
9
  void mandelbrot_longdouble(float *iters, long double *cst_reals, long double *cst_imags, const npy_intp dim, const long int iter_max) {
11
10
  npy_intp i, j;
12
11
  const float iter_max_float=(float)iter_max;
@@ -25,6 +24,7 @@ void mandelbrot_longdouble(float *iters, long double *cst_reals, long double *cs
25
24
  }
26
25
  }
27
26
 
27
+
28
28
  void mandelbrot_double(float *iters, double *cst_reals, double *cst_imags, const npy_intp dim, const long int iter_max) {
29
29
  npy_intp i, j;
30
30
  const float iter_max_float=(float)iter_max;
@@ -93,11 +93,13 @@ static PyObject *py_mandelbrot(PyObject *self, PyObject *args) {
93
93
  }
94
94
  }
95
95
 
96
+
96
97
  static PyMethodDef fractalMethods[] = {
97
98
  {"mandelbrot", py_mandelbrot, METH_VARARGS, "Function for calculating mandelbrot in C."},
98
99
  {NULL, NULL, 0, NULL}
99
100
  };
100
101
 
102
+
101
103
  static struct PyModuleDef fractal = {
102
104
  PyModuleDef_HEAD_INIT,
103
105
  "fractal",
@@ -106,6 +108,7 @@ static struct PyModuleDef fractal = {
106
108
  fractalMethods
107
109
  };
108
110
 
111
+
109
112
  PyMODINIT_FUNC PyInit_c_fractal(void)
110
113
  {
111
114
  import_array();
@@ -1,36 +1,29 @@
1
1
  #!/usr/bin/env python3
2
2
 
3
- """
4
- ** Pythonic tools. **
5
- ---------------------
6
- """
3
+ """Pythonic tools."""
7
4
 
8
5
  import pathlib
9
6
 
10
7
  import numpy as np
11
8
 
12
9
 
13
-
14
10
  def get_compilation_rules() -> dict:
15
- """
16
- ** Returns the extra compilation rules. **
17
- """
11
+ """Return the extra compilation rules."""
18
12
  return {
19
- "define_macros": [("NPY_NO_DEPRECATED_API", "NPY_1_7_API_VERSION")], # for warning
13
+ "define_macros": [("NPY_NO_DEPRECATED_API", "NPY_1_7_API_VERSION")], # for warning
20
14
  "extra_compile_args": [
21
- "-fopenmp", # for threads
22
- "-fopenmp-simd", # for single instruction multiple data
23
- "-lm", # for math functions
24
- "-march=native", # uses local processor instructions
25
- "-O3", # hight optimisation, -O3 include -ffast-math
15
+ "-fopenmp", # for threads
16
+ "-fopenmp-simd", # for single instruction multiple data
17
+ "-lm", # for math functions
18
+ "-march=native", # uses local processor instructions
19
+ "-O3", # hight optimisation, -O3 include -ffast-math
26
20
  ],
27
- "include_dirs": [np.get_include()], # requires for #include numpy
21
+ "include_dirs": [np.get_include()], # requires for #include numpy
28
22
  }
29
23
 
30
24
 
31
25
  def get_project_root() -> pathlib.Path:
32
- """
33
- ** Returns the absolute project root folder. **
26
+ """Return the absolute project root folder.
34
27
 
35
28
  Examples
36
29
  --------