SST Python SDK
The Python SDK for SST lets you access linked resources in your Python Lambda functions.
Installation
pip install sst-sdk
Or with uv:
uv add sst-sdk
Migrating from the Git dependency
If you were previously installing the SDK from GitHub:
# Before
[project]
dependencies = ["sst"]
[tool.uv.sources]
sst = { git = "https://github.com/anomalyco/sst", subdirectory = "sdk/python" }
Update your pyproject.toml to use the PyPI package instead:
# After
[project]
dependencies = ["sst-sdk"]
That's it — remove the [tool.uv.sources] entry for sst and replace the dependency name. No code changes needed; from sst import Resource works the same way.
Usage
Use Resource to access any resource linked to your function in sst.config.ts:
from sst import Resource
# Access linked resources by name
bucket_name = Resource.MyBucket.name
table_name = Resource.MyTable.name
Resources are defined and linked in your sst.config.ts:
const bucket = new sst.aws.Bucket("MyBucket");
new sst.aws.Function("MyFunction", {
handler: "handler.main",
link: [bucket],
});
The SDK reads resource bindings from encrypted environment variables set by SST at deploy time. In sst dev, resources are available automatically through the local development bridge.
Supported Python Versions
- Python 3.9+
Links
Metadata
Release files for sst-sdk 4.17.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sst_sdk-4.17.2.tar.gz | 3.2 kB | With provenance | Details for sst_sdk-4.17.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sst_sdk-4.17.2-py3-none-any.whl | Python 3 | none | any | Details for sst_sdk-4.17.2-py3-none-any.whl |
Total release size: 6.5 kB
Release files / sst_sdk-4.17.2.tar.gz
| Download URL | sst_sdk-4.17.2.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0d99410825a9ac5c8e44ad1785e5ac90873e8938dfc22e2d0e1d0fdec17890b9
|
|
BLAKE2b-256 checksum How to use checksums |
2739cb5bf1a9ef62fac635a5ed96dab7d07257d8687243feb2c2001115320f75
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.
Transparency logRelease files / sst_sdk-4.17.2-py3-none-any.whl
| Download URL | sst_sdk-4.17.2-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e3e407c5ccb5dbb9a815598235c5527f1725dc79f6af30a5556211f7722580b1
|
|
BLAKE2b-256 checksum How to use checksums |
7322d9d930727cb66ae60ce20cff593d8dc380719840dac3de2adb48ba89cc4e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.
Transparency logSecurity for sst-sdk 4.17.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for sst_sdk-4.17.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 8, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.