Skip to content

Commit d42c522

Browse files
authored
Merge pull request #938 from roboflow/sdk-reference-docs
docstrings for SDK reference docs
2 parents 5e85ed2 + 096d01e commit d42c522

21 files changed

+1347
-17
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ scratch
167167
docs/workflows/blocks/*
168168
docs/workflows/kinds/*
169169
docs/workflows/gallery/*
170+
docs/reference/*
170171
docs/inference_helpers/cli_commands/reference.md
171172
docs/openapi.json
172173
!tests/workflows/integration_tests/execution/assets/*.jpg

inference_sdk/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
)
1010
from inference_sdk.utils.environment import str2bool
1111

12+
# Environment variable to control whether SDK warnings are disabled.
13+
# Set to "true" to disable all SDK-specific warnings, "false" to enable them.
14+
# Default is "false" (warnings enabled).
1215
INFERENCE_WARNINGS_DISABLED = str2bool(
1316
os.getenv("INFERENCE_WARNINGS_DISABLED", "False")
1417
)

inference_sdk/config.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
class InferenceSDKDeprecationWarning(Warning):
2+
"""Class used for warning of deprecated features in the Inference SDK"""
3+
24
pass

inference_sdk/http/__init__.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"""Inference SDK HTTP module.
2+
3+
This module provides HTTP-based functionality for the Inference SDK, including utilities
4+
for making HTTP requests, handling responses, and processing images. It contains tools
5+
for loading and preprocessing images, building requests, and managing API interactions.
6+
7+
The module includes utilities for:
8+
- Loading images from files, URLs and base64 strings
9+
- Resizing and preprocessing images while maintaining aspect ratio
10+
- Building and formatting HTTP requests with proper headers and payloads
11+
- Handling API responses and errors safely
12+
- Profiling workflow execution
13+
"""

0 commit comments

Comments
 (0)