pycapcut 0.0.2__tar.gz → 0.0.4__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 (55) hide show
  1. pycapcut-0.0.4/MANIFEST.in +19 -0
  2. pycapcut-0.0.4/PKG-INFO +124 -0
  3. {pycapcut-0.0.2 → pycapcut-0.0.4}/README.md +247 -83
  4. pycapcut-0.0.4/english_readme.md +711 -0
  5. {pycapcut-0.0.2 → pycapcut-0.0.4}/pycapcut/__init__.py +8 -2
  6. {pycapcut-0.0.2 → pycapcut-0.0.4}/pycapcut/audio_segment.py +30 -45
  7. {pycapcut-0.0.2 → pycapcut-0.0.4}/pycapcut/draft_folder.py +3 -1
  8. {pycapcut-0.0.2 → pycapcut-0.0.4}/pycapcut/jianying_controller.py +16 -16
  9. {pycapcut-0.0.2 → pycapcut-0.0.4}/pycapcut/local_materials.py +55 -5
  10. {pycapcut-0.0.2 → pycapcut-0.0.4}/pycapcut/metadata/__init__.py +4 -0
  11. {pycapcut-0.0.2 → pycapcut-0.0.4}/pycapcut/metadata/mask_meta.py +1 -1
  12. pycapcut-0.0.4/pycapcut/metadata/mix_mode_meta.py +18 -0
  13. {pycapcut-0.0.2 → pycapcut-0.0.4}/pycapcut/metadata/text_intro.py +1 -1
  14. {pycapcut-0.0.2 → pycapcut-0.0.4}/pycapcut/metadata/text_outro.py +1 -1
  15. pycapcut-0.0.4/pycapcut/metadata/tone_effect.py +54 -0
  16. {pycapcut-0.0.2 → pycapcut-0.0.4}/pycapcut/script_file.py +39 -7
  17. {pycapcut-0.0.2 → pycapcut-0.0.4}/pycapcut/segment.py +39 -3
  18. {pycapcut-0.0.2 → pycapcut-0.0.4}/pycapcut/text_segment.py +60 -39
  19. {pycapcut-0.0.2 → pycapcut-0.0.4}/pycapcut/time_util.py +57 -2
  20. {pycapcut-0.0.2 → pycapcut-0.0.4}/pycapcut/video_segment.py +187 -4
  21. pycapcut-0.0.4/pycapcut.egg-info/PKG-INFO +124 -0
  22. {pycapcut-0.0.2 → pycapcut-0.0.4}/pycapcut.egg-info/SOURCES.txt +5 -1
  23. pycapcut-0.0.4/pypi_readme.md +110 -0
  24. pycapcut-0.0.4/requirements.txt +3 -0
  25. {pycapcut-0.0.2 → pycapcut-0.0.4}/setup.py +11 -5
  26. pycapcut-0.0.2/PKG-INFO +0 -88
  27. pycapcut-0.0.2/pycapcut/config.py +0 -69
  28. pycapcut-0.0.2/pycapcut/metadata/tone_effect.py +0 -107
  29. pycapcut-0.0.2/pycapcut.egg-info/PKG-INFO +0 -88
  30. {pycapcut-0.0.2 → pycapcut-0.0.4}/pycapcut/animation.py +0 -0
  31. {pycapcut-0.0.2 → pycapcut-0.0.4}/pycapcut/assets/__init__.py +0 -0
  32. {pycapcut-0.0.2 → pycapcut-0.0.4}/pycapcut/assets/draft_content_template.json +0 -0
  33. {pycapcut-0.0.2 → pycapcut-0.0.4}/pycapcut/assets/draft_meta_info.json +0 -0
  34. {pycapcut-0.0.2 → pycapcut-0.0.4}/pycapcut/effect_segment.py +0 -0
  35. {pycapcut-0.0.2 → pycapcut-0.0.4}/pycapcut/exceptions.py +0 -0
  36. {pycapcut-0.0.2 → pycapcut-0.0.4}/pycapcut/keyframe.py +0 -0
  37. {pycapcut-0.0.2 → pycapcut-0.0.4}/pycapcut/metadata/audio_scene_effect.py +0 -0
  38. {pycapcut-0.0.2 → pycapcut-0.0.4}/pycapcut/metadata/effect_meta.py +0 -0
  39. {pycapcut-0.0.2 → pycapcut-0.0.4}/pycapcut/metadata/filter_meta.py +0 -0
  40. {pycapcut-0.0.2 → pycapcut-0.0.4}/pycapcut/metadata/font_meta.py +0 -0
  41. {pycapcut-0.0.2 → pycapcut-0.0.4}/pycapcut/metadata/speech_to_song.py +0 -0
  42. {pycapcut-0.0.2 → pycapcut-0.0.4}/pycapcut/metadata/text_loop.py +0 -0
  43. {pycapcut-0.0.2 → pycapcut-0.0.4}/pycapcut/metadata/transition_meta.py +0 -0
  44. {pycapcut-0.0.2 → pycapcut-0.0.4}/pycapcut/metadata/video_character_effect.py +0 -0
  45. {pycapcut-0.0.2 → pycapcut-0.0.4}/pycapcut/metadata/video_group_animation.py +0 -0
  46. {pycapcut-0.0.2 → pycapcut-0.0.4}/pycapcut/metadata/video_intro.py +0 -0
  47. {pycapcut-0.0.2 → pycapcut-0.0.4}/pycapcut/metadata/video_outro.py +0 -0
  48. {pycapcut-0.0.2 → pycapcut-0.0.4}/pycapcut/metadata/video_scene_effect.py +0 -0
  49. {pycapcut-0.0.2 → pycapcut-0.0.4}/pycapcut/template_mode.py +0 -0
  50. {pycapcut-0.0.2 → pycapcut-0.0.4}/pycapcut/track.py +0 -0
  51. {pycapcut-0.0.2 → pycapcut-0.0.4}/pycapcut/util.py +0 -0
  52. {pycapcut-0.0.2 → pycapcut-0.0.4}/pycapcut.egg-info/dependency_links.txt +0 -0
  53. {pycapcut-0.0.2 → pycapcut-0.0.4}/pycapcut.egg-info/requires.txt +0 -0
  54. {pycapcut-0.0.2 → pycapcut-0.0.4}/pycapcut.egg-info/top_level.txt +0 -0
  55. {pycapcut-0.0.2 → pycapcut-0.0.4}/setup.cfg +0 -0
@@ -0,0 +1,19 @@
1
+ include README.md
2
+ include english_readme.md
3
+ include pypi_readme.md
4
+ include requirements.txt
5
+ recursive-include pycapcut *.py *.json
6
+
7
+ prune tests
8
+ prune tools
9
+ prune ignored
10
+ prune readme_assets
11
+ prune build
12
+ prune dist
13
+ prune .git
14
+ prune .vscode
15
+
16
+ exclude AGENTS.md AGENTS.local.md CLAUDE.md
17
+ exclude demo.py generate_example.py replace_example.py temp.py
18
+ exclude .flake8 .gitignore
19
+ global-exclude *.lnk *.log *.pyc *.pyo *.pyd .DS_Store Thumbs.db
@@ -0,0 +1,124 @@
1
+ Metadata-Version: 2.1
2
+ Name: pycapcut
3
+ Version: 0.0.4
4
+ Summary: A lightweight, flexible Python tool for generating and editing CapCut drafts
5
+ Home-page: https://github.com/GuanYixuan/pycapcut
6
+ Author: gary318
7
+ License: UNKNOWN
8
+ Description: <!-- Generated from english_readme.md by tools/generate_pypi_readme.py. Do not edit directly. -->
9
+
10
+ # pyCapCut
11
+
12
+ ### A lightweight, flexible Python tool for generating and editing CapCut drafts
13
+
14
+ [中文版本](https://github.com/GuanYixuan/pyCapCut/blob/main/README.md)
15
+
16
+ > This project shares its origins with [PyJianYingDraft](https://github.com/GuanYixuan/pyJianYingDraft) and targets CapCut drafts.
17
+
18
+ > ⚠️ **0.1.0 preview**: The next version will align track ordering and references with pyJianYingDraft, introduce `append_track(s)` / `insert_track(s)` and `TrackSpec` / `TrackRef`, and remove `add_track`. Scripts that depend on the old API or track layering behavior will need updating; a migration guide will accompany the release. To keep the current behavior, pin `pip install pycapcut==0.0.4` and refer to that version's [documentation](https://github.com/GuanYixuan/pyCapCut/blob/0.0.4/english_readme.md) and [example](https://github.com/GuanYixuan/pyCapCut/blob/0.0.4/demo.py).
19
+
20
+ > 📢 Join the [Discord server](https://discord.gg/WfHgGQvhyW) to discuss usage and new features
21
+
22
+ ## Workflow
23
+
24
+ ![Workflow](https://github.com/GuanYixuan/pyCapCut/raw/main/readme_assets/%E4%BD%BF%E7%94%A8%E6%80%9D%E8%B7%AF.jpg)
25
+
26
+ Open the generated draft in CapCut and export the video manually. Automated export is currently unsupported.
27
+
28
+ # Feature List
29
+
30
+ ✅ Supported. The validation version column lists confirmed CapCut versions; “—” means no version is recorded. It does not specify a minimum version or guarantee compatibility with every version.
31
+
32
+ ### Video and Image
33
+
34
+ | Feature | Support | Validation version |
35
+ |---|---|---|
36
+ | Local video/image media and [timing](https://github.com/GuanYixuan/pyCapCut/blob/main/english_readme.md#source-trimming-and-global-speed) | ✅ | 8.2.0 |
37
+ | [Global video adjustments](https://github.com/GuanYixuan/pyCapCut/blob/main/english_readme.md#global-video-adjustments) | ✅ | 8.2.0 |
38
+ | [Video keyframes](https://github.com/GuanYixuan/pyCapCut/blob/main/english_readme.md#keyframes) | ✅ | — |
39
+ | [Video masks](https://github.com/GuanYixuan/pyCapCut/blob/main/english_readme.md#masks) | ✅ | 9.5.0.4050 |
40
+ | [Video chroma keying](https://github.com/GuanYixuan/pyCapCut/blob/main/english_readme.md#add-chroma-keying) | ✅ | 9.5.0.4050 |
41
+ | [Video blend modes](https://github.com/GuanYixuan/pyCapCut/blob/main/english_readme.md#set-segment-blend-mode) | ✅ | 9.5.0.4050 |
42
+ | Video background fill [(example)](https://github.com/GuanYixuan/pyCapCut/blob/main/demo.py) | ✅ | — |
43
+ | [Audio fades](https://github.com/GuanYixuan/pyCapCut/blob/main/english_readme.md#audio-fades) for videos with audio | ✅ | — |
44
+ | [Pitch change during speed adjustment](https://github.com/GuanYixuan/pyCapCut/blob/main/english_readme.md#pitch-change-during-speed-adjustment) for videos with audio | ✅ | 9.5.0.4050 |
45
+
46
+ ### Stickers
47
+
48
+ | Feature | Support | Validation version |
49
+ |---|---|---|
50
+ | Add stickers using [resource metadata](https://github.com/GuanYixuan/pyCapCut/blob/main/english_readme.md#extract-resource-metadata) | ✅ | — |
51
+ | [Sticker keyframes](https://github.com/GuanYixuan/pyCapCut/blob/main/english_readme.md#keyframes) | ✅ | — |
52
+
53
+ ### Audio
54
+
55
+ | Feature | Support | Validation version |
56
+ |---|---|---|
57
+ | Local audio media and [timing](https://github.com/GuanYixuan/pyCapCut/blob/main/english_readme.md#source-trimming-and-global-speed) | ✅ | 9.5.0.4050 |
58
+ | [Audio fades](https://github.com/GuanYixuan/pyCapCut/blob/main/english_readme.md#audio-fades), volume and [keyframes](https://github.com/GuanYixuan/pyCapCut/blob/main/english_readme.md#keyframes) | ✅ | — |
59
+ | [Pitch change during speed adjustment](https://github.com/GuanYixuan/pyCapCut/blob/main/english_readme.md#pitch-change-during-speed-adjustment) | ✅ | 9.5.0.4050 |
60
+ | [Scene audio effects](https://github.com/GuanYixuan/pyCapCut/blob/main/english_readme.md#add-segment-effects) | ✅ | — |
61
+ | [Tone effects](https://github.com/GuanYixuan/pyCapCut/blob/main/english_readme.md#add-segment-effects) | ✅ | 9.5.0.4050 (花栗鼠) |
62
+
63
+ ### Tracks
64
+
65
+ | Feature | Support | Validation version |
66
+ |---|---|---|
67
+ | [Add tracks and segments](https://github.com/GuanYixuan/pyCapCut/blob/main/english_readme.md#multi-track-operations) | ✅ | 8.2.0 |
68
+ | [Track layer ordering](https://github.com/GuanYixuan/pyCapCut/blob/main/english_readme.md#multi-track-operations) | ✅ | 8.2.0 (video tracks) |
69
+ | [Main track magnet](https://github.com/GuanYixuan/pyCapCut/blob/main/english_readme.md#main-track-magnet) | ✅ | 8.2.0 |
70
+
71
+ ### Effects, Filters, and Transitions
72
+
73
+ | Feature | Support | Validation version |
74
+ |---|---|---|
75
+ | [Video segment animations](https://github.com/GuanYixuan/pyCapCut/blob/main/english_readme.md#add-segment-animations) | ✅ | — |
76
+ | [Video segment effects](https://github.com/GuanYixuan/pyCapCut/blob/main/english_readme.md#add-segment-effects) | ✅ | — |
77
+ | [Video segment filters](https://github.com/GuanYixuan/pyCapCut/blob/main/english_readme.md#add-segment-filters) | ✅ | — |
78
+ | [Standalone effect and filter tracks](https://github.com/GuanYixuan/pyCapCut/blob/main/english_readme.md#effect-and-filter-tracks) | ✅ | — |
79
+ | Transitions [(example)](https://github.com/GuanYixuan/pyCapCut/blob/main/demo.py) | ✅ | — |
80
+
81
+ ### Text and Subtitles
82
+
83
+ | Feature | Support | Validation version |
84
+ |---|---|---|
85
+ | [Text and styles](https://github.com/GuanYixuan/pyCapCut/blob/main/english_readme.md#add-text) | ✅ | 8.2.0 |
86
+ | [Fonts](https://github.com/GuanYixuan/pyCapCut/blob/main/english_readme.md#add-text) | ✅ | 9.5.0.4050 |
87
+ | [Text keyframes](https://github.com/GuanYixuan/pyCapCut/blob/main/english_readme.md#keyframes) | ✅ | — |
88
+ | [Text animations](https://github.com/GuanYixuan/pyCapCut/blob/main/english_readme.md#add-segment-animations) | ✅ | — |
89
+ | Text stroke, background and shadow | ✅ | — |
90
+ | Text bubbles and fancy text [(example)](https://github.com/GuanYixuan/pyCapCut/blob/main/demo.py) | ✅ | 9.5.0.4050 (fancy text) |
91
+ | [Automatic line wrapping](https://github.com/GuanYixuan/pyCapCut/blob/main/english_readme.md#automatic-line-wrapping) | ✅ | — |
92
+ | [Import SRT subtitles](https://github.com/GuanYixuan/pyCapCut/blob/main/english_readme.md#import-subtitles) | ✅ | — |
93
+
94
+ ### Template Mode
95
+
96
+ | Feature | Support | Validation version |
97
+ |---|---|---|
98
+ | [Load plaintext drafts](https://github.com/GuanYixuan/pyCapCut/blob/main/english_readme.md#load-template) | ✅ | 8.2.0 |
99
+ | [Replace media by name](https://github.com/GuanYixuan/pyCapCut/blob/main/english_readme.md#replace-media-by-name) | ✅ | — |
100
+ | [Replace media by segment](https://github.com/GuanYixuan/pyCapCut/blob/main/english_readme.md#replace-media-by-segment) | ✅ | — |
101
+ | [Replace text content](https://github.com/GuanYixuan/pyCapCut/blob/main/english_readme.md#replace-text-segment-content) | ✅ | — |
102
+ | [Import template tracks](https://github.com/GuanYixuan/pyCapCut/blob/main/english_readme.md#import-tracks-from-a-template-draft) | ✅ | — |
103
+ | [Extract resource metadata](https://github.com/GuanYixuan/pyCapCut/blob/main/english_readme.md#extract-resource-metadata) | ✅ | — |
104
+
105
+ # Installation
106
+
107
+ pyCapCut now supports pip installation (excluding demo).
108
+
109
+ ```bash
110
+ pip install pycapcut
111
+ ```
112
+
113
+ ### Cross-platform Compatibility
114
+
115
+ Install the library on Windows, Linux or macOS to generate and edit drafts. **Open the generated drafts in CapCut for Windows and export videos manually.**
116
+
117
+ For complete usage examples, see the [full documentation](https://github.com/GuanYixuan/pyCapCut/blob/main/english_readme.md#quick-start).
118
+
119
+ Platform: UNKNOWN
120
+ Classifier: Programming Language :: Python :: 3
121
+ Classifier: Development Status :: 4 - Beta
122
+ Classifier: Topic :: Multimedia :: Video
123
+ Requires-Python: >=3.8
124
+ Description-Content-Type: text/markdown