cutcutcodec 1.0.2__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.2/cutcutcodec.egg-info → cutcutcodec-1.0.3}/PKG-INFO +85 -79
  2. {cutcutcodec-1.0.2 → cutcutcodec-1.0.3}/README.rst +54 -63
  3. cutcutcodec-1.0.3/c_build.py +33 -0
  4. cutcutcodec-1.0.3/cutcutcodec/__init__.py +6 -0
  5. {cutcutcodec-1.0.2 → cutcutcodec-1.0.3}/cutcutcodec/__main__.py +5 -11
  6. {cutcutcodec-1.0.2 → cutcutcodec-1.0.3}/cutcutcodec/core/generation/video/fractal/fractal.c +4 -1
  7. {cutcutcodec-1.0.2 → cutcutcodec-1.0.3}/cutcutcodec/utils.py +10 -17
  8. {cutcutcodec-1.0.2 → cutcutcodec-1.0.3/cutcutcodec.egg-info}/PKG-INFO +85 -79
  9. cutcutcodec-1.0.3/cutcutcodec.egg-info/SOURCES.txt +14 -0
  10. {cutcutcodec-1.0.2 → cutcutcodec-1.0.3}/cutcutcodec.egg-info/requires.txt +10 -4
  11. {cutcutcodec-1.0.2 → 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.2/.pylintrc +0 -628
  14. cutcutcodec-1.0.2/cutcutcodec/__init__.py +0 -8
  15. cutcutcodec-1.0.2/cutcutcodec/core/__init__.py +0 -1
  16. cutcutcodec-1.0.2/cutcutcodec/core/analysis/__init__.py +0 -1
  17. cutcutcodec-1.0.2/cutcutcodec/core/analysis/_helper_properties.py +0 -55
  18. cutcutcodec-1.0.2/cutcutcodec/core/analysis/audio/__init__.py +0 -1
  19. cutcutcodec-1.0.2/cutcutcodec/core/analysis/audio/properties/__init__.py +0 -1
  20. cutcutcodec-1.0.2/cutcutcodec/core/analysis/audio/properties/duration.py +0 -81
  21. cutcutcodec-1.0.2/cutcutcodec/core/analysis/ffprobe.py +0 -607
  22. cutcutcodec-1.0.2/cutcutcodec/core/analysis/graph/__init__.py +0 -1
  23. cutcutcodec-1.0.2/cutcutcodec/core/analysis/graph/find.py +0 -87
  24. cutcutcodec-1.0.2/cutcutcodec/core/analysis/graph/time_backprop.py +0 -73
  25. cutcutcodec-1.0.2/cutcutcodec/core/analysis/stream/__init__.py +0 -1
  26. cutcutcodec-1.0.2/cutcutcodec/core/analysis/stream/rate_audio.py +0 -256
  27. cutcutcodec-1.0.2/cutcutcodec/core/analysis/stream/rate_video.py +0 -96
  28. cutcutcodec-1.0.2/cutcutcodec/core/analysis/stream/shape.py +0 -112
  29. cutcutcodec-1.0.2/cutcutcodec/core/analysis/stream/time_backprop.py +0 -185
  30. cutcutcodec-1.0.2/cutcutcodec/core/analysis/video/__init__.py +0 -1
  31. cutcutcodec-1.0.2/cutcutcodec/core/analysis/video/properties/__init__.py +0 -1
  32. cutcutcodec-1.0.2/cutcutcodec/core/analysis/video/properties/duration.py +0 -162
  33. cutcutcodec-1.0.2/cutcutcodec/core/analysis/video/properties/nb_frames.py +0 -162
  34. cutcutcodec-1.0.2/cutcutcodec/core/analysis/video/properties/rate.py +0 -105
  35. cutcutcodec-1.0.2/cutcutcodec/core/analysis/video/properties/timestamps.py +0 -198
  36. cutcutcodec-1.0.2/cutcutcodec/core/classes/__init__.py +0 -1
  37. cutcutcodec-1.0.2/cutcutcodec/core/classes/container.py +0 -49
  38. cutcutcodec-1.0.2/cutcutcodec/core/classes/filter.py +0 -37
  39. cutcutcodec-1.0.2/cutcutcodec/core/classes/frame.py +0 -123
  40. cutcutcodec-1.0.2/cutcutcodec/core/classes/frame_audio.py +0 -216
  41. cutcutcodec-1.0.2/cutcutcodec/core/classes/frame_video.py +0 -346
  42. cutcutcodec-1.0.2/cutcutcodec/core/classes/meta_filter.py +0 -48
  43. cutcutcodec-1.0.2/cutcutcodec/core/classes/node.py +0 -176
  44. cutcutcodec-1.0.2/cutcutcodec/core/classes/profile.py +0 -202
  45. cutcutcodec-1.0.2/cutcutcodec/core/classes/stream.py +0 -208
  46. cutcutcodec-1.0.2/cutcutcodec/core/classes/stream_audio.py +0 -135
  47. cutcutcodec-1.0.2/cutcutcodec/core/classes/stream_video.py +0 -203
  48. cutcutcodec-1.0.2/cutcutcodec/core/compilation/__init__.py +0 -1
  49. cutcutcodec-1.0.2/cutcutcodec/core/compilation/ast_to_file.py +0 -134
  50. cutcutcodec-1.0.2/cutcutcodec/core/compilation/export/__init__.py +0 -1
  51. cutcutcodec-1.0.2/cutcutcodec/core/compilation/export/compatibility.py +0 -846
  52. cutcutcodec-1.0.2/cutcutcodec/core/compilation/export/default.py +0 -103
  53. cutcutcodec-1.0.2/cutcutcodec/core/compilation/export/encodec.py +0 -50
  54. cutcutcodec-1.0.2/cutcutcodec/core/compilation/export/muxer.py +0 -13
  55. cutcutcodec-1.0.2/cutcutcodec/core/compilation/export/rate.py +0 -102
  56. cutcutcodec-1.0.2/cutcutcodec/core/compilation/graph_to_ast.py +0 -490
  57. cutcutcodec-1.0.2/cutcutcodec/core/compilation/graph_to_json.py +0 -108
  58. cutcutcodec-1.0.2/cutcutcodec/core/compilation/graph_to_tree.py +0 -198
  59. cutcutcodec-1.0.2/cutcutcodec/core/compilation/json_to_graph.py +0 -120
  60. cutcutcodec-1.0.2/cutcutcodec/core/compilation/parse.py +0 -130
  61. cutcutcodec-1.0.2/cutcutcodec/core/compilation/sympy_to_torch/__init__.py +0 -16
  62. cutcutcodec-1.0.2/cutcutcodec/core/compilation/sympy_to_torch/dynamic.py +0 -524
  63. cutcutcodec-1.0.2/cutcutcodec/core/compilation/sympy_to_torch/lambdify.py +0 -623
  64. cutcutcodec-1.0.2/cutcutcodec/core/compilation/sympy_to_torch/preprocess.py +0 -708
  65. cutcutcodec-1.0.2/cutcutcodec/core/compilation/sympy_to_torch/printer.py +0 -912
  66. cutcutcodec-1.0.2/cutcutcodec/core/compilation/tree_to_graph.py +0 -178
  67. cutcutcodec-1.0.2/cutcutcodec/core/edit/__init__.py +0 -6
  68. cutcutcodec-1.0.2/cutcutcodec/core/edit/operation/__init__.py +0 -6
  69. cutcutcodec-1.0.2/cutcutcodec/core/edit/operation/add.py +0 -77
  70. cutcutcodec-1.0.2/cutcutcodec/core/edit/operation/remove.py +0 -487
  71. cutcutcodec-1.0.2/cutcutcodec/core/edit/resource_estimation/__init__.py +0 -1
  72. cutcutcodec-1.0.2/cutcutcodec/core/exceptions.py +0 -64
  73. cutcutcodec-1.0.2/cutcutcodec/core/filters/__init__.py +0 -1
  74. cutcutcodec-1.0.2/cutcutcodec/core/filters/audio/__init__.py +0 -1
  75. cutcutcodec-1.0.2/cutcutcodec/core/filters/audio/add.py +0 -173
  76. cutcutcodec-1.0.2/cutcutcodec/core/filters/audio/cat.py +0 -64
  77. cutcutcodec-1.0.2/cutcutcodec/core/filters/audio/cut.py +0 -110
  78. cutcutcodec-1.0.2/cutcutcodec/core/filters/audio/delay.py +0 -92
  79. cutcutcodec-1.0.2/cutcutcodec/core/filters/audio/equation.py +0 -274
  80. cutcutcodec-1.0.2/cutcutcodec/core/filters/audio/fir.py +0 -242
  81. cutcutcodec-1.0.2/cutcutcodec/core/filters/audio/identity.py +0 -51
  82. cutcutcodec-1.0.2/cutcutcodec/core/filters/audio/resample.py +0 -461
  83. cutcutcodec-1.0.2/cutcutcodec/core/filters/audio/subclip.py +0 -93
  84. cutcutcodec-1.0.2/cutcutcodec/core/filters/cut.py +0 -81
  85. cutcutcodec-1.0.2/cutcutcodec/core/filters/mix/__init__.py +0 -6
  86. cutcutcodec-1.0.2/cutcutcodec/core/filters/mix/audio_cast.py +0 -213
  87. cutcutcodec-1.0.2/cutcutcodec/core/filters/mix/video_cast.py +0 -202
  88. cutcutcodec-1.0.2/cutcutcodec/core/filters/subclip.py +0 -64
  89. cutcutcodec-1.0.2/cutcutcodec/core/filters/video/__init__.py +0 -1
  90. cutcutcodec-1.0.2/cutcutcodec/core/filters/video/add.py +0 -345
  91. cutcutcodec-1.0.2/cutcutcodec/core/filters/video/cat.py +0 -64
  92. cutcutcodec-1.0.2/cutcutcodec/core/filters/video/cut.py +0 -111
  93. cutcutcodec-1.0.2/cutcutcodec/core/filters/video/delay.py +0 -91
  94. cutcutcodec-1.0.2/cutcutcodec/core/filters/video/equation.py +0 -277
  95. cutcutcodec-1.0.2/cutcutcodec/core/filters/video/identity.py +0 -51
  96. cutcutcodec-1.0.2/cutcutcodec/core/filters/video/pad.py +0 -104
  97. cutcutcodec-1.0.2/cutcutcodec/core/filters/video/subclip.py +0 -93
  98. cutcutcodec-1.0.2/cutcutcodec/core/generation/__init__.py +0 -1
  99. cutcutcodec-1.0.2/cutcutcodec/core/generation/audio/__init__.py +0 -1
  100. cutcutcodec-1.0.2/cutcutcodec/core/generation/audio/empty.py +0 -78
  101. cutcutcodec-1.0.2/cutcutcodec/core/generation/audio/equation.py +0 -59
  102. cutcutcodec-1.0.2/cutcutcodec/core/generation/audio/noise.py +0 -248
  103. cutcutcodec-1.0.2/cutcutcodec/core/generation/video/__init__.py +0 -1
  104. cutcutcodec-1.0.2/cutcutcodec/core/generation/video/empty.py +0 -75
  105. cutcutcodec-1.0.2/cutcutcodec/core/generation/video/equation.py +0 -112
  106. cutcutcodec-1.0.2/cutcutcodec/core/generation/video/fractal/__init__.py +0 -1
  107. cutcutcodec-1.0.2/cutcutcodec/core/generation/video/fractal/geometry.py +0 -106
  108. cutcutcodec-1.0.2/cutcutcodec/core/generation/video/fractal/mandelbrot.py +0 -189
  109. cutcutcodec-1.0.2/cutcutcodec/core/generation/video/noise.py +0 -117
  110. cutcutcodec-1.0.2/cutcutcodec/core/interfaces/__init__.py +0 -1
  111. cutcutcodec-1.0.2/cutcutcodec/core/interfaces/seedable.py +0 -92
  112. cutcutcodec-1.0.2/cutcutcodec/core/io/__init__.py +0 -1
  113. cutcutcodec-1.0.2/cutcutcodec/core/io/read_ffmpeg.py +0 -868
  114. cutcutcodec-1.0.2/cutcutcodec/core/io/read_svg.py +0 -156
  115. cutcutcodec-1.0.2/cutcutcodec/core/io/scheduler.py +0 -360
  116. cutcutcodec-1.0.2/cutcutcodec/core/io/write.py +0 -358
  117. cutcutcodec-1.0.2/cutcutcodec/core/opti/__init__.py +0 -1
  118. cutcutcodec-1.0.2/cutcutcodec/core/opti/cache/__init__.py +0 -1
  119. cutcutcodec-1.0.2/cutcutcodec/core/opti/cache/basic.py +0 -39
  120. cutcutcodec-1.0.2/cutcutcodec/core/opti/cache/clean/__init__.py +0 -1
  121. cutcutcodec-1.0.2/cutcutcodec/core/opti/cache/clean/graph.py +0 -85
  122. cutcutcodec-1.0.2/cutcutcodec/core/opti/cache/hashes/__init__.py +0 -1
  123. cutcutcodec-1.0.2/cutcutcodec/core/opti/cache/hashes/graph.py +0 -85
  124. cutcutcodec-1.0.2/cutcutcodec/core/opti/cache/singleton.py +0 -50
  125. cutcutcodec-1.0.2/cutcutcodec/core/opti/cuda/__init__.py +0 -1
  126. cutcutcodec-1.0.2/cutcutcodec/core/opti/factor/__init__.py +0 -6
  127. cutcutcodec-1.0.2/cutcutcodec/core/opti/factor/proba.py +0 -195
  128. cutcutcodec-1.0.2/cutcutcodec/core/opti/generalize/__init__.py +0 -6
  129. cutcutcodec-1.0.2/cutcutcodec/core/opti/generalize/delay_to_fir.py +0 -95
  130. cutcutcodec-1.0.2/cutcutcodec/core/opti/graph.py +0 -22
  131. cutcutcodec-1.0.2/cutcutcodec/core/opti/parallel/__init__.py +0 -1
  132. cutcutcodec-1.0.2/cutcutcodec/core/opti/parallel/buffer.py +0 -101
  133. cutcutcodec-1.0.2/cutcutcodec/core/opti/utils.py +0 -39
  134. cutcutcodec-1.0.2/cutcutcodec/gui/__init__.py +0 -12
  135. cutcutcodec-1.0.2/cutcutcodec/gui/__main__.py +0 -31
  136. cutcutcodec-1.0.2/cutcutcodec/gui/actions.py +0 -67
  137. cutcutcodec-1.0.2/cutcutcodec/gui/app/__init__.py +0 -1
  138. cutcutcodec-1.0.2/cutcutcodec/gui/app/app.py +0 -296
  139. cutcutcodec-1.0.2/cutcutcodec/gui/base.py +0 -63
  140. cutcutcodec-1.0.2/cutcutcodec/gui/edit_node_state/__init__.py +0 -6
  141. cutcutcodec-1.0.2/cutcutcodec/gui/edit_node_state/all/__init__.py +0 -1
  142. cutcutcodec-1.0.2/cutcutcodec/gui/edit_node_state/all/container_input_ffmpeg.py +0 -104
  143. cutcutcodec-1.0.2/cutcutcodec/gui/edit_node_state/all/filter_audio_delay.py +0 -15
  144. cutcutcodec-1.0.2/cutcutcodec/gui/edit_node_state/all/filter_audio_equation.py +0 -55
  145. cutcutcodec-1.0.2/cutcutcodec/gui/edit_node_state/all/filter_audio_fir.py +0 -72
  146. cutcutcodec-1.0.2/cutcutcodec/gui/edit_node_state/all/filter_audio_subclip.py +0 -15
  147. cutcutcodec-1.0.2/cutcutcodec/gui/edit_node_state/all/filter_cut.py +0 -87
  148. cutcutcodec-1.0.2/cutcutcodec/gui/edit_node_state/all/filter_delay.py +0 -26
  149. cutcutcodec-1.0.2/cutcutcodec/gui/edit_node_state/all/filter_subclip.py +0 -27
  150. cutcutcodec-1.0.2/cutcutcodec/gui/edit_node_state/all/filter_video_delay.py +0 -15
  151. cutcutcodec-1.0.2/cutcutcodec/gui/edit_node_state/all/filter_video_equation.py +0 -63
  152. cutcutcodec-1.0.2/cutcutcodec/gui/edit_node_state/all/filter_video_subclip.py +0 -15
  153. cutcutcodec-1.0.2/cutcutcodec/gui/edit_node_state/all/generator_audio_equation.py +0 -20
  154. cutcutcodec-1.0.2/cutcutcodec/gui/edit_node_state/all/generator_audio_noise.py +0 -25
  155. cutcutcodec-1.0.2/cutcutcodec/gui/edit_node_state/all/generator_video_equation.py +0 -19
  156. cutcutcodec-1.0.2/cutcutcodec/gui/edit_node_state/all/generator_video_mandelbrot.py +0 -55
  157. cutcutcodec-1.0.2/cutcutcodec/gui/edit_node_state/all/generator_video_noise.py +0 -24
  158. cutcutcodec-1.0.2/cutcutcodec/gui/edit_node_state/base.py +0 -112
  159. cutcutcodec-1.0.2/cutcutcodec/gui/edit_node_state/default.py +0 -32
  160. cutcutcodec-1.0.2/cutcutcodec/gui/edit_node_state/documentation.py +0 -55
  161. cutcutcodec-1.0.2/cutcutcodec/gui/edit_node_state/general.py +0 -84
  162. cutcutcodec-1.0.2/cutcutcodec/gui/edit_node_state/interface.py +0 -338
  163. cutcutcodec-1.0.2/cutcutcodec/gui/edit_node_state/loader.py +0 -46
  164. cutcutcodec-1.0.2/cutcutcodec/gui/edit_node_state/main.py +0 -73
  165. cutcutcodec-1.0.2/cutcutcodec/gui/edition_tabs.py +0 -42
  166. cutcutcodec-1.0.2/cutcutcodec/gui/entry/__init__.py +0 -1
  167. cutcutcodec-1.0.2/cutcutcodec/gui/entry/base.py +0 -124
  168. cutcutcodec-1.0.2/cutcutcodec/gui/entry/filters.py +0 -24
  169. cutcutcodec-1.0.2/cutcutcodec/gui/entry/generators.py +0 -24
  170. cutcutcodec-1.0.2/cutcutcodec/gui/entry/project_files.py +0 -124
  171. cutcutcodec-1.0.2/cutcutcodec/gui/entry_tabs.py +0 -46
  172. cutcutcodec-1.0.2/cutcutcodec/gui/export/__init__.py +0 -1
  173. cutcutcodec-1.0.2/cutcutcodec/gui/export/_helper.py +0 -65
  174. cutcutcodec-1.0.2/cutcutcodec/gui/export/container.py +0 -229
  175. cutcutcodec-1.0.2/cutcutcodec/gui/export/doc.py +0 -77
  176. cutcutcodec-1.0.2/cutcutcodec/gui/export/encodec.py +0 -222
  177. cutcutcodec-1.0.2/cutcutcodec/gui/export/main.py +0 -154
  178. cutcutcodec-1.0.2/cutcutcodec/gui/flowchart/__init__.py +0 -1
  179. cutcutcodec-1.0.2/cutcutcodec/gui/flowchart/edge_properties.py +0 -62
  180. cutcutcodec-1.0.2/cutcutcodec/gui/flowchart/main.py +0 -276
  181. cutcutcodec-1.0.2/cutcutcodec/gui/flowchart/node.py +0 -55
  182. cutcutcodec-1.0.2/cutcutcodec/gui/main.py +0 -168
  183. cutcutcodec-1.0.2/cutcutcodec/gui/menu.py +0 -28
  184. cutcutcodec-1.0.2/cutcutcodec/gui/preferences/__init__.py +0 -1
  185. cutcutcodec-1.0.2/cutcutcodec/gui/preferences/audio_settings.py +0 -198
  186. cutcutcodec-1.0.2/cutcutcodec/gui/preferences/main.py +0 -39
  187. cutcutcodec-1.0.2/cutcutcodec/gui/preferences/video_settings.py +0 -202
  188. cutcutcodec-1.0.2/cutcutcodec/gui/run.py +0 -79
  189. cutcutcodec-1.0.2/cutcutcodec/gui/timeline/__init__.py +0 -1
  190. cutcutcodec-1.0.2/cutcutcodec/gui/timeline/main.py +0 -35
  191. cutcutcodec-1.0.2/cutcutcodec/gui/timeline/slider.py +0 -310
  192. cutcutcodec-1.0.2/cutcutcodec/gui/timeline/track.py +0 -114
  193. cutcutcodec-1.0.2/cutcutcodec/gui/timeline/view.py +0 -106
  194. cutcutcodec-1.0.2/cutcutcodec/gui/toolbar.py +0 -35
  195. cutcutcodec-1.0.2/cutcutcodec/gui/tools.py +0 -27
  196. cutcutcodec-1.0.2/cutcutcodec/gui/video_preview/__init__.py +0 -1
  197. cutcutcodec-1.0.2/cutcutcodec/gui/video_preview/audio_player.py +0 -125
  198. cutcutcodec-1.0.2/cutcutcodec/gui/video_preview/control.py +0 -108
  199. cutcutcodec-1.0.2/cutcutcodec/gui/video_preview/frame_extractor.py +0 -283
  200. cutcutcodec-1.0.2/cutcutcodec/gui/video_preview/main.py +0 -132
  201. cutcutcodec-1.0.2/cutcutcodec/testing/__init__.py +0 -12
  202. cutcutcodec-1.0.2/cutcutcodec/testing/__main__.py +0 -25
  203. cutcutcodec-1.0.2/cutcutcodec/testing/generation.py +0 -64
  204. cutcutcodec-1.0.2/cutcutcodec/testing/run.py +0 -46
  205. cutcutcodec-1.0.2/cutcutcodec.egg-info/SOURCES.txt +0 -205
  206. cutcutcodec-1.0.2/pyproject.toml +0 -2
  207. cutcutcodec-1.0.2/setup.py +0 -150
  208. {cutcutcodec-1.0.2 → cutcutcodec-1.0.3}/LICENSE +0 -0
  209. {cutcutcodec-1.0.2 → cutcutcodec-1.0.3}/cutcutcodec.egg-info/dependency_links.txt +0 -0
  210. {cutcutcodec-1.0.2 → cutcutcodec-1.0.3}/cutcutcodec.egg-info/entry_points.txt +0 -0
  211. {cutcutcodec-1.0.2 → cutcutcodec-1.0.3}/setup.cfg +0 -0
@@ -1,12 +1,20 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cutcutcodec
3
- Version: 1.0.2
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
- Project-URL: Documentation, https://cutcutcodec.readthedocs.io/en/latest/
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/
10
18
  Keywords: audio,effect,equation,ffmpeg,filtering,fractal,graph,graphical interface,gui,open source,video editing
11
19
  Classifier: Development Status :: 5 - Production/Stable
12
20
  Classifier: Environment :: GPU
@@ -41,7 +49,7 @@ Classifier: Topic :: Scientific/Engineering :: Information Analysis
41
49
  Classifier: Topic :: Scientific/Engineering :: Mathematics
42
50
  Classifier: Topic :: Software Development :: Code Generators
43
51
  Classifier: Typing :: Typed
44
- Requires-Python: >=3.9,<3.13
52
+ Requires-Python: <3.13,>=3.9
45
53
  Description-Content-Type: text/x-rst
46
54
  License-File: LICENSE
47
55
  Requires-Dist: av
@@ -62,48 +70,66 @@ Requires-Dist: pyqt6; extra == "gui"
62
70
  Requires-Dist: pyqtgraph>=0.3.1; extra == "gui"
63
71
  Requires-Dist: qtpy; extra == "gui"
64
72
  Requires-Dist: qtpynodeeditor>=0.3.1; extra == "gui"
65
- Provides-Extra: optional
66
- Requires-Dist: black; extra == "optional"
67
- Requires-Dist: pdoc3; extra == "optional"
68
- Requires-Dist: pylint==2.17.7; extra == "optional"
69
- Requires-Dist: pyqt6; extra == "optional"
70
- Requires-Dist: pyqtgraph>=0.3.1; extra == "optional"
71
- Requires-Dist: pytest; extra == "optional"
72
- Requires-Dist: qtpy; extra == "optional"
73
- 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"
74
89
 
75
90
  .. rst syntax: https://deusyss.developpez.com/tutoriels/Python/SphinxDoc/
76
91
  .. version conv: https://peps.python.org/pep-0440/
77
92
  .. icons: https://specifications.freedesktop.org/icon-naming-spec/latest/ar01s04.html or https://www.pythonguis.com/faq/built-in-qicons-pyqt/
78
93
  .. pyqtdoc: https://www.riverbankcomputing.com/static/Docs/PyQt6/
94
+ .. colors-spaces: https://trac.ffmpeg.org/wiki/colorspace
79
95
 
80
96
  ***********
81
97
  CutCutCodec
82
98
  ***********
83
99
 
84
100
  .. image:: https://img.shields.io/badge/License-MIT-green.svg
101
+ :alt: [license MIT]
85
102
  :target: https://opensource.org/licenses/MIT
86
103
 
87
- .. 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]
88
106
  :target: https://github.com/pylint-dev/pylint
89
107
 
90
108
  .. image:: https://img.shields.io/badge/tests-pass-green
109
+ :alt: [testing]
91
110
  :target: https://docs.pytest.org/
92
111
 
93
112
  .. image:: https://img.shields.io/badge/python-3.9%20%7C%203.10%20%7C%203.11-blue
113
+ :alt: [versions]
94
114
  :target: https://framagit.org/robinechuca/cutcutcodec/-/blob/main/run_tests.sh
95
115
 
96
- .. image:: https://static.pepy.tech/personalized-badge/cutcutcodec?period=total&units=international_system&left_color=grey&right_color=blue&left_text=downloads
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]
97
122
  :target: https://www.pepy.tech/projects/cutcutcodec
98
123
 
99
124
  .. image:: https://readthedocs.org/projects/cutcutcodec/badge/?version=latest
100
- :target: https://cutcutcodec.readthedocs.io/en/latest/
125
+ :alt: [documentation]
126
+ :target: https://cutcutcodec.readthedocs.io/latest/
101
127
 
102
128
 
103
129
  Description
104
130
  ===========
105
131
 
106
- 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``).
107
133
  It has been designed for speed and to implement some effects that are hard to find elsewhere.
108
134
  The kernel is written in python and C, so it's easy to integrate it in your own project (module ``cutcutcodec.core``).
109
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.
@@ -114,14 +140,42 @@ This software is **light**, **fast** and **highly configurable** for the followi
114
140
  #. This software allows editing the assembly graph. Compared to a timeline, this representation permits to do everything.
115
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!
116
142
  #. A complete test benchmark guarantees an excelent kernel reliability.
117
- #. Powered by `torch <https://pytorch.org/>`_ and written in dynamic C, 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.
118
144
  #. Video export is performed without a graphical interface, releasing a large part of computer resources to speed up export.
119
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.
120
147
 
121
- .. image:: https://framagit.org/robinechuca/cutcutcodec/-/raw/main/docs/gui.avif
148
+ .. image:: https://framagit.org/robinechuca/cutcutcodec/-/raw/main/doc/gui.avif
122
149
  :alt: An example of the cutcutcodec GUI.
123
150
 
124
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
+
125
179
  Features
126
180
  ========
127
181
 
@@ -139,6 +193,7 @@ Audio
139
193
  #. Add multiple tracks.
140
194
  #. Arbitrary equation on several channels of several tracks. (dynamic volume, mixing, wouawoua, ...)
141
195
  #. Finite Impulse Response (FIR) invariant filter. (reverb, equalizer, echo, delay, volume, ...)
196
+ #. Hight quality anti aliasing low pass filter (based on FIR).
142
197
 
143
198
  Video
144
199
  -----
@@ -159,61 +214,6 @@ Video
159
214
  #. Apply an arbitrary equation one several video streams.
160
215
 
161
216
 
162
- Installation
163
- ============
164
-
165
- Dependencies
166
- ------------
167
-
168
- 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>`_.
169
-
170
- In many cases, these commands should work:
171
-
172
- .. code:: bash
173
-
174
- $ sudo apt install ffmpeg
175
-
176
- 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>`_.
177
-
178
- 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).
179
-
180
- 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.
181
-
182
-
183
- Installation of the lastest development version
184
- -----------------------------------------------
185
-
186
- To install cutcutcodec from `Framagit <https://framagit.org/robinechuca/cutcutcodec>`_ source, clone cutcutcodec using ``git`` and install it using ``pip`` of ``python3``:
187
-
188
- .. code:: bash
189
-
190
- git clone https://framagit.org/robinechuca/cutcutcodec.git
191
- cd cutcutcodec/
192
- chmod +x setup.py run_tests.sh
193
- python -m pip install --upgrade pip setuptools wheel
194
- python -m pip -v install --user --editable .[optional]
195
- python -m cutcutcodec test # or `cutcutcodec-test`
196
-
197
-
198
- Installation of the stable version
199
- ----------------------------------
200
-
201
- To install cutcutcodec using `PyPI <https://pypi.org/project/cutcutcodec/>`_, just type this in a terminal:
202
-
203
- .. code:: bash
204
-
205
- $ python -m pip install cutcutcodec[gui]
206
-
207
-
208
- Running
209
- -------
210
-
211
- In a terminal, just type ``cutcutcodec-gui`` to start the GUI and ``cutcutcodec-test`` for the simple test banchmark.
212
- If these shortcuts are not recognised, it is possible to access the *cli* via ``python -m cutcutcodec``.
213
-
214
- To execute a more complete test bench, you must run the ``bash run_tests.sh`` script.
215
-
216
-
217
217
  Example
218
218
  =======
219
219
 
@@ -241,7 +241,7 @@ In this example we open a video file, add video noise, add audio A and C note, s
241
241
  [video_trunc, note_a_trunc],
242
242
  "final.mkv",
243
243
  [
244
- {"encodec": "libx264", "rate": 30, "shape": [720, 1080], "options": {"crf": "23"}},
244
+ {"encodec": "libx264", "rate": 30, "shape": (720, 1080), "options": {"crf": "23"}},
245
245
  {"encodec": "libvorbis", "rate": 44100},
246
246
  ],
247
247
  ).write()
@@ -263,4 +263,10 @@ For the complete list of changes, refer to the `git commits <https://framagit.or
263
263
 
264
264
  * Add support for ``ffmpeg 6``.
265
265
  * Able to compile ``atan`` function.
266
- * Dealing for reading non-square pixels.
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,34 +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
 
19
23
  .. image:: https://img.shields.io/badge/python-3.9%20%7C%203.10%20%7C%203.11-blue
24
+ :alt: [versions]
20
25
  :target: https://framagit.org/robinechuca/cutcutcodec/-/blob/main/run_tests.sh
21
26
 
22
- .. image:: https://static.pepy.tech/personalized-badge/cutcutcodec?period=total&units=international_system&left_color=grey&right_color=blue&left_text=downloads
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]
23
33
  :target: https://www.pepy.tech/projects/cutcutcodec
24
34
 
25
35
  .. image:: https://readthedocs.org/projects/cutcutcodec/badge/?version=latest
26
- :target: https://cutcutcodec.readthedocs.io/en/latest/
36
+ :alt: [documentation]
37
+ :target: https://cutcutcodec.readthedocs.io/latest/
27
38
 
28
39
 
29
40
  Description
30
41
  ===========
31
42
 
32
- 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``).
33
44
  It has been designed for speed and to implement some effects that are hard to find elsewhere.
34
45
  The kernel is written in python and C, so it's easy to integrate it in your own project (module ``cutcutcodec.core``).
35
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.
@@ -40,14 +51,42 @@ This software is **light**, **fast** and **highly configurable** for the followi
40
51
  #. This software allows editing the assembly graph. Compared to a timeline, this representation permits to do everything.
41
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!
42
53
  #. A complete test benchmark guarantees an excelent kernel reliability.
43
- #. Powered by `torch <https://pytorch.org/>`_ and written in dynamic C, 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.
44
55
  #. Video export is performed without a graphical interface, releasing a large part of computer resources to speed up export.
45
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.
46
58
 
47
- .. image:: https://framagit.org/robinechuca/cutcutcodec/-/raw/main/docs/gui.avif
59
+ .. image:: https://framagit.org/robinechuca/cutcutcodec/-/raw/main/doc/gui.avif
48
60
  :alt: An example of the cutcutcodec GUI.
49
61
 
50
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
+
51
90
  Features
52
91
  ========
53
92
 
@@ -65,6 +104,7 @@ Audio
65
104
  #. Add multiple tracks.
66
105
  #. Arbitrary equation on several channels of several tracks. (dynamic volume, mixing, wouawoua, ...)
67
106
  #. Finite Impulse Response (FIR) invariant filter. (reverb, equalizer, echo, delay, volume, ...)
107
+ #. Hight quality anti aliasing low pass filter (based on FIR).
68
108
 
69
109
  Video
70
110
  -----
@@ -85,61 +125,6 @@ Video
85
125
  #. Apply an arbitrary equation one several video streams.
86
126
 
87
127
 
88
- Installation
89
- ============
90
-
91
- Dependencies
92
- ------------
93
-
94
- 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>`_.
95
-
96
- In many cases, these commands should work:
97
-
98
- .. code:: bash
99
-
100
- $ sudo apt install ffmpeg
101
-
102
- 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>`_.
103
-
104
- 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).
105
-
106
- 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.
107
-
108
-
109
- Installation of the lastest development version
110
- -----------------------------------------------
111
-
112
- To install cutcutcodec from `Framagit <https://framagit.org/robinechuca/cutcutcodec>`_ source, clone cutcutcodec using ``git`` and install it using ``pip`` of ``python3``:
113
-
114
- .. code:: bash
115
-
116
- git clone https://framagit.org/robinechuca/cutcutcodec.git
117
- cd cutcutcodec/
118
- chmod +x setup.py run_tests.sh
119
- python -m pip install --upgrade pip setuptools wheel
120
- python -m pip -v install --user --editable .[optional]
121
- python -m cutcutcodec test # or `cutcutcodec-test`
122
-
123
-
124
- Installation of the stable version
125
- ----------------------------------
126
-
127
- To install cutcutcodec using `PyPI <https://pypi.org/project/cutcutcodec/>`_, just type this in a terminal:
128
-
129
- .. code:: bash
130
-
131
- $ python -m pip install cutcutcodec[gui]
132
-
133
-
134
- Running
135
- -------
136
-
137
- In a terminal, just type ``cutcutcodec-gui`` to start the GUI and ``cutcutcodec-test`` for the simple test banchmark.
138
- If these shortcuts are not recognised, it is possible to access the *cli* via ``python -m cutcutcodec``.
139
-
140
- To execute a more complete test bench, you must run the ``bash run_tests.sh`` script.
141
-
142
-
143
128
  Example
144
129
  =======
145
130
 
@@ -167,7 +152,7 @@ In this example we open a video file, add video noise, add audio A and C note, s
167
152
  [video_trunc, note_a_trunc],
168
153
  "final.mkv",
169
154
  [
170
- {"encodec": "libx264", "rate": 30, "shape": [720, 1080], "options": {"crf": "23"}},
155
+ {"encodec": "libx264", "rate": 30, "shape": (720, 1080), "options": {"crf": "23"}},
171
156
  {"encodec": "libvorbis", "rate": 44100},
172
157
  ],
173
158
  ).write()
@@ -189,4 +174,10 @@ For the complete list of changes, refer to the `git commits <https://framagit.or
189
174
 
190
175
  * Add support for ``ffmpeg 6``.
191
176
  * Able to compile ``atan`` function.
192
- * Dealing for reading non-square pixels.
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
  --------