Skip to content

feat(sagemaker): add optional extras group for SageMaker dependencies#659

Merged
lukeocodes merged 2 commits intomainfrom
lo/sagemaker-extras
Feb 15, 2026
Merged

feat(sagemaker): add optional extras group for SageMaker dependencies#659
lukeocodes merged 2 commits intomainfrom
lo/sagemaker-extras

Conversation

@lukeocodes
Copy link
Contributor

Summary

  • Add [sagemaker] extras group to pyproject.toml so users can install SageMaker transport dependencies with pip install deepgram-sdk[sagemaker]
  • Update all references from pip install aws-sdk-sagemaker-runtime-http2 boto3 to pip install deepgram-sdk[sagemaker]

Changes

  • pyproject.toml — add aws-sdk-sagemaker-runtime-http2 and boto3 as optional dependencies, define [tool.poetry.extras] sagemaker group
  • README.md — update SageMaker install instructions
  • src/deepgram/transports/sagemaker.py — update docstring and ImportError message
  • examples/27-transcription-live-sagemaker.py — update docstring

Test plan

  • mypy src/ passes (706 files, 0 errors)
  • pytest tests/ passes (94 passed, 1 skipped)
  • pip install deepgram-sdk[sagemaker] installs the correct packages

Users can now install SageMaker transport dependencies with
`pip install deepgram-sdk[sagemaker]` instead of manually installing
aws-sdk-sagemaker-runtime-http2 and boto3.
Copilot AI review requested due to automatic review settings February 15, 2026 21:52
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds an optional extras group for SageMaker dependencies, simplifying installation for users who want to use the SageMaker transport feature. Instead of manually installing aws-sdk-sagemaker-runtime-http2 and boto3, users can now install them together with pip install deepgram-sdk[sagemaker].

Changes:

  • Added [sagemaker] optional extras group to pyproject.toml with aws-sdk-sagemaker-runtime-http2 and boto3 dependencies
  • Updated all installation instructions and documentation to reference the new extras group

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
pyproject.toml Added optional SageMaker dependencies and defined [sagemaker] extras group
README.md Updated installation instructions to use pip install deepgram-sdk[sagemaker]
src/deepgram/transports/sagemaker.py Updated docstring and ImportError message to reference new extras group
examples/27-transcription-live-sagemaker.py Updated docstring to reference new extras group

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Add explicit pip install instructions for aws-sdk-sagemaker-runtime-http2
and boto3 in the README, example, and transport docstrings. Note the
Python 3.12+ requirement. These are kept as separate pip installs rather
than Poetry extras due to resolver compatibility issues.
@lukeocodes lukeocodes merged commit 2046175 into main Feb 15, 2026
14 checks passed
@lukeocodes lukeocodes deleted the lo/sagemaker-extras branch February 15, 2026 22:00
lukeocodes added a commit that referenced this pull request Feb 16, 2026
🤖 Release candidate for v6.0.0

---

##
[6.0.0-rc.1](v5.3.2...v6.0.0-rc.1)
(2026-02-16)


### ⚠ BREAKING CHANGES

* v6 — fully generated SDK with latest APIs and WebSocket support (#640)

### Features

* **helpers:** add TextBuilder class for TTS pronunciation and pause
controls (#660)
* **sagemaker:** add SageMaker transport for running Deepgram on AWS
SageMaker endpoints (#659)
* v6 — fully generated SDK with latest APIs and WebSocket support (#640)
* **websockets:** add custom WebSocket transport support (#658)

---

### Files changed

| File | Change |
|------|--------|
| `pyproject.toml` | `6.0.0-beta.4` → `6.0.0-rc.1` |
| `src/deepgram/core/client_wrapper.py` | User-Agent and SDK version →
`6.0.0-rc.1` |
| `.github/.release-please-manifest.json` | `5.3.2` → `6.0.0-rc.1` |
| `CHANGELOG.md` | Add 6.0.0-rc.1 entry |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant