aviutl2-api 0.1.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.
@@ -0,0 +1,87 @@
1
+ """AviUtl2 Project API - Python API for AviUtl ver.2 project files.
2
+
3
+ This library provides:
4
+ - Parser: Read .aup2 files into Python objects
5
+ - Serializer: Write Python objects back to .aup2 format
6
+ - JSON Conversion: Export/import as JSON for LLM processing
7
+
8
+ Example usage:
9
+ from aviutl2_api import parse_file, to_json
10
+
11
+ # Load a project
12
+ project = parse_file("my_project.aup2")
13
+
14
+ # Access scene data
15
+ scene = project.scenes[0]
16
+ print(f"Resolution: {scene.width}x{scene.height} @ {scene.fps}fps")
17
+
18
+ # Export as JSON
19
+ json_str = to_json(project)
20
+ """
21
+
22
+ __version__ = "0.1.0"
23
+
24
+ # Models
25
+ from aviutl2_api.models import (
26
+ AnimatedValue,
27
+ AnimationParams,
28
+ Effect,
29
+ Project,
30
+ PropertyValue,
31
+ Scene,
32
+ StaticValue,
33
+ TimelineObject,
34
+ )
35
+
36
+ # Parser
37
+ from aviutl2_api.parser import (
38
+ Aup2ParseError,
39
+ Aup2Parser,
40
+ parse_file,
41
+ parse_string,
42
+ )
43
+
44
+ # Serializer
45
+ from aviutl2_api.serializer import (
46
+ Aup2Serializer,
47
+ serialize,
48
+ serialize_to_file,
49
+ )
50
+
51
+ # JSON Converter
52
+ from aviutl2_api.json_converter import (
53
+ JsonConverter,
54
+ from_dict,
55
+ from_json,
56
+ to_dict,
57
+ to_json,
58
+ )
59
+
60
+ __all__ = [
61
+ # Version
62
+ "__version__",
63
+ # Models
64
+ "Project",
65
+ "Scene",
66
+ "TimelineObject",
67
+ "Effect",
68
+ "StaticValue",
69
+ "AnimatedValue",
70
+ "AnimationParams",
71
+ "PropertyValue",
72
+ # Parser
73
+ "Aup2Parser",
74
+ "Aup2ParseError",
75
+ "parse_file",
76
+ "parse_string",
77
+ # Serializer
78
+ "Aup2Serializer",
79
+ "serialize",
80
+ "serialize_to_file",
81
+ # JSON
82
+ "JsonConverter",
83
+ "to_json",
84
+ "from_json",
85
+ "to_dict",
86
+ "from_dict",
87
+ ]