notebooklm-py 0.1.1__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.
notebooklm/__init__.py ADDED
@@ -0,0 +1,108 @@
1
+ """NotebookLM Automation - RPC-based automation for Google NotebookLM.
2
+
3
+ Example usage:
4
+ from notebooklm import NotebookLMClient
5
+
6
+ async with NotebookLMClient.from_storage() as client:
7
+ notebooks = await client.notebooks.list()
8
+ await client.sources.add_url(notebook_id, "https://example.com")
9
+ result = await client.chat.ask(notebook_id, "What is this about?")
10
+
11
+ Note:
12
+ This library uses undocumented Google APIs that can change without notice.
13
+ See docs/troubleshooting.md for guidance on handling API changes.
14
+ """
15
+
16
+ __version__ = "0.1.1"
17
+
18
+ # Public API: Authentication
19
+ from .auth import AuthTokens, DEFAULT_STORAGE_PATH
20
+
21
+ # Public API: Client
22
+ from .client import NotebookLMClient
23
+
24
+ # Public API: Types and dataclasses
25
+ from .types import (
26
+ Notebook,
27
+ NotebookDescription,
28
+ SuggestedTopic,
29
+ Source,
30
+ Artifact,
31
+ GenerationStatus,
32
+ ReportSuggestion,
33
+ Note,
34
+ ConversationTurn,
35
+ AskResult,
36
+ ChatMode,
37
+ # Exceptions
38
+ SourceError,
39
+ SourceProcessingError,
40
+ SourceTimeoutError,
41
+ SourceNotFoundError,
42
+ # Enums for configuration
43
+ StudioContentType,
44
+ AudioFormat,
45
+ AudioLength,
46
+ VideoFormat,
47
+ VideoStyle,
48
+ QuizQuantity,
49
+ QuizDifficulty,
50
+ InfographicOrientation,
51
+ InfographicDetail,
52
+ SlideDeckFormat,
53
+ SlideDeckLength,
54
+ ReportFormat,
55
+ ChatGoal,
56
+ ChatResponseLength,
57
+ DriveMimeType,
58
+ ExportType,
59
+ SourceStatus,
60
+ )
61
+
62
+ # Public API: RPC errors (needed for exception handling)
63
+ from .rpc import RPCError
64
+
65
+ __all__ = [
66
+ "__version__",
67
+ # Client (main entry point)
68
+ "NotebookLMClient",
69
+ # Auth
70
+ "AuthTokens",
71
+ "DEFAULT_STORAGE_PATH",
72
+ # Types
73
+ "Notebook",
74
+ "NotebookDescription",
75
+ "SuggestedTopic",
76
+ "Source",
77
+ "Artifact",
78
+ "GenerationStatus",
79
+ "ReportSuggestion",
80
+ "Note",
81
+ "ConversationTurn",
82
+ "AskResult",
83
+ "ChatMode",
84
+ # Exceptions
85
+ "SourceError",
86
+ "SourceProcessingError",
87
+ "SourceTimeoutError",
88
+ "SourceNotFoundError",
89
+ "RPCError",
90
+ # Enums
91
+ "StudioContentType",
92
+ "AudioFormat",
93
+ "AudioLength",
94
+ "VideoFormat",
95
+ "VideoStyle",
96
+ "QuizQuantity",
97
+ "QuizDifficulty",
98
+ "InfographicOrientation",
99
+ "InfographicDetail",
100
+ "SlideDeckFormat",
101
+ "SlideDeckLength",
102
+ "ReportFormat",
103
+ "ChatGoal",
104
+ "ChatResponseLength",
105
+ "DriveMimeType",
106
+ "ExportType",
107
+ "SourceStatus",
108
+ ]