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 +108 -0
- notebooklm/_artifacts.py +1460 -0
- notebooklm/_chat.py +386 -0
- notebooklm/_core.py +252 -0
- notebooklm/_notebooks.py +273 -0
- notebooklm/_notes.py +308 -0
- notebooklm/_research.py +256 -0
- notebooklm/_sources.py +752 -0
- notebooklm/auth.py +427 -0
- notebooklm/cli/__init__.py +136 -0
- notebooklm/cli/artifact.py +472 -0
- notebooklm/cli/chat.py +246 -0
- notebooklm/cli/download.py +720 -0
- notebooklm/cli/download_helpers.py +135 -0
- notebooklm/cli/generate.py +702 -0
- notebooklm/cli/grouped.py +75 -0
- notebooklm/cli/helpers.py +494 -0
- notebooklm/cli/note.py +222 -0
- notebooklm/cli/notebook.py +247 -0
- notebooklm/cli/options.py +93 -0
- notebooklm/cli/research.py +215 -0
- notebooklm/cli/session.py +302 -0
- notebooklm/cli/skill.py +153 -0
- notebooklm/cli/source.py +708 -0
- notebooklm/client.py +175 -0
- notebooklm/data/SKILL.md +378 -0
- notebooklm/notebooklm_cli.py +112 -0
- notebooklm/paths.py +105 -0
- notebooklm/rpc/__init__.py +66 -0
- notebooklm/rpc/decoder.py +250 -0
- notebooklm/rpc/encoder.py +98 -0
- notebooklm/rpc/types.py +273 -0
- notebooklm/types.py +636 -0
- notebooklm_py-0.1.1.dist-info/METADATA +208 -0
- notebooklm_py-0.1.1.dist-info/RECORD +38 -0
- notebooklm_py-0.1.1.dist-info/WHEEL +4 -0
- notebooklm_py-0.1.1.dist-info/entry_points.txt +2 -0
- notebooklm_py-0.1.1.dist-info/licenses/LICENSE +21 -0
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
|
+
]
|