plotagon-director 0.6.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- plotagon_director/__init__.py +3 -0
- plotagon_director/audio/__init__.py +0 -0
- plotagon_director/audio/phonemes.py +70 -0
- plotagon_director/audio/tts.py +163 -0
- plotagon_director/cli.py +308 -0
- plotagon_director/core/__init__.py +0 -0
- plotagon_director/core/archive.py +35 -0
- plotagon_director/core/decompiler.py +120 -0
- plotagon_director/core/diffplot.py +89 -0
- plotagon_director/core/doctor.py +67 -0
- plotagon_director/core/plotdoc.py +178 -0
- plotagon_director/core/validator.py +165 -0
- plotagon_director/library/__init__.py +14 -0
- plotagon_director/library/builder.py +153 -0
- plotagon_director/library/data/library.json +4819 -0
- plotagon_director-0.6.0.dist-info/METADATA +143 -0
- plotagon_director-0.6.0.dist-info/RECORD +21 -0
- plotagon_director-0.6.0.dist-info/WHEEL +5 -0
- plotagon_director-0.6.0.dist-info/entry_points.txt +2 -0
- plotagon_director-0.6.0.dist-info/licenses/LICENSE +21 -0
- plotagon_director-0.6.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: plotagon-director
|
|
3
|
+
Version: 0.6.0
|
|
4
|
+
Summary: Génération de films Plotagon Studio Desktop (.plot) avec voix Edge TTS et synchro labiale
|
|
5
|
+
Author: Mohamed Amine Ben Mallessa
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: LinkedIn, https://www.linkedin.com/in/benmallessa/
|
|
8
|
+
Keywords: plotagon,tts,video,animation
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
11
|
+
Classifier: Operating System :: OS Independent
|
|
12
|
+
Requires-Python: >=3.10
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
License-File: LICENSE
|
|
15
|
+
Requires-Dist: pyyaml
|
|
16
|
+
Requires-Dist: edge-tts
|
|
17
|
+
Requires-Dist: soundfile
|
|
18
|
+
Requires-Dist: numpy
|
|
19
|
+
Requires-Dist: truststore
|
|
20
|
+
Provides-Extra: library
|
|
21
|
+
Requires-Dist: UnityPy; extra == "library"
|
|
22
|
+
Provides-Extra: dev
|
|
23
|
+
Requires-Dist: pytest; extra == "dev"
|
|
24
|
+
Requires-Dist: UnityPy; extra == "dev"
|
|
25
|
+
Dynamic: license-file
|
|
26
|
+
|
|
27
|
+
# Plotagon Director
|
|
28
|
+
|
|
29
|
+
Génération de films [Plotagon Studio Desktop](https://www.plotagon.com) de
|
|
30
|
+
bout en bout : écriture du scénario en YAML, validation contre la bibliothèque
|
|
31
|
+
de ressources réelle, génération d'un fichier `.plot` importable dans
|
|
32
|
+
l'application officielle — avec voix custom Edge TTS et synchro labiale.
|
|
33
|
+
|
|
34
|
+
Le format `.plot` a été entièrement rétro-ingénieré et confirmé par analyse
|
|
35
|
+
d'exports officiels (v1.11.0) : ZIP contenant un document JSON `.plotdoc`
|
|
36
|
+
(liste plate d'instructions `scene`, `dialogue`, `music`, `action`) et, par
|
|
37
|
+
réplique vocalisée, un WAV mono 44,1 kHz + un fichier `.phonemes` (protobuf)
|
|
38
|
+
pour la synchro labiale. Spécification complète : `docs/PLOT_FORMAT.md`.
|
|
39
|
+
|
|
40
|
+
## Installation
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
pip install -e . # depuis un clone: commande `plotagon-director`
|
|
44
|
+
# ou directement depuis GitHub :
|
|
45
|
+
pip install git+https://github.com/mohamed-amine-ben-mallessa/plotagon-director.git
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
La bibliothèque de ressources (`library.json`) est embarquée dans le package :
|
|
49
|
+
le générateur fonctionne sans installation Plotagon. L'extra `[library]`
|
|
50
|
+
(`pip install -e .[library]`, ajoute UnityPy) n'est nécessaire que pour
|
|
51
|
+
**reconstruire** la bibliothèque depuis une installation Plotagon.
|
|
52
|
+
|
|
53
|
+
## Usage
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
# Écrire un scénario
|
|
57
|
+
plotagon-director new "Mon film" # squelette commenté
|
|
58
|
+
plotagon-director list scenes --filter cafe # aussi: characters, expressions,
|
|
59
|
+
plotagon-director list actions # music, sounds, voices
|
|
60
|
+
plotagon-director positions restaurants.cafe # slots d'acteurs d'une scène
|
|
61
|
+
plotagon-director voices fr # voix Edge TTS disponibles
|
|
62
|
+
plotagon-director say "Bonjour" fr-FR-DeniseNeural # écouter une voix
|
|
63
|
+
|
|
64
|
+
# Valider puis générer
|
|
65
|
+
plotagon-director validate mon-film.yaml [--strict]
|
|
66
|
+
plotagon-director build mon-film.yaml mon-film.plot
|
|
67
|
+
# --no-voices : hors ligne | --srt subs.srt : sous-titres
|
|
68
|
+
# --no-cache : resynthétise tout (sinon cache TTS automatique)
|
|
69
|
+
plotagon-director batch scenarios/ sorties/ # tous les .yaml d'un dossier
|
|
70
|
+
|
|
71
|
+
# Importer mon-film.plot dans Plotagon Studio (menu import)
|
|
72
|
+
|
|
73
|
+
# Analyse / rétro-ingénierie
|
|
74
|
+
plotagon-director parse export.plot # JSON brut d'un .plot
|
|
75
|
+
plotagon-director decompile export.plot film.yaml # .plot -> YAML éditable
|
|
76
|
+
plotagon-director diff avant.plot apres.plot # isoler un format inconnu
|
|
77
|
+
plotagon-director doctor # diagnostic environnement
|
|
78
|
+
|
|
79
|
+
# (Reconstruire la bibliothèque depuis une installation Plotagon)
|
|
80
|
+
python -m plotagon_director.library.builder [chemin/builtincontentmanifest.json]
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Exemple de scénario
|
|
84
|
+
|
|
85
|
+
```yaml
|
|
86
|
+
project:
|
|
87
|
+
title: "Conversation au café"
|
|
88
|
+
|
|
89
|
+
cast:
|
|
90
|
+
- ref: paul
|
|
91
|
+
character: news.paul
|
|
92
|
+
name: "Paul"
|
|
93
|
+
voice: fr-FR-HenriNeural # optionnel : voix Edge TTS (+ rate/pitch)
|
|
94
|
+
- ref: lucy
|
|
95
|
+
character: news.lucy
|
|
96
|
+
name: "Lucy"
|
|
97
|
+
voice: fr-FR-DeniseNeural
|
|
98
|
+
|
|
99
|
+
scenes:
|
|
100
|
+
- scene: restaurants.cafe
|
|
101
|
+
music: music.corny # optionnel (music.stopmusic pour arrêter)
|
|
102
|
+
actors:
|
|
103
|
+
- ref: paul
|
|
104
|
+
position: Table1 # `plotagon-director positions restaurants.cafe`
|
|
105
|
+
- ref: lucy
|
|
106
|
+
position: Table2
|
|
107
|
+
dialogue:
|
|
108
|
+
- actor: paul
|
|
109
|
+
expression: happy
|
|
110
|
+
text: "Bonjour Lucy !"
|
|
111
|
+
camera: wide shot # optionnel : 10 types (docs/PLOT_FORMAT.md)
|
|
112
|
+
- actor: paul # interaction à 2 personnages
|
|
113
|
+
action: handshake
|
|
114
|
+
target: lucy
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
Bibliothèque embarquée : 205 scènes (953 positions), 53 personnages,
|
|
118
|
+
88 expressions, 15 actions, 38 musiques, 132 sons.
|
|
119
|
+
|
|
120
|
+
## Architecture
|
|
121
|
+
|
|
122
|
+
- `plotagon_director/core/` — modèle `.plotdoc`, conteneur ZIP, validateur,
|
|
123
|
+
décompilateur, diff
|
|
124
|
+
- `plotagon_director/audio/` — Edge TTS → WAV conforme (cache + parallèle),
|
|
125
|
+
phonèmes/lip-sync
|
|
126
|
+
- `plotagon_director/library/` — builder du catalogue + `data/library.json`
|
|
127
|
+
- `docs/` — rétro-ingénierie du format (`PLOT_FORMAT.md`), API interne de
|
|
128
|
+
l'appli (`APP_JS_ANALYSIS.md`), état des connaissances (`FINDINGS.md`)
|
|
129
|
+
- `SKILL.md` — utilisation comme skill Claude Code
|
|
130
|
+
|
|
131
|
+
## Principes
|
|
132
|
+
|
|
133
|
+
- Aucun mod, aucun binaire tiers, aucun credential.
|
|
134
|
+
- Installation officielle en lecture seule.
|
|
135
|
+
- Seuls les éléments confirmés par un export officiel sont générés ; le
|
|
136
|
+
reste (effets visuels, sons importés) est documenté UNKNOWN dans
|
|
137
|
+
`docs/FINDINGS.md`.
|
|
138
|
+
|
|
139
|
+
## Tests
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
python -m pytest tests/ -q
|
|
143
|
+
```
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
plotagon_director/__init__.py,sha256=mcO39uUlfKH-4JWkU8ODKOBQALUPC-vj65q7NwD8FG0,104
|
|
2
|
+
plotagon_director/cli.py,sha256=0DcheP1hp2NtsJ6AhAK0L2LBtN29w1yBBsEe59rUPGI,11491
|
|
3
|
+
plotagon_director/audio/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
plotagon_director/audio/phonemes.py,sha256=_FhBDoRZcqloRE4or4V42F5zQ7UdDr78AwApDuuLuvY,2294
|
|
5
|
+
plotagon_director/audio/tts.py,sha256=4SAUIoLD4Ul-HbCmkJ3jQn6yIBqTr3FCdVn8fb7xHsM,4914
|
|
6
|
+
plotagon_director/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
|
+
plotagon_director/core/archive.py,sha256=eE9qx9euknOLX3A4kwvsV8V6qQFWQ1FkmbIqSz0qGPM,1210
|
|
8
|
+
plotagon_director/core/decompiler.py,sha256=_L50sLj-7uunLcM4ipQeab2q0TVlbM-RQDudKI_nUrI,4226
|
|
9
|
+
plotagon_director/core/diffplot.py,sha256=6BbfxvMoBLnIeCybS_mDpvC0Qbe7wnU1PQH-pRHHvMw,3313
|
|
10
|
+
plotagon_director/core/doctor.py,sha256=VORT_F-Bos4b03nx3_Ss15NHI1f5TjInjNRHaGqXIrA,2524
|
|
11
|
+
plotagon_director/core/plotdoc.py,sha256=DYPXo8DnaNzIBDPL9CRnNzB8ZYaHTvd6Zn3aWSKO-aw,6717
|
|
12
|
+
plotagon_director/core/validator.py,sha256=GEN9iFonjtd9xOziCdlSdKs4y1b9dBBekt8IHrEgaOw,6418
|
|
13
|
+
plotagon_director/library/__init__.py,sha256=r-yJRvTfeKD8_dt088I-BJPNLLhvLP3VAGKdoRsZ3cw,407
|
|
14
|
+
plotagon_director/library/builder.py,sha256=pYVT-meNhw7udRznJWerUCiHNBkdMUYy-lgRWkIaWAE,5387
|
|
15
|
+
plotagon_director/library/data/library.json,sha256=yZnDikbNOFsqTeLD2lnFOIv4KG3wyLgnpmFI12_eyTQ,103103
|
|
16
|
+
plotagon_director-0.6.0.dist-info/licenses/LICENSE,sha256=h_HNM_Q86IV2VZ6kIbI7InhxT3xgJOzHqyu7Qcn28M4,1083
|
|
17
|
+
plotagon_director-0.6.0.dist-info/METADATA,sha256=kScCHFpPZi_0nBaezMu96n5vEU43pd0Kb0ne84v4cvc,5409
|
|
18
|
+
plotagon_director-0.6.0.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
19
|
+
plotagon_director-0.6.0.dist-info/entry_points.txt,sha256=OAM5qd6FEEMAzOs7-jExJZUyZH1NepZ5MtuJzORoc0Q,65
|
|
20
|
+
plotagon_director-0.6.0.dist-info/top_level.txt,sha256=hNkyEFDlOAVgwKtLzmG7BuzvuwHFHE6MRScgAOFvwRY,18
|
|
21
|
+
plotagon_director-0.6.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Mohamed Amine Ben Mallessa
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
plotagon_director
|