Commit f619b40
chore(sdk-examples): update examples and description for python SDK v14.1.0 (#2499)
* chore(sdk-examples): fix broken Python SDK imports
Two stellar_sdk (py-stellar-base, current 14.1.0) imports reference
names that do not exist and raise ImportError at runtime:
- working-with-contract-specs.mdx: `from stellar_sdk import ... stellar_xdr`
— there is no top-level `stellar_xdr` export. The code uses
`stellar_xdr.SCVal.from_xdr(...)`, so import the `xdr` submodule under
that alias (`xdr as stellar_xdr`), matching the pattern used in the
sibling invoke-contract-tx-sdk guide.
- data-format/xdr.mdx: `import xdr from stellar_sdk;` is JS-style syntax;
corrected to `from stellar_sdk import xdr`.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(sdk-examples): correct py-stellar-base minimum Python version
py-stellar-base now requires Python >=3.10,<4.0 (pyproject.toml
`requires-python`), but the client-sdks page still stated "Python 3.7+
as well as PyPy 3.7+". Update to 3.10+ to match the current release.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent bb2f393 commit f619b40
3 files changed
Lines changed: 3 additions & 3 deletions
File tree
- docs
- build/guides/dapps
- learn/fundamentals/data-format
- tools/sdks
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1240 | 1240 | | |
1241 | 1241 | | |
1242 | 1242 | | |
1243 | | - | |
| 1243 | + | |
1244 | 1244 | | |
1245 | 1245 | | |
1246 | 1246 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
0 commit comments