Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
update tool doc generation flow
Rahul Tarak committed
Jun 18, 2025 at 21:00 UTC
0b1ab1054ce0ad610ae6ef8e878c570fe252aa44
8 files changed
+590
-269
.github/workflows/publish_docs.yml
-8
@@ -20,20 +20,12 @@ jobs:
20
21
- name: Install dependencies
22
run: pnpm install
23
-
24
- - name: Install git
25
- run: |
26
- apt-get update && apt-get install -y git
27
-
23
- name: Install Python Dependencies
24
working-directory: ./fern
25
run: |
26
uv sync
27
uv run composio apps generate-types
28
34
- - name: Install Fern
35
- run: npm install -g fern-api
36
-
29
- name: Build documentation with Turbo
30
working-directory: ./fern
31
run: pnpm turbo run build
fern/generators/tool_doc_generator/base_docs.py
new
+11
@@ -0,0 +1,11 @@
1
+base_layout = [
2
+ {
3
+ "section": "Tool",
4
+ "contents": [
5
+ {
6
+ "page": "Introduction",
7
+ "path": "tools/introduction.mdx"
8
+ }
9
+ ]
10
+ }
11
+]
fern/generators/tool_doc_generator/main.py
+431
-208
@@ -18,6 +18,39 @@ import typing as t
18
from dataclasses import dataclass, field
19
from pathlib import Path
20
21
+# Disable telemetry to avoid background network requests
22
+os.environ["COMPOSIO_TELEMETRY_DISABLED"] = "true"
23
+os.environ["COMPOSIO_DISABLE_TELEMETRY"] = "true"
24
+os.environ["TELEMETRY_DISABLED"] = "true"
25
+
26
+# Import MDX linting functionality
27
+from composio import Composio
28
+from composio.client.types import (
29
+ Tool,
30
+ toolkit_list_response,
31
+ toolkit_retrieve_response,
32
+)
33
+from dotenv import load_dotenv
34
+from inflection import titleize
35
+from generators.tool_doc_generator.mdx_formatter import MDX
36
+from generators.tool_doc_generator.base_docs import base_layout
37
+
38
+# Import from the same directory
39
+
40
+
41
+IMPORTANT_TOOL_SLUGS = [
42
+ "twitter",
43
+ "gmail",
44
+ "github",
45
+ "notion",
46
+ "googlesheets",
47
+ "shopify",
48
+ "stripe",
49
+]
50
+
51
+
52
+
53
+
54
try:
55
from ruamel.yaml import YAML
56
@@ -32,21 +65,39 @@ except ImportError:
65
"ruamel.yaml not found, falling back to standard yaml. Install with: uv pip install ruamel.yaml"
66
)
67
35
-# Import MDX linting functionality
36
-from composio.client.collections import Actions, AppAuthScheme, ActionModel
37
-from composio_openai import App, ComposioToolSet
38
-from dotenv import load_dotenv
39
-from inflection import titleize
68
41
-# Import from the same directory
42
-sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
43
-from mdx_formatter import MDX
69
70
71
# Configure logging
72
logger = logging.getLogger(__name__)
73
74
75
+class TelemetryFilter(logging.Filter):
76
+ """Filter out telemetry-related log messages"""
77
+
78
+ def filter(self, record):
79
+ # Filter out telemetry-related messages
80
+ message = record.getMessage()
81
+ telemetry_keywords = [
82
+ "telemetry.composio.dev",
83
+ "telemetry",
84
+ "TELEMETRY",
85
+ "metrics/invocations",
86
+ "errors"
87
+ ]
88
+
89
+ # Also filter by logger name
90
+ if "telemetry" in record.name.lower():
91
+ return False
92
+
93
+ # Filter by message content
94
+ for keyword in telemetry_keywords:
95
+ if keyword in message:
96
+ return False
97
+
98
+ return True
99
+
100
+
101
def sanitize_html(text: str) -> str:
102
"""
103
Sanitize HTML content by removing HTML tags and decoding HTML entities.
@@ -114,17 +165,18 @@ class DocumentContent:
165
166
_blocks: list[str] = field(default_factory=list)
167
117
- def add_frontmatter(self, app_name: str) -> "DocumentContent":
168
+ def add_frontmatter(self, app_name: str, category: t.Optional[str] = None) -> "DocumentContent":
169
"""
170
Add frontmatter section to the document.
171
172
Args:
173
app_name: The name of the application
174
+ category: The category of the application
175
176
Returns:
177
Self reference for method chaining
178
"""
127
- self._blocks.append(MDX.as_frontmatter(app_name))
179
+ self._blocks.append(MDX.as_frontmatter(app_name, category))
180
return self
181
182
def add_overview_section(
@@ -132,7 +184,7 @@ class DocumentContent:
184
app_name: str,
185
app_id: str,
186
description: str,
135
- auth_schemes: t.Optional[t.List[AppAuthScheme]] = None,
187
+ auth_schemes: t.Optional[t.List[toolkit_retrieve_response.AuthConfigDetail]] = None,
188
tags: t.Optional[list] = None,
189
) -> "DocumentContent":
190
"""
@@ -159,26 +211,7 @@ class DocumentContent:
211
212
# Authentication schemes if present
213
if auth_schemes:
162
- self._blocks.append("### Authentication Details")
163
- for scheme in auth_schemes:
164
- field_block = []
165
- for field in scheme.fields:
166
- # Apply sanitization to auth field properties too
167
- safe_name = field.name.replace('"', '\\"')
168
- safe_type = str(field.type).replace('"', '\\"')
169
- safe_default = str(field.default).replace('"', '\\"') if field.default else ""
170
-
171
- field_block.append(
172
- MDX.as_param(
173
- name=safe_name,
174
- required=field.required,
175
- typ=safe_type,
176
- default=safe_default,
177
- )
178
- )
179
- self._blocks.append(
180
- MDX.as_accordion(title=scheme.auth_mode, content="\n".join(field_block))
181
- )
214
+ self._add_auth_schemes(auth_schemes)
215
216
# Tags if present
217
if tags:
@@ -188,12 +221,83 @@ class DocumentContent:
221
222
return self
223
191
- def add_actions(self, actions: t.List[ActionModel]) -> "DocumentContent":
224
+ def _add_auth_schemes(self, auth_schemes: t.List[toolkit_retrieve_response.AuthConfigDetail]) -> None:
225
+ """Add authentication schemes section."""
226
+ self._blocks.append("### Authentication Details")
227
+
228
+ for scheme in auth_schemes:
229
+ fields = self._extract_auth_fields(scheme)
230
+ if fields:
231
+ auth_type = self._get_auth_type(scheme)
232
+ self._blocks.append(MDX.as_accordion(auth_type, "\n".join(fields)))
233
+
234
+ def _extract_auth_fields(self, scheme: toolkit_retrieve_response.AuthConfigDetail) -> t.List[str]:
235
+ """Extract authentication fields from scheme."""
236
+ fields = []
237
+
238
+ if hasattr(scheme, 'fields') and scheme.fields:
239
+ for field in scheme.fields:
240
+ if isinstance(field, tuple) and len(field) == 2:
241
+ fields.extend(self._process_tuple_field(field))
242
+ elif hasattr(field, 'name'):
243
+ fields.append(self._create_param_from_field(field))
244
+
245
+ return fields
246
+
247
+ def _process_tuple_field(self, field: tuple) -> t.List[str]:
248
+ """Process tuple-style authentication field."""
249
+ fields = []
250
+ _, field_config = field
251
+
252
+ for field_list, required in [(getattr(field_config, 'required', []), True),
253
+ (getattr(field_config, 'optional', []), False)]:
254
+ for f in field_list:
255
+ if hasattr(f, 'name'):
256
+ fields.append(self._create_param_from_field(f, required))
257
+
258
+ return fields
259
+
260
+ def _create_param_from_field(self, field: toolkit_retrieve_response.AuthConfigDetail, required: t.Optional[bool] = None) -> str:
261
+ """Create parameter string from field object."""
262
+ return MDX.as_param(
263
+ name=str(field.name).replace('"', '\\"'),
264
+ required=required if required is not None else getattr(field, 'required', False),
265
+ typ=str(getattr(field, 'type', '')).replace('"', '\\"'),
266
+ default=str(getattr(field, 'default', '')).replace('"', '\\"') if getattr(field, 'default', None) else "",
267
+ doc=str(getattr(field, 'description', '')).replace('"', '\\"')
268
+ )
269
+
270
+ def _get_auth_type(self, scheme: toolkit_retrieve_response.AuthConfigDetail) -> str:
271
+ """Get authentication type from scheme."""
272
+ auth_type = (
273
+ getattr(scheme, 'mode', None) or
274
+ getattr(scheme, 'type', None) or
275
+ getattr(scheme, 'auth_type', None) or
276
+ getattr(scheme, 'auth_mode', None) or
277
+ 'Authentication'
278
+ )
279
+
280
+ auth_type_mapping = {
281
+ 'oauth2': 'OAuth2',
282
+ 'OAUTH2': 'OAuth2',
283
+ 'api_key': 'API Key',
284
+ 'API_KEY': 'API Key',
285
+ 'bearer_token': 'Bearer Token',
286
+ 'BEARER_TOKEN': 'Bearer Token',
287
+ 'basic': 'Basic Auth',
288
+ 'BASIC': 'Basic Auth',
289
+ 'no_auth': 'No Authentication',
290
+ 'NO_AUTH': 'No Authentication'
291
+ }
292
+
293
+ return auth_type_mapping.get(auth_type, auth_type.replace('_', ' ').title())
294
+
295
+ def add_actions(self, actions: t.List[Tool]) -> "DocumentContent":
296
"""
297
Add actions section to the document.
298
299
Args:
196
- actions: List of action models to document
300
+ actions: List of tool models to document
301
302
Returns:
303
Self reference for method chaining
@@ -202,75 +306,116 @@ class DocumentContent:
306
if not any("## Actions" in block for block in self._blocks):
307
self._blocks.append("## Actions")
308
205
- all_action_content = []
206
-
207
- for action in actions:
208
- action_content = []
209
- params = action.parameters
210
- response = action.response
309
+ action_contents = []
310
212
- # Description with encoding fixes and sanitization
213
- action_content.append(
214
- # sanitize_html(action.description.replace("<<", "(").replace(">>", ")"))
215
- MDX.as_code_block(action.description, "text")
216
- )
217
-
218
- # Process parameters with enhanced sanitization to avoid MDX parsing issues
219
- action_params = []
220
- for k, v in params.properties.items():
221
- # Get the basic sanitized description
222
- doc = sanitize_html(v.get("description", ""))
223
- param_content = MDX.as_param(
224
- name=k,
225
- typ=str(v.get("type", "")),
226
- doc=doc,
227
- default=v.get("default", ""),
228
- required=k in params.required if params.required else False,
229
- )
230
- action_params.append(param_content)
231
-
232
- # Process responses with the same enhanced sanitization
233
- action_responses = []
234
- for k, v in response.properties.items():
235
- # Get the basic sanitized description
236
- doc = sanitize_html(v.get("description", ""))
237
- action_response = MDX.as_param(name=k, typ=str(v.get("type", "")), doc=doc)
238
- action_responses.append(action_response)
239
-
240
- # Add sections to action content
241
- action_content.append("\n**Action Parameters**\n")
242
- action_content.append("\n".join(action_params))
243
-
244
- action_content.append("\n**Action Response**\n")
245
- action_content.append("\n".join(action_responses))
246
-
247
- # Create accordion for this action, sanitizing the title
248
- safe_action_name = action.name
249
-
250
- # Check for operator patterns in the action name (<4mb type issues)
251
- if "<" in safe_action_name or ">" in safe_action_name:
252
- # Handle comparison operators that cause MDX parsing issues
253
- safe_action_name = re.sub(r"<(\d+)", r"less than \1", safe_action_name)
254
- safe_action_name = re.sub(r">(\d+)", r"greater than \1", safe_action_name)
255
- safe_action_name = re.sub(r"<=(\d+)", r"less than or equal to \1", safe_action_name)
256
- safe_action_name = re.sub(
257
- r">=(\d+)", r"greater than or equal to \1", safe_action_name
258
- )
259
-
260
- # Handle remaining < and > characters
261
- safe_action_name = safe_action_name.replace("<", "<").replace(">", ">")
262
-
263
- all_action_content.append(MDX.as_accordion(safe_action_name, "\n".join(action_content)))
311
+ logger.info(f"Processing {len(actions)} actions for documentation")
312
+ for i, tool in enumerate(actions):
313
+ content = self._process_tool(tool)
314
+ if content:
315
+ action_contents.append(content)
316
317
# Only wrap in accordion group if there are actions
266
- if all_action_content:
267
- self._blocks.append(MDX.as_accordion_group("\n".join(all_action_content)))
318
+ if action_contents:
319
+ self._blocks.append(MDX.as_accordion_group("\n".join(action_contents)))
320
else:
321
+ logger.info(f"No action content generated for {len(actions)} tools")
322
self._blocks.append("""This app has actions coming soon! Feel free to raise a request for it in our [GitHub Issues](https://github.com/ComposioHQ/composio/issues).
323
324
You can also create [custom actions](/tool-calling/customizing-tools#extending-composio-toolkits) for the app using Composio Auth.""")
325
return self
326
327
+ def _process_tool(self, tool: Tool) -> t.Optional[str]:
328
+ """Process a single tool and return accordion content."""
329
+ tool_data = self._extract_tool_data(tool)
330
+ if not tool_data['name']:
331
+ return None
332
+
333
+ content = [MDX.as_code_block(tool_data['description'], "text")]
334
+
335
+ # Add parameters
336
+ content.append("\n**Action Parameters**\n")
337
+ content.append("\n".join(self._process_parameters(tool_data['params'])))
338
+
339
+ # Add responses
340
+ content.append("\n**Action Response**\n")
341
+ content.append("\n".join(self._process_parameters(tool_data['response'])))
342
+
343
+ safe_name = self._sanitize_action_name(tool_data['name'])
344
+ return MDX.as_accordion(safe_name, "\n".join(content))
345
+
346
+ def _extract_tool_data(self, tool: Tool) -> t.Dict[str, t.Any]:
347
+ """Extract data from tool object or dict."""
348
+ if isinstance(tool, dict):
349
+ if 'function' in tool:
350
+ func = tool['function']
351
+ return {
352
+ 'name': func.get('name', ''),
353
+ 'description': func.get('description', ''),
354
+ 'params': func.get('parameters', {}),
355
+ 'response': tool.get('output_parameters', {}) or func.get('output_parameters', {})
356
+ }
357
+ else:
358
+ return {
359
+ 'name': tool.get('name', tool.get('slug', '')),
360
+ 'description': tool.get('description', ''),
361
+ 'params': tool.get('input_parameters', {}),
362
+ 'response': tool.get('output_parameters', {})
363
+ }
364
+ else:
365
+ return {
366
+ 'name': getattr(tool, 'name', getattr(tool, 'slug', '')),
367
+ 'description': getattr(tool, 'description', ''),
368
+ 'params': getattr(tool, 'input_parameters', {}) or {},
369
+ 'response': getattr(tool, 'output_parameters', {}) or {}
370
+ }
371
+
372
+ def _process_parameters(self, params: t.Any) -> t.List[str]:
373
+ """Process parameters from various formats."""
374
+ if not params or not isinstance(params, dict):
375
+ return []
376
+
377
+ param_list = []
378
+
379
+ if 'properties' in params:
380
+ properties = params.get('properties', {})
381
+ required = params.get('required', [])
382
+
383
+ for name, schema in properties.items():
384
+ param_list.append(MDX.as_param(
385
+ name=name,
386
+ typ=str(schema.get("type", "")),
387
+ doc=sanitize_html(schema.get("description", "")),
388
+ default=schema.get("default", ""),
389
+ required=name in required
390
+ ))
391
+ else:
392
+ for name, schema in params.items():
393
+ if isinstance(schema, dict):
394
+ param_list.append(MDX.as_param(
395
+ name=name,
396
+ typ=str(schema.get("type", "")),
397
+ doc=sanitize_html(schema.get("description", "")),
398
+ default=schema.get("default", ""),
399
+ required=schema.get("required", False)
400
+ ))
401
+
402
+ return param_list
403
+
404
+ def _sanitize_action_name(self, name: str) -> str:
405
+ """Sanitize action name for MDX."""
406
+ if "<" in name or ">" in name:
407
+ replacements = [
408
+ (r"<(\d+)", r"less than \1"),
409
+ (r">(\d+)", r"greater than \1"),
410
+ (r"<=(\d+)", r"less than or equal to \1"),
411
+ (r">=(\d+)", r"greater than or equal to \1")
412
+ ]
413
+ for pattern, replacement in replacements:
414
+ name = re.sub(pattern, replacement, name)
415
+ name = name.replace("<", "<").replace(">", ">")
416
+
417
+ return name
418
+
419
def __str__(self) -> str:
420
"""Convert document content to string."""
421
return "\n\n".join(self._blocks)
@@ -289,34 +434,39 @@ class ToolDocGenerator:
434
435
Args:
436
include_local: Whether to include local development tools
292
- skip_lint: Whether to skip the linting step
437
"""
438
# Load environment variables
439
load_dotenv()
440
297
- # Initialize toolset
298
- self.toolset = ComposioToolSet()
441
+ # Initialize composio client
442
+ self.composio = Composio()
443
self.include_local = include_local
300
- self.actions_obj = Actions(self.toolset.client)
444
445
# For tracking generated tools
446
self.generated_tools = []
447
self.problematic_actions = []
448
306
- def generate_docs(self, output_path: Path, max_workers: int | None = None) -> None:
449
+ def generate_docs(self, output_path: Path, max_workers: int | None = None, limit: int | None = None) -> None:
450
"""
451
Generate documentation for all apps in parallel.
452
453
Args:
454
output_path: Path to output directory
455
max_workers: Maximum number of parallel workers (default: CPU count * 5)
456
+ limit: Limit processing to first N toolkits (for debugging)
457
"""
458
# Ensure output directory exists
459
output_path.mkdir(parents=True, exist_ok=True)
460
461
# Get all apps
318
- apps = self.toolset.get_apps(include_local=self.include_local)
319
- logger.info(f"Starting documentation generation for {len(apps)} apps")
462
+ toolkits = self.composio.toolkits.get()
463
+
464
+ # Apply limit if specified
465
+ if limit is not None:
466
+ toolkits = toolkits[:limit]
467
+ logger.info(f"Limited to first {limit} toolkits")
468
+
469
+ logger.info(f"Starting documentation generation for {len(toolkits)} toolkits")
470
471
# Track failures with a synchronized list
472
from threading import Lock
@@ -331,24 +481,24 @@ class ToolDocGenerator:
481
# Use CPU count as default but cap at 10 to avoid connection pool issues
482
max_workers = min(10, multiprocessing.cpu_count())
483
334
- def process_app(app):
335
- """Process a single app with proper exception handling"""
484
+ def process_app(toolkit):
485
+ """Process a single toolkit with proper exception handling"""
486
try:
337
- self._generate_app_doc(app, output_path)
338
- logger.info(f"✅ Generated docs for {app.name}")
487
+ self._generate_app_doc(toolkit, output_path)
488
+ logger.info(f"✅ Generated docs for {toolkit.name}")
489
return True
490
except Exception as e:
491
with failed_apps_lock:
342
- failed_apps.append((app.name, str(e)))
343
- logger.error(f"❌ Failed to generate docs for {app.name}: {e}")
492
+ failed_apps.append((toolkit.name, str(e)))
493
+ logger.error(f"❌ Failed to generate docs for {toolkit.name}: {e}")
494
if logger.isEnabledFor(logging.DEBUG):
345
- logger.debug(traceback.format_exc())
495
+ logger.info(traceback.format_exc())
496
return False
497
498
# Use ThreadPoolExecutor for parallel processing
499
with concurrent.futures.ThreadPoolExecutor(max_workers=max_workers) as executor:
500
# Submit all app processing tasks
351
- future_to_app = {executor.submit(process_app, app): app for app in apps}
501
+ future_to_app = {executor.submit(process_app, toolkit): toolkit for toolkit in toolkits}
502
503
# Collect results as they complete
504
success_count = 0
@@ -358,64 +508,100 @@ class ToolDocGenerator:
508
509
# Log final statistics
510
if failed_apps:
361
- logger.warning("\nFailed to generate docs for the following apps:")
511
+ logger.warning("\nFailed to generate docs for the following toolkits:")
512
for app_name, error in failed_apps:
513
logger.warning(f"- {app_name}: {error}")
364
- logger.warning(f"\nTotal failed apps: {len(failed_apps)}/{len(apps)}")
514
+ logger.warning(f"\nTotal failed toolkits: {len(failed_apps)}/{len(toolkits)}")
515
else:
366
- logger.info(f"\nSuccessfully generated docs for all {len(apps)} apps!")
516
+ logger.info(f"\nSuccessfully generated docs for all {len(toolkits)} toolkits!")
517
368
- logger.info(f"Generated {success_count} app docs in parallel using {max_workers} workers")
518
+ logger.info(f"Generated {success_count} toolkit docs in parallel using {max_workers} workers")
519
520
# Update docs.yml with the generated tools
521
self.update_docs_yml(output_path.parent / "docs.yml")
522
373
- def _generate_app_doc(self, app: App, output_path: Path) -> None:
523
+ def _generate_app_doc(self, toolkit: toolkit_list_response.Item, output_path: Path) -> None:
524
"""
375
- Generate documentation for a single app.
525
+ Generate documentation for a single toolkit.
526
527
Args:
378
- app: The app to generate documentation for
528
+ toolkit: The toolkit to generate documentation for
529
output_path: Output directory path
530
"""
381
- # Get app model and actions
382
- app_model = self.toolset.get_app(app.name)
383
- actions = self.actions_obj._get_actions(apps=[app.name], allow_all=True)
531
+ # Get toolkit model and tools
532
+ toolkit_model = self.composio.toolkits.get(slug=toolkit.slug)
533
+ tools = self.composio.tools.get_raw_composio_tools(toolkits=[toolkit.slug])
534
+ logger.info(f"Toolkit tools: {toolkit}")
535
+
536
+
537
+ logger.info(f"Retrieved {len(tools)} tools for {toolkit.name}")
538
+ if tools:
539
+ logger.debug(f"First tool type: {type(tools[0])}")
540
+ if hasattr(tools[0], '__dict__'):
541
+ logger.debug(f"First tool attributes: {list(tools[0].__dict__.keys())}")
542
+ elif isinstance(tools[0], dict):
543
+ logger.debug(f"First tool dict keys: {list(tools[0].keys())}")
544
+ logger.debug(f"Sample tool: {str(tools[0])[:200]}...")
545
546
# Create content
547
content = DocumentContent()
548
549
+ # Extract category from toolkit meta
550
+ category = None
551
+ if hasattr(toolkit_model, 'meta') and hasattr(toolkit_model.meta, 'categories') and toolkit_model.meta.categories:
552
+ # Use the first category if multiple exist
553
+ category = toolkit_model.meta.categories[0].get('name') if isinstance(toolkit_model.meta.categories[0], dict) else getattr(toolkit_model.meta.categories[0], 'name', None)
554
+
555
# Add frontmatter
389
- content.add_frontmatter(titleize(app.name))
556
+ content.add_frontmatter(titleize(toolkit.name), category)
557
558
# Handle auth schemes safely
559
auth_schemes = None
560
try:
394
- auth_schemes = app_model.auth_schemes
561
+ auth_schemes = toolkit_model.auth_config_details
562
except Exception as e:
396
- logger.debug(f"Could not process auth schemes for {app.name}: {e}")
563
+ logger.info(f"Could not process auth schemes for {toolkit.name}: {e}")
564
# Continue without auth schemes
565
399
- # Sanitize the app description
566
+
567
+ no_auth = "NO_AUTH" in (toolkit.auth_schemes or [])
568
+
569
+ logger.info(f"No auth: {no_auth}")
570
+
571
+
572
573
# Add overview section
574
content.add_overview_section(
403
- app_name=app.name,
404
- app_id=app.key, # type: ignore
405
- description=app.description, # type: ignore
575
+ app_name=toolkit.name,
576
+ app_id=toolkit.slug,
577
+ description=toolkit.meta.description,
578
auth_schemes=auth_schemes,
579
)
580
581
# Filter out problematic actions
410
- filtered_actions = [
411
- action for action in actions
412
- if action.name not in self.problematic_actions
413
- ]
582
+ filtered_tools = []
583
+ for tool in tools:
584
+ # Extract tool slug for filtering
585
+ if isinstance(tool, dict):
586
+ if 'function' in tool:
587
+ tool_slug = tool['function'].get('name', '')
588
+ else:
589
+ tool_slug = tool.get('slug', '')
590
+ else:
591
+ tool_slug = getattr(tool, 'slug', '')
592
+
593
+ if tool_slug not in self.problematic_actions:
594
+ filtered_tools.append(tool)
595
+ else:
596
+ logger.info(f"Filtered out problematic tool: {tool_slug}")
597
+
598
+ logger.info(f"After filtering: {len(filtered_tools)} tools remaining out of {len(tools)}")
599
+
600
# Add actions section (only the filtered ones)
415
- content.add_actions(filtered_actions)
601
+ content.add_actions(filtered_tools)
602
603
# Write to file
418
- filename = f"{app.name.lower()}.mdx"
604
+ filename = f"{toolkit.slug.lower()}.mdx"
605
output_file = output_path / filename
606
content_str = str(content)
607
@@ -425,101 +611,117 @@ class ToolDocGenerator:
611
with threading.Lock():
612
self.generated_tools.append(
613
{
428
- "name": app.name.lower(),
429
- "display_name": titleize(app.name),
614
+ "name": toolkit.slug.lower(),
615
+ "display_name": titleize(toolkit.name.lower()),
616
"path": f"tools/{filename}",
617
+ "category": category,
618
+ "tool_count": len(tools),
619
+ "no_auth": no_auth,
620
}
621
)
622
623
def update_docs_yml(self, docs_yml_path: Path) -> None:
624
"""
436
- Update the docs.yml file with the generated tools.
625
+ Update the docs.yml file with the generated tools, grouped by section:
626
+ - Important
627
+ - Categories (each key becomes a section)
628
+ - Proxy Apps
629
+ - No Auth
630
631
Args:
632
docs_yml_path: Path to the docs.yml file
633
"""
634
+ import yaml # Use PyYAML for writing
635
+
636
logger.info(f"Updating docs.yml with {len(self.generated_tools)} tools")
637
638
try:
639
# Sort tools alphabetically by name
640
sorted_tools = sorted(self.generated_tools, key=lambda x: x["name"])
641
447
- # Create page entries for generated tools
448
- tools_contents = []
642
+ # Prepare sections
643
+ important_tools = []
644
+ proxy_apps = []
645
+ no_auth_tools = []
646
+ categories: dict[str, list] = {}
647
+
648
+
649
for tool in sorted_tools:
450
- tools_contents.append({"page": tool["display_name"], "path": tool["path"]})
451
-
452
- if USE_RUAMEL:
453
- # Use ruamel.yaml to preserve comments and formatting
454
- yaml = YAML()
455
- yaml.preserve_quotes = True
456
- yaml.indent(mapping=2, sequence=4, offset=2)
457
-
458
- # Read the current docs.yml
459
- with open(docs_yml_path, "r") as f:
460
- docs_data = yaml.load(f)
461
-
462
- # Find the "tools" tab section in the navigation structure
463
- for tab_section in docs_data.get("navigation", []):
464
- if tab_section.get("tab") == "tools":
465
- # Find the tools section
466
- for section in tab_section.get("layout", []):
467
- if section.get("section") == "Tools":
468
- # Preserve the Introduction entry if it exists
469
- existing_contents = section.get("contents", [])
470
- intro_entries = [
471
- item for item in existing_contents
472
- if item.get("page") == "Introduction"
473
- ]
474
-
475
- # Add introduction entries first, then the generated tools
476
- final_contents = intro_entries + tools_contents
477
-
478
- # Update the section contents
479
- section["contents"] = final_contents
480
- break
481
- break
482
-
483
- # Write the updated YAML back to the file
484
- with open(docs_yml_path, "w") as f:
485
- yaml.dump(docs_data, f)
486
- else:
487
- # Fallback to standard yaml
488
- # Read the current docs.yml
489
- with open(docs_yml_path, "r") as f:
490
- docs_data = yaml_module.safe_load(f)
491
-
492
- # Find the "tools" tab section in the navigation structure
493
- for tab_section in docs_data.get("navigation", []):
494
- if tab_section.get("tab") == "tools":
495
- # Find the tools section
496
- for section in tab_section.get("layout", []):
497
- if section.get("section") == "Tools":
498
- # Preserve the Introduction entry if it exists
499
- existing_contents = section.get("contents", [])
500
- intro_entries = [
501
- item for item in existing_contents
502
- if item.get("page") == "Introduction"
503
- ]
504
-
505
- # Add introduction entries first, then the generated tools
506
- final_contents = intro_entries + tools_contents
507
-
508
- # Update the section contents
509
- section["contents"] = final_contents
510
- break
511
- break
650
+ entry = {"page": tool["display_name"], "slug": "tools/" + tool["name"], "path": tool["path"]}
651
+ name = tool["name"]
652
+ category = tool.get("category", "").strip()
653
+
654
+ if name in IMPORTANT_TOOL_SLUGS:
655
+ important_tools.append(entry)
656
+ elif tool.get("tool_count") == 0:
657
+ proxy_apps.append(entry)
658
+ elif tool.get("no_auth"):
659
+ no_auth_tools.append(entry)
660
+ elif category:
661
+ lower_category = category.lower()
662
+ if lower_category not in categories:
663
+ categories[lower_category] = []
664
+ categories[lower_category].append(entry)
665
+
666
+ # Read the current docs.yml
667
+ with open(docs_yml_path, "r") as f:
668
+ docs_data = yaml.safe_load(f)
669
+
670
+ logger.info(f"Important tools: {important_tools}")
671
+ logger.info(f"Proxy apps: {proxy_apps}")
672
+ logger.info(f"No auth tools: {no_auth_tools}")
673
+
674
+ # Sort categories by number of elements (descending), then by name
675
+ sorted_categories = sorted(
676
+ categories.items(),
677
+ key=lambda item: (-len(item[1]), item[0])
678
+ )
679
513
- # Write the updated YAML back to the file
514
- with open(docs_yml_path, "w") as f:
515
- yaml_module.dump(docs_data, f, default_flow_style=False, sort_keys=False)
680
+ logger.info(f"Category keys: {list(categories.keys())}")
681
+ logger.info(f"Sorted categories keys: {[cat for cat, _ in sorted_categories]}")
682
+
683
+
684
+ # Find the "tools" tab section in the navigation structure
685
+ for tab_section in docs_data.get("navigation", []):
686
+ if tab_section.get("tab") == "tools":
687
+ logger.info(f"Tab section: {tab_section}")
688
+ new_layout = []
689
+
690
+ # Always add the Tool section with Introduction first
691
+ new_layout.append(base_layout)
692
+
693
+ # Add Important section if present
694
+ if important_tools:
695
+ new_layout.append({"section": "Important", "contents": important_tools})
696
+
697
+
698
+ # Add each category as its own section
699
+ for cat, tools_list in sorted_categories:
700
+ if tools_list:
701
+ new_layout.append({"section": titleize(cat), "contents": tools_list})
702
+
703
+ # Add Proxy Apps section if present
704
+ if proxy_apps:
705
+ new_layout.append({"section": "Proxy Apps", "contents": proxy_apps})
706
+
707
+ # Add No Auth section if present
708
+ if no_auth_tools:
709
+ new_layout.append({"section": "No Auth", "contents": no_auth_tools})
710
+
711
+ logger.info("new_layout: %s", new_layout)
712
+ tab_section["layout"] = new_layout
713
+ break
714
+
715
+ # Write the updated YAML back to the file
716
+ with open(docs_yml_path, "w") as f:
717
+ yaml.dump(docs_data, f, default_flow_style=False, sort_keys=False)
718
719
logger.info(f"✅ Updated docs.yml with {len(self.generated_tools)} tools")
720
721
except Exception as e:
722
logger.error(f"Failed to update docs.yml: {e}")
723
if logger.isEnabledFor(logging.DEBUG):
522
- logger.debug(traceback.format_exc())
724
+ logger.info(traceback.format_exc())
725
726
727
def configure_logging(log_level: str) -> None:
@@ -538,6 +740,14 @@ def configure_logging(log_level: str) -> None:
740
format="%(asctime)s - %(levelname)s - %(message)s",
741
datefmt="%Y-%m-%d %H:%M:%S",
742
)
743
+
744
+ # Add telemetry filter to root logger to filter out telemetry requests
745
+ telemetry_filter = TelemetryFilter()
746
+ logging.getLogger().addFilter(telemetry_filter)
747
+
748
+ # Also add filter to specific loggers that might handle HTTP requests
749
+ for logger_name in ["httpx", "urllib3", "requests"]:
750
+ logging.getLogger(logger_name).addFilter(telemetry_filter)
751
752
753
def cli_main() -> int:
@@ -586,6 +796,13 @@ def cli_main() -> int:
796
help="Skip the linting step when generating documentation",
797
default=False,
798
)
799
+ parser.add_argument(
800
+ "--limit",
801
+ "-l",
802
+ type=int,
803
+ help="Limit processing to first N toolkits (for debugging)",
804
+ default=None,
805
+ )
806
807
args = parser.parse_args()
808
@@ -599,13 +816,15 @@ def cli_main() -> int:
816
generator = ToolDocGenerator(include_local=args.include_local)
817
818
# Generate docs with specified number of workers
602
- generator.generate_docs(output_path, max_workers=args.workers)
819
+ generator.generate_docs(output_path, max_workers=args.workers, limit=args.limit)
820
604
- return 0
821
+ # Force exit immediately without waiting for background telemetry
822
+ logger.info("Documentation generation complete. Exiting immediately.")
823
+ os._exit(0)
824
except Exception as e:
825
logger.error(f"Error generating documentation: {e}")
826
if logger.isEnabledFor(logging.DEBUG):
608
- logger.debug(traceback.format_exc())
827
+ logger.info(traceback.format_exc())
828
return 1
829
830
@@ -616,7 +835,8 @@ def generate_tool_docs(
835
log_level="info",
836
workers=None,
837
lint_only=False,
619
- no_lint=False
838
+ no_lint=False,
839
+ limit=None
840
):
841
"""
842
Generate tool documentation
@@ -629,6 +849,7 @@ def generate_tool_docs(
849
workers: Number of parallel worker threads
850
lint_only: Only lint existing MDX files without generating new ones
851
no_lint: Skip the linting step when generating documentation
852
+ limit: Limit processing to first N toolkits (for debugging)
853
"""
854
# Configure logging
855
configure_logging(log_level)
@@ -637,9 +858,11 @@ def generate_tool_docs(
858
generator = ToolDocGenerator(include_local=include_local)
859
860
# Generate docs with specified number of workers
640
- generator.generate_docs(output_dir, max_workers=workers)
861
+ generator.generate_docs(output_dir, max_workers=workers, limit=limit)
862
642
- return 0
863
+ # Force exit immediately without waiting for background telemetry
864
+ logger.info("Documentation generation complete. Exiting immediately.")
865
+ os._exit(0)
866
867
868
if __name__ == "__main__":
fern/generators/tool_doc_generator/mdx_formatter.py
+4
-1
@@ -18,12 +18,13 @@ class MDX:
18
"""
19
20
@staticmethod
21
- def as_frontmatter(app_name: str | None = None) -> str:
21
+ def as_frontmatter(app_name: str | None = None, category: str | None = None) -> str:
22
"""
23
Generate MDX frontmatter.
24
25
Args:
26
app_name: The name of the application
27
+ category: The category of the application
28
29
Returns:
30
Formatted MDX frontmatter string
@@ -31,6 +32,8 @@ class MDX:
32
frontmatter = f'title: "{app_name}"'
33
if app_name is not None:
34
frontmatter += f'\nsubtitle: "Learn how to use {app_name} with Composio"'
35
+ if category is not None:
36
+ frontmatter += f'\ncategory: "{category}"'
37
return "---\n" + frontmatter + "\n---\n"
38
39
@staticmethod
fern/generators/tool_doc_generator/pre_commit_tool_doc.py
new
+111
@@ -0,0 +1,111 @@
1
+#!/usr/bin/env python
2
+"""
3
+Minimal docs.yml updater for pre-commit hooks.
4
+
5
+This script provides a minimal version that just sets the base layout
6
+for the tools section in docs.yml.
7
+"""
8
+
9
+import argparse
10
+import logging
11
+import sys
12
+from pathlib import Path
13
+
14
+import yaml
15
+
16
+from generators.tool_doc_generator.base_docs import base_layout
17
+
18
+logger = logging.getLogger(__name__)
19
+
20
+
21
+def update_docs_yml_minimal(docs_yml_path: Path) -> None:
22
+ """
23
+ Minimal update of docs.yml file with just the base layout.
24
+
25
+ Args:
26
+ docs_yml_path: Path to the docs.yml file
27
+ """
28
+ logger.info("Updating docs.yml with minimal base layout")
29
+
30
+ try:
31
+ # Read the current docs.yml
32
+ with open(docs_yml_path, "r") as f:
33
+ docs_data = yaml.safe_load(f)
34
+
35
+ # Find the "tools" tab section in the navigation structure
36
+ for tab_section in docs_data.get("navigation", []):
37
+ if tab_section.get("tab") == "tools":
38
+ logger.info("Found tools tab section, setting base layout")
39
+ tab_section["layout"] = base_layout
40
+ break
41
+ else:
42
+ logger.warning("No tools tab section found in docs.yml")
43
+ return
44
+
45
+ # Write the updated YAML back to the file
46
+ with open(docs_yml_path, "w") as f:
47
+ yaml.dump(docs_data, f, default_flow_style=False, sort_keys=False)
48
+
49
+ logger.info("✅ Updated docs.yml with base layout")
50
+
51
+ except Exception as e:
52
+ logger.error(f"Failed to update docs.yml: {e}")
53
+ raise
54
+
55
+
56
+def configure_logging(log_level: str = "info") -> None:
57
+ """Configure logging settings."""
58
+ numeric_level = getattr(logging, log_level.upper(), None)
59
+ if not isinstance(numeric_level, int):
60
+ raise ValueError(f"Invalid log level: {log_level}")
61
+
62
+ logging.basicConfig(
63
+ level=numeric_level,
64
+ format="%(asctime)s - %(levelname)s - %(message)s",
65
+ datefmt="%Y-%m-%d %H:%M:%S",
66
+ )
67
+
68
+
69
+def main() -> int:
70
+ """Command-line entry point for minimal docs.yml update."""
71
+ parser = argparse.ArgumentParser(
72
+ description="Minimal docs.yml updater for pre-commit hooks"
73
+ )
74
+ parser.add_argument(
75
+ "--docs-yml",
76
+ type=str,
77
+ help="Path to docs.yml file (default: ./docs.yml)",
78
+ default="./docs.yml",
79
+ )
80
+ parser.add_argument(
81
+ "--log-level",
82
+ choices=["debug", "info", "warning", "error", "critical"],
83
+ default="info",
84
+ help="Set logging level",
85
+ )
86
+
87
+ args = parser.parse_args()
88
+
89
+ try:
90
+ # Configure logging
91
+ configure_logging(args.log_level)
92
+
93
+ # Convert path to absolute path
94
+ docs_yml_path = Path(args.docs_yml).resolve()
95
+
96
+ if not docs_yml_path.exists():
97
+ logger.error(f"docs.yml file not found: {docs_yml_path}")
98
+ return 1
99
+
100
+ # Update docs.yml with minimal layout
101
+ update_docs_yml_minimal(docs_yml_path)
102
+
103
+ return 0
104
+
105
+ except Exception as e:
106
+ logger.error(f"Error updating docs.yml: {e}")
107
+ return 1
108
+
109
+
110
+if __name__ == "__main__":
111
+ sys.exit(main())
\ No newline at end of file
fern/package.json
+1
-2
@@ -9,8 +9,7 @@
9
"clean": "rm -rf ./dist && rm -rf ./node_modules && rm -rf ./docs/snippets/dist",
10
"compile": "npx tailwindcss -i ./assets/input.css -o ./dist/output.css",
11
"tools:generate": "uv run generators/tool_doc_generator/main.py --workers 10",
12
- "tools:comment": "uv run python scripts/manage-tool-docs.py comment",
13
- "tools:uncomment": "uv run python scripts/manage-tool-docs.py uncomment",
12
+ "tools:generate:dev": "uv run generators/tool_doc_generator/main.py --workers 10 --limit ${LIMIT:-5}",
13
"sdkdocs": "pnpm run sdkdocs:ts && pnpm run sdkdocs:python",
14
"sdkdocs:ts": "pnpm exec typedoc",
15
"sdkdocs:python": "uv run python generators/python-sdk/generate_docs.py",
fern/turbo.json
+6
-13
@@ -3,13 +3,13 @@
3
"extends": ["//"],
4
"tasks": {
5
"build": {
6
- "dependsOn": ["api:pull", "add-og", "snippets:build", "tools:generate", "tools:uncomment", "sdkdocs"],
6
+ "dependsOn": ["api:pull", "add-og", "snippets:build", "tools:generate", "sdkdocs"],
7
"outputs": ["pages/*.mdx", "tools/*.mdx", "pages/**"],
8
"cache": true
9
},
10
11
"dev": {
12
- "dependsOn": ["api:pull", "sdkdocs", "tools:comment", "snippets:build"],
12
+ "dependsOn": ["api:pull", "sdkdocs", "tools:generate:dev", "snippets:build"],
13
"persistent": true,
14
"cache": false
15
},
@@ -44,17 +44,10 @@
44
"cache": true,
45
"env": ["COMPOSIO_API_KEY"]
46
},
47
-
48
- "tools:comment": {
49
- "outputs": ["docs.yml"],
50
- "inputs": ["scripts/manage-tool-docs.py", "docs.yml"],
51
- "cache": true
52
- },
53
-
54
- "tools:uncomment": {
55
- "outputs": ["docs.yml"],
56
- "inputs": ["scripts/manage-tool-docs.py", "docs.yml"],
57
- "cache": true
47
+ "tools:generate:dev": {
48
+ "cache": false,
49
+ "inputs": ["generators/tool_doc_generator/**/*.py"],
50
+ "env": ["COMPOSIO_API_KEY", "LIMIT"]
51
},
52
53
"sdkdocs": {
uv.lock
+26
-37
@@ -2440,43 +2440,32 @@ wheels = [
2440
2441
[[package]]
2442
name = "pillow"
2443
-version = "11.2.1"
2444
-source = { registry = "https://pypi.org/simple" }
2445
-sdist = { url = "https://files.pythonhosted.org/packages/af/cb/bb5c01fcd2a69335b86c22142b2bccfc3464087efb7fd382eee5ffc7fdf7/pillow-11.2.1.tar.gz", hash = "sha256:a64dd61998416367b7ef979b73d3a85853ba9bec4c2925f74e588879a58716b6", size = 47026707 }
2446
-wheels = [
2447
- { url = "https://files.pythonhosted.org/packages/c7/40/052610b15a1b8961f52537cc8326ca6a881408bc2bdad0d852edeb6ed33b/pillow-11.2.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:78afba22027b4accef10dbd5eed84425930ba41b3ea0a86fa8d20baaf19d807f", size = 3190185 },
2448
- { url = "https://files.pythonhosted.org/packages/e5/7e/b86dbd35a5f938632093dc40d1682874c33dcfe832558fc80ca56bfcb774/pillow-11.2.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:78092232a4ab376a35d68c4e6d5e00dfd73454bd12b230420025fbe178ee3b0b", size = 3030306 },
2449
- { url = "https://files.pythonhosted.org/packages/a4/5c/467a161f9ed53e5eab51a42923c33051bf8d1a2af4626ac04f5166e58e0c/pillow-11.2.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:25a5f306095c6780c52e6bbb6109624b95c5b18e40aab1c3041da3e9e0cd3e2d", size = 4416121 },
2450
- { url = "https://files.pythonhosted.org/packages/62/73/972b7742e38ae0e2ac76ab137ca6005dcf877480da0d9d61d93b613065b4/pillow-11.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0c7b29dbd4281923a2bfe562acb734cee96bbb129e96e6972d315ed9f232bef4", size = 4501707 },
2451
- { url = "https://files.pythonhosted.org/packages/e4/3a/427e4cb0b9e177efbc1a84798ed20498c4f233abde003c06d2650a6d60cb/pillow-11.2.1-cp312-cp312-manylinux_2_28_aarch64.whl", hash = "sha256:3e645b020f3209a0181a418bffe7b4a93171eef6c4ef6cc20980b30bebf17b7d", size = 4522921 },
2452
- { url = "https://files.pythonhosted.org/packages/fe/7c/d8b1330458e4d2f3f45d9508796d7caf0c0d3764c00c823d10f6f1a3b76d/pillow-11.2.1-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:b2dbea1012ccb784a65349f57bbc93730b96e85b42e9bf7b01ef40443db720b4", size = 4612523 },
2453
- { url = "https://files.pythonhosted.org/packages/b3/2f/65738384e0b1acf451de5a573d8153fe84103772d139e1e0bdf1596be2ea/pillow-11.2.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:da3104c57bbd72948d75f6a9389e6727d2ab6333c3617f0a89d72d4940aa0443", size = 4587836 },
2454
- { url = "https://files.pythonhosted.org/packages/6a/c5/e795c9f2ddf3debb2dedd0df889f2fe4b053308bb59a3cc02a0cd144d641/pillow-11.2.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:598174aef4589af795f66f9caab87ba4ff860ce08cd5bb447c6fc553ffee603c", size = 4669390 },
2455
- { url = "https://files.pythonhosted.org/packages/96/ae/ca0099a3995976a9fce2f423166f7bff9b12244afdc7520f6ed38911539a/pillow-11.2.1-cp312-cp312-win32.whl", hash = "sha256:1d535df14716e7f8776b9e7fee118576d65572b4aad3ed639be9e4fa88a1cad3", size = 2332309 },
2456
- { url = "https://files.pythonhosted.org/packages/7c/18/24bff2ad716257fc03da964c5e8f05d9790a779a8895d6566e493ccf0189/pillow-11.2.1-cp312-cp312-win_amd64.whl", hash = "sha256:14e33b28bf17c7a38eede290f77db7c664e4eb01f7869e37fa98a5aa95978941", size = 2676768 },
2457
- { url = "https://files.pythonhosted.org/packages/da/bb/e8d656c9543276517ee40184aaa39dcb41e683bca121022f9323ae11b39d/pillow-11.2.1-cp312-cp312-win_arm64.whl", hash = "sha256:21e1470ac9e5739ff880c211fc3af01e3ae505859392bf65458c224d0bf283eb", size = 2415087 },
2458
- { url = "https://files.pythonhosted.org/packages/36/9c/447528ee3776e7ab8897fe33697a7ff3f0475bb490c5ac1456a03dc57956/pillow-11.2.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:fdec757fea0b793056419bca3e9932eb2b0ceec90ef4813ea4c1e072c389eb28", size = 3190098 },
2459
- { url = "https://files.pythonhosted.org/packages/b5/09/29d5cd052f7566a63e5b506fac9c60526e9ecc553825551333e1e18a4858/pillow-11.2.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:b0e130705d568e2f43a17bcbe74d90958e8a16263868a12c3e0d9c8162690830", size = 3030166 },
2460
- { url = "https://files.pythonhosted.org/packages/71/5d/446ee132ad35e7600652133f9c2840b4799bbd8e4adba881284860da0a36/pillow-11.2.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7bdb5e09068332578214cadd9c05e3d64d99e0e87591be22a324bdbc18925be0", size = 4408674 },
2461
- { url = "https://files.pythonhosted.org/packages/69/5f/cbe509c0ddf91cc3a03bbacf40e5c2339c4912d16458fcb797bb47bcb269/pillow-11.2.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d189ba1bebfbc0c0e529159631ec72bb9e9bc041f01ec6d3233d6d82eb823bc1", size = 4496005 },
2462
- { url = "https://files.pythonhosted.org/packages/f9/b3/dd4338d8fb8a5f312021f2977fb8198a1184893f9b00b02b75d565c33b51/pillow-11.2.1-cp313-cp313-manylinux_2_28_aarch64.whl", hash = "sha256:191955c55d8a712fab8934a42bfefbf99dd0b5875078240943f913bb66d46d9f", size = 4518707 },
2463
- { url = "https://files.pythonhosted.org/packages/13/eb/2552ecebc0b887f539111c2cd241f538b8ff5891b8903dfe672e997529be/pillow-11.2.1-cp313-cp313-manylinux_2_28_x86_64.whl", hash = "sha256:ad275964d52e2243430472fc5d2c2334b4fc3ff9c16cb0a19254e25efa03a155", size = 4610008 },
2464
- { url = "https://files.pythonhosted.org/packages/72/d1/924ce51bea494cb6e7959522d69d7b1c7e74f6821d84c63c3dc430cbbf3b/pillow-11.2.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:750f96efe0597382660d8b53e90dd1dd44568a8edb51cb7f9d5d918b80d4de14", size = 4585420 },
2465
- { url = "https://files.pythonhosted.org/packages/43/ab/8f81312d255d713b99ca37479a4cb4b0f48195e530cdc1611990eb8fd04b/pillow-11.2.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:fe15238d3798788d00716637b3d4e7bb6bde18b26e5d08335a96e88564a36b6b", size = 4667655 },
2466
- { url = "https://files.pythonhosted.org/packages/94/86/8f2e9d2dc3d308dfd137a07fe1cc478df0a23d42a6c4093b087e738e4827/pillow-11.2.1-cp313-cp313-win32.whl", hash = "sha256:3fe735ced9a607fee4f481423a9c36701a39719252a9bb251679635f99d0f7d2", size = 2332329 },
2467
- { url = "https://files.pythonhosted.org/packages/6d/ec/1179083b8d6067a613e4d595359b5fdea65d0a3b7ad623fee906e1b3c4d2/pillow-11.2.1-cp313-cp313-win_amd64.whl", hash = "sha256:74ee3d7ecb3f3c05459ba95eed5efa28d6092d751ce9bf20e3e253a4e497e691", size = 2676388 },
2468
- { url = "https://files.pythonhosted.org/packages/23/f1/2fc1e1e294de897df39fa8622d829b8828ddad938b0eaea256d65b84dd72/pillow-11.2.1-cp313-cp313-win_arm64.whl", hash = "sha256:5119225c622403afb4b44bad4c1ca6c1f98eed79db8d3bc6e4e160fc6339d66c", size = 2414950 },
2469
- { url = "https://files.pythonhosted.org/packages/c4/3e/c328c48b3f0ead7bab765a84b4977acb29f101d10e4ef57a5e3400447c03/pillow-11.2.1-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:8ce2e8411c7aaef53e6bb29fe98f28cd4fbd9a1d9be2eeea434331aac0536b22", size = 3192759 },
2470
- { url = "https://files.pythonhosted.org/packages/18/0e/1c68532d833fc8b9f404d3a642991441d9058eccd5606eab31617f29b6d4/pillow-11.2.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:9ee66787e095127116d91dea2143db65c7bb1e232f617aa5957c0d9d2a3f23a7", size = 3033284 },
2471
- { url = "https://files.pythonhosted.org/packages/b7/cb/6faf3fb1e7705fd2db74e070f3bf6f88693601b0ed8e81049a8266de4754/pillow-11.2.1-cp313-cp313t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9622e3b6c1d8b551b6e6f21873bdcc55762b4b2126633014cea1803368a9aa16", size = 4445826 },
2472
- { url = "https://files.pythonhosted.org/packages/07/94/8be03d50b70ca47fb434a358919d6a8d6580f282bbb7af7e4aa40103461d/pillow-11.2.1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:63b5dff3a68f371ea06025a1a6966c9a1e1ee452fc8020c2cd0ea41b83e9037b", size = 4527329 },
2473
- { url = "https://files.pythonhosted.org/packages/fd/a4/bfe78777076dc405e3bd2080bc32da5ab3945b5a25dc5d8acaa9de64a162/pillow-11.2.1-cp313-cp313t-manylinux_2_28_aarch64.whl", hash = "sha256:31df6e2d3d8fc99f993fd253e97fae451a8db2e7207acf97859732273e108406", size = 4549049 },
2474
- { url = "https://files.pythonhosted.org/packages/65/4d/eaf9068dc687c24979e977ce5677e253624bd8b616b286f543f0c1b91662/pillow-11.2.1-cp313-cp313t-manylinux_2_28_x86_64.whl", hash = "sha256:062b7a42d672c45a70fa1f8b43d1d38ff76b63421cbbe7f88146b39e8a558d91", size = 4635408 },
2475
- { url = "https://files.pythonhosted.org/packages/1d/26/0fd443365d9c63bc79feb219f97d935cd4b93af28353cba78d8e77b61719/pillow-11.2.1-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:4eb92eca2711ef8be42fd3f67533765d9fd043b8c80db204f16c8ea62ee1a751", size = 4614863 },
2476
- { url = "https://files.pythonhosted.org/packages/49/65/dca4d2506be482c2c6641cacdba5c602bc76d8ceb618fd37de855653a419/pillow-11.2.1-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:f91ebf30830a48c825590aede79376cb40f110b387c17ee9bd59932c961044f9", size = 4692938 },
2477
- { url = "https://files.pythonhosted.org/packages/b3/92/1ca0c3f09233bd7decf8f7105a1c4e3162fb9142128c74adad0fb361b7eb/pillow-11.2.1-cp313-cp313t-win32.whl", hash = "sha256:e0b55f27f584ed623221cfe995c912c61606be8513bfa0e07d2c674b4516d9dd", size = 2335774 },
2478
- { url = "https://files.pythonhosted.org/packages/a5/ac/77525347cb43b83ae905ffe257bbe2cc6fd23acb9796639a1f56aa59d191/pillow-11.2.1-cp313-cp313t-win_amd64.whl", hash = "sha256:36d6b82164c39ce5482f649b437382c0fb2395eabc1e2b1702a6deb8ad647d6e", size = 2681895 },
2479
- { url = "https://files.pythonhosted.org/packages/67/32/32dc030cfa91ca0fc52baebbba2e009bb001122a1daa8b6a79ad830b38d3/pillow-11.2.1-cp313-cp313t-win_arm64.whl", hash = "sha256:225c832a13326e34f212d2072982bb1adb210e0cc0b153e688743018c94a2681", size = 2417234 },
2443
+version = "10.4.0"
2444
+source = { registry = "https://pypi.org/simple" }
2445
+sdist = { url = "https://files.pythonhosted.org/packages/cd/74/ad3d526f3bf7b6d3f408b73fde271ec69dfac8b81341a318ce825f2b3812/pillow-10.4.0.tar.gz", hash = "sha256:166c1cd4d24309b30d61f79f4a9114b7b2313d7450912277855ff5dfd7cd4a06", size = 46555059 }
2446
+wheels = [
2447
+ { url = "https://files.pythonhosted.org/packages/05/cb/0353013dc30c02a8be34eb91d25e4e4cf594b59e5a55ea1128fde1e5f8ea/pillow-10.4.0-cp312-cp312-macosx_10_10_x86_64.whl", hash = "sha256:673655af3eadf4df6b5457033f086e90299fdd7a47983a13827acf7459c15d94", size = 3509350 },
2448
+ { url = "https://files.pythonhosted.org/packages/e7/cf/5c558a0f247e0bf9cec92bff9b46ae6474dd736f6d906315e60e4075f737/pillow-10.4.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:866b6942a92f56300012f5fbac71f2d610312ee65e22f1aa2609e491284e5597", size = 3374980 },
2449
+ { url = "https://files.pythonhosted.org/packages/84/48/6e394b86369a4eb68b8a1382c78dc092245af517385c086c5094e3b34428/pillow-10.4.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:29dbdc4207642ea6aad70fbde1a9338753d33fb23ed6956e706936706f52dd80", size = 4343799 },
2450
+ { url = "https://files.pythonhosted.org/packages/3b/f3/a8c6c11fa84b59b9df0cd5694492da8c039a24cd159f0f6918690105c3be/pillow-10.4.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bf2342ac639c4cf38799a44950bbc2dfcb685f052b9e262f446482afaf4bffca", size = 4459973 },
2451
+ { url = "https://files.pythonhosted.org/packages/7d/1b/c14b4197b80150fb64453585247e6fb2e1d93761fa0fa9cf63b102fde822/pillow-10.4.0-cp312-cp312-manylinux_2_28_aarch64.whl", hash = "sha256:f5b92f4d70791b4a67157321c4e8225d60b119c5cc9aee8ecf153aace4aad4ef", size = 4370054 },
2452
+ { url = "https://files.pythonhosted.org/packages/55/77/40daddf677897a923d5d33329acd52a2144d54a9644f2a5422c028c6bf2d/pillow-10.4.0-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:86dcb5a1eb778d8b25659d5e4341269e8590ad6b4e8b44d9f4b07f8d136c414a", size = 4539484 },
2453
+ { url = "https://files.pythonhosted.org/packages/40/54/90de3e4256b1207300fb2b1d7168dd912a2fb4b2401e439ba23c2b2cabde/pillow-10.4.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:780c072c2e11c9b2c7ca37f9a2ee8ba66f44367ac3e5c7832afcfe5104fd6d1b", size = 4477375 },
2454
+ { url = "https://files.pythonhosted.org/packages/13/24/1bfba52f44193860918ff7c93d03d95e3f8748ca1de3ceaf11157a14cf16/pillow-10.4.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:37fb69d905be665f68f28a8bba3c6d3223c8efe1edf14cc4cfa06c241f8c81d9", size = 4608773 },
2455
+ { url = "https://files.pythonhosted.org/packages/55/04/5e6de6e6120451ec0c24516c41dbaf80cce1b6451f96561235ef2429da2e/pillow-10.4.0-cp312-cp312-win32.whl", hash = "sha256:7dfecdbad5c301d7b5bde160150b4db4c659cee2b69589705b6f8a0c509d9f42", size = 2235690 },
2456
+ { url = "https://files.pythonhosted.org/packages/74/0a/d4ce3c44bca8635bd29a2eab5aa181b654a734a29b263ca8efe013beea98/pillow-10.4.0-cp312-cp312-win_amd64.whl", hash = "sha256:1d846aea995ad352d4bdcc847535bd56e0fd88d36829d2c90be880ef1ee4668a", size = 2554951 },
2457
+ { url = "https://files.pythonhosted.org/packages/b5/ca/184349ee40f2e92439be9b3502ae6cfc43ac4b50bc4fc6b3de7957563894/pillow-10.4.0-cp312-cp312-win_arm64.whl", hash = "sha256:e553cad5179a66ba15bb18b353a19020e73a7921296a7979c4a2b7f6a5cd57f9", size = 2243427 },
2458
+ { url = "https://files.pythonhosted.org/packages/c3/00/706cebe7c2c12a6318aabe5d354836f54adff7156fd9e1bd6c89f4ba0e98/pillow-10.4.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:8bc1a764ed8c957a2e9cacf97c8b2b053b70307cf2996aafd70e91a082e70df3", size = 3525685 },
2459
+ { url = "https://files.pythonhosted.org/packages/cf/76/f658cbfa49405e5ecbfb9ba42d07074ad9792031267e782d409fd8fe7c69/pillow-10.4.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:6209bb41dc692ddfee4942517c19ee81b86c864b626dbfca272ec0f7cff5d9fb", size = 3374883 },
2460
+ { url = "https://files.pythonhosted.org/packages/46/2b/99c28c4379a85e65378211971c0b430d9c7234b1ec4d59b2668f6299e011/pillow-10.4.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bee197b30783295d2eb680b311af15a20a8b24024a19c3a26431ff83eb8d1f70", size = 4339837 },
2461
+ { url = "https://files.pythonhosted.org/packages/f1/74/b1ec314f624c0c43711fdf0d8076f82d9d802afd58f1d62c2a86878e8615/pillow-10.4.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1ef61f5dd14c300786318482456481463b9d6b91ebe5ef12f405afbba77ed0be", size = 4455562 },
2462
+ { url = "https://files.pythonhosted.org/packages/4a/2a/4b04157cb7b9c74372fa867096a1607e6fedad93a44deeff553ccd307868/pillow-10.4.0-cp313-cp313-manylinux_2_28_aarch64.whl", hash = "sha256:297e388da6e248c98bc4a02e018966af0c5f92dfacf5a5ca22fa01cb3179bca0", size = 4366761 },
2463
+ { url = "https://files.pythonhosted.org/packages/ac/7b/8f1d815c1a6a268fe90481232c98dd0e5fa8c75e341a75f060037bd5ceae/pillow-10.4.0-cp313-cp313-manylinux_2_28_x86_64.whl", hash = "sha256:e4db64794ccdf6cb83a59d73405f63adbe2a1887012e308828596100a0b2f6cc", size = 4536767 },
2464
+ { url = "https://files.pythonhosted.org/packages/e5/77/05fa64d1f45d12c22c314e7b97398ffb28ef2813a485465017b7978b3ce7/pillow-10.4.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:bd2880a07482090a3bcb01f4265f1936a903d70bc740bfcb1fd4e8a2ffe5cf5a", size = 4477989 },
2465
+ { url = "https://files.pythonhosted.org/packages/12/63/b0397cfc2caae05c3fb2f4ed1b4fc4fc878f0243510a7a6034ca59726494/pillow-10.4.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:4b35b21b819ac1dbd1233317adeecd63495f6babf21b7b2512d244ff6c6ce309", size = 4610255 },
2466
+ { url = "https://files.pythonhosted.org/packages/7b/f9/cfaa5082ca9bc4a6de66ffe1c12c2d90bf09c309a5f52b27759a596900e7/pillow-10.4.0-cp313-cp313-win32.whl", hash = "sha256:551d3fd6e9dc15e4c1eb6fc4ba2b39c0c7933fa113b220057a34f4bb3268a060", size = 2235603 },
2467
+ { url = "https://files.pythonhosted.org/packages/01/6a/30ff0eef6e0c0e71e55ded56a38d4859bf9d3634a94a88743897b5f96936/pillow-10.4.0-cp313-cp313-win_amd64.whl", hash = "sha256:030abdbe43ee02e0de642aee345efa443740aa4d828bfe8e2eb11922ea6a21ea", size = 2554972 },
2468
+ { url = "https://files.pythonhosted.org/packages/48/2c/2e0a52890f269435eee38b21c8218e102c621fe8d8df8b9dd06fabf879ba/pillow-10.4.0-cp313-cp313-win_arm64.whl", hash = "sha256:5b001114dd152cfd6b23befeb28d7aee43553e2402c9f159807bf55f33af8a8d", size = 2243375 },
2469
]
2470
2471
[[package]]