localstack-sdk-python 0.0.4__py3-none-any.whl → 4.4.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- localstack/sdk/clients.py +3 -0
- localstack/sdk/version.py +21 -0
- localstack_sdk_python-4.4.0.dist-info/METADATA +70 -0
- {localstack_sdk_python-0.0.4.dist-info → localstack_sdk_python-4.4.0.dist-info}/RECORD +8 -7
- {localstack_sdk_python-0.0.4.dist-info → localstack_sdk_python-4.4.0.dist-info}/WHEEL +1 -1
- localstack_sdk_python-0.0.4.dist-info/METADATA +0 -41
- {localstack_sdk_python-0.0.4.dist-info → localstack_sdk_python-4.4.0.dist-info}/entry_points.txt +0 -0
- {localstack_sdk_python-0.0.4.dist-info → localstack_sdk_python-4.4.0.dist-info/licenses}/LICENSE.txt +0 -0
- {localstack_sdk_python-0.0.4.dist-info → localstack_sdk_python-4.4.0.dist-info}/top_level.txt +0 -0
localstack/sdk/clients.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
from localstack.sdk import version
|
|
1
2
|
from localstack.sdk.api_client import ApiClient
|
|
2
3
|
from localstack.sdk.configuration import Configuration
|
|
3
4
|
|
|
@@ -30,3 +31,5 @@ class BaseClient:
|
|
|
30
31
|
self.auth_token = auth_token
|
|
31
32
|
self.configuration = Configuration(host=self.host)
|
|
32
33
|
self._api_client = ApiClient(configuration=self.configuration)
|
|
34
|
+
# The generated code comes with 1.0.0 hard-coded. We set here the correct version
|
|
35
|
+
self._api_client.user_agent = f"LocalStack SDK/{version.version}/python"
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# file generated by setuptools-scm
|
|
2
|
+
# don't change, don't track in version control
|
|
3
|
+
|
|
4
|
+
__all__ = ["__version__", "__version_tuple__", "version", "version_tuple"]
|
|
5
|
+
|
|
6
|
+
TYPE_CHECKING = False
|
|
7
|
+
if TYPE_CHECKING:
|
|
8
|
+
from typing import Tuple
|
|
9
|
+
from typing import Union
|
|
10
|
+
|
|
11
|
+
VERSION_TUPLE = Tuple[Union[int, str], ...]
|
|
12
|
+
else:
|
|
13
|
+
VERSION_TUPLE = object
|
|
14
|
+
|
|
15
|
+
version: str
|
|
16
|
+
__version__: str
|
|
17
|
+
__version_tuple__: VERSION_TUPLE
|
|
18
|
+
version_tuple: VERSION_TUPLE
|
|
19
|
+
|
|
20
|
+
__version__ = version = '4.4.0'
|
|
21
|
+
__version_tuple__ = version_tuple = (4, 4, 0)
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: localstack-sdk-python
|
|
3
|
+
Version: 4.4.0
|
|
4
|
+
Summary: Python SDK for LocalStack
|
|
5
|
+
Author-email: LocalStack Team <info@localstack.cloud>
|
|
6
|
+
Project-URL: Homepage, https://localstack.cloud
|
|
7
|
+
Project-URL: Documentation, https://docs.localstack.cloud
|
|
8
|
+
Project-URL: Repository, https://github.com/localstack/localstack-sdk-python.git
|
|
9
|
+
Project-URL: Issues, https://github.com/localstack/localstack-sdk-python/issues
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
License-File: LICENSE.txt
|
|
12
|
+
Requires-Dist: localstack-sdk-generated
|
|
13
|
+
Dynamic: license-file
|
|
14
|
+
|
|
15
|
+
# LocalStack Python SDK
|
|
16
|
+
[](https://pypi.org/project/localstack-sdk-python/)
|
|
17
|
+
[](https://github.com/localstack/localstack-sdk-python/actions/workflows/test.yml)
|
|
18
|
+
|
|
19
|
+
This is the Python SDK for LocalStack.
|
|
20
|
+
LocalStack offers a number of developer endpoints (see [docs](https://docs.localstack.cloud/references/internal-endpoints/)).
|
|
21
|
+
This SDK provides a programmatic and easy way to interact with them.
|
|
22
|
+
|
|
23
|
+
> [!WARNING]
|
|
24
|
+
> This project is still in a preview phase and will be subject to fast and breaking changes.
|
|
25
|
+
|
|
26
|
+
### Project Structure
|
|
27
|
+
|
|
28
|
+
This project is composed by two Python packages:
|
|
29
|
+
|
|
30
|
+
- `packages/localstack-sdk-generated`: generated from the LocalStack's OpenAPI specs with [openapi-generator](https://github.com/OpenAPITools/openapi-generator).
|
|
31
|
+
The LocalStack's OpenAPI specs are available in [localstack/openapi](https://github.com/localstack/openapi).
|
|
32
|
+
This package is not meant to be manually modified, as it needs to be generated every time from the specs.
|
|
33
|
+
- `localstack-sdk-python`: the user-facing SDK that consumed `localstack-sdk-generated` as its main dependency.
|
|
34
|
+
|
|
35
|
+
### Installation
|
|
36
|
+
|
|
37
|
+
You can install the LocalStack Python SDK with `pip`:
|
|
38
|
+
|
|
39
|
+
```shell
|
|
40
|
+
pip install localstack-sdk-python
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
#### From Source
|
|
44
|
+
|
|
45
|
+
This project uses [uv](https://github.com/astral-sh/uv) as a package manager.
|
|
46
|
+
On a Unix system, you can install `uv` with the standalone installer:
|
|
47
|
+
|
|
48
|
+
```shell
|
|
49
|
+
curl -LsSf https://astral.sh/uv/install.sh | sh
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
Once `uv` is installed, you can install the project from source with:
|
|
53
|
+
|
|
54
|
+
```shell
|
|
55
|
+
make install
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
To run the integration test suite:
|
|
59
|
+
|
|
60
|
+
```shell
|
|
61
|
+
make test
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Note that LocalStack Pro (with the same version as the SDK) should be running in the background to execute the test.
|
|
65
|
+
|
|
66
|
+
### Quickstart
|
|
67
|
+
|
|
68
|
+
To get started with our SDK, check out the [official documentation on https://docs.localstack.cloud](https://docs.localstack.cloud/user-guide/tools/localstack-sdk/python/).
|
|
69
|
+
You'll find comprehensive guides and detailed code samples that demonstrate how to use the various features provided
|
|
70
|
+
by the SDK.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
localstack/sdk/clients.py,sha256=
|
|
1
|
+
localstack/sdk/clients.py,sha256=B4-EnawK9IVdwcHsFSRqYqaQ4ofSuNsQx6YeHfIWhFY,1788
|
|
2
|
+
localstack/sdk/version.py,sha256=PxW_S9JxBxARp3dKw49kJlVWk3Ef8sYh8fMafz0zoOM,511
|
|
2
3
|
localstack/sdk/aws/__init__.py,sha256=Das2FPp0t5hl_gxEP8Nw6MigVxBU8HxePF5ZKq_YNkM,73
|
|
3
4
|
localstack/sdk/aws/client.py,sha256=zz8LBLAju-f7g2_8g4zOjlMsdvQfHPuwcO1ZTihvg5o,7072
|
|
4
5
|
localstack/sdk/chaos/__init__.py,sha256=czMV7U_iDgUPBObl6nmWQxl78cF-zVl1c8QPY5tnQg4,79
|
|
@@ -13,9 +14,9 @@ localstack/sdk/testing/__init__.py,sha256=ywPtBMD5jTd3VgVQ8Ym8JctuBoIEgiTNLu5XPJ
|
|
|
13
14
|
localstack/sdk/testing/decorators.py,sha256=apIrL1Mm8rgsqEEykdKPdQQtYbw-tB0iOaDDo-sMCqM,976
|
|
14
15
|
localstack/sdk/testing/pytest/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
15
16
|
localstack/sdk/testing/pytest/plugins.py,sha256=Q5SD-TgaV-nBVvBT6koEs4FQRtMb_6l4rbjJerTejhw,265
|
|
16
|
-
localstack_sdk_python-
|
|
17
|
-
localstack_sdk_python-
|
|
18
|
-
localstack_sdk_python-
|
|
19
|
-
localstack_sdk_python-
|
|
20
|
-
localstack_sdk_python-
|
|
21
|
-
localstack_sdk_python-
|
|
17
|
+
localstack_sdk_python-4.4.0.dist-info/licenses/LICENSE.txt,sha256=3PC-9Z69UsNARuQ980gNR_JsLx8uvMjdG6C7cc4LBYs,606
|
|
18
|
+
localstack_sdk_python-4.4.0.dist-info/METADATA,sha256=2-EQJINeVOeq0W6oIQHPtrQCYfpxlATTVByBu2KZUZA,2738
|
|
19
|
+
localstack_sdk_python-4.4.0.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
|
|
20
|
+
localstack_sdk_python-4.4.0.dist-info/entry_points.txt,sha256=UuFkdg7bQ1BXfsrs3LCrWexP1Sm-C-wD26XEoSmibLc,62
|
|
21
|
+
localstack_sdk_python-4.4.0.dist-info/top_level.txt,sha256=3sqmK2lGac8nCy8nwsbS5SpIY_izmtWtgaTFKHYVHbI,11
|
|
22
|
+
localstack_sdk_python-4.4.0.dist-info/RECORD,,
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: localstack-sdk-python
|
|
3
|
-
Version: 0.0.4
|
|
4
|
-
Summary: Python SDK for LocalStack
|
|
5
|
-
Author-email: LocalStack Team <info@localstack.cloud>
|
|
6
|
-
Project-URL: Homepage, https://localstack.cloud
|
|
7
|
-
Project-URL: Documentation, https://docs.localstack.cloud
|
|
8
|
-
Project-URL: Repository, https://github.com/localstack/localstack-sdk-python.git
|
|
9
|
-
Project-URL: Issues, https://github.com/localstack/localstack-sdk-python/issues
|
|
10
|
-
Description-Content-Type: text/markdown
|
|
11
|
-
License-File: LICENSE.txt
|
|
12
|
-
Requires-Dist: localstack-sdk-generated
|
|
13
|
-
|
|
14
|
-
# LocalStack Python SDK
|
|
15
|
-
[](https://pypi.org/project/localstack-sdk-python/)
|
|
16
|
-
|
|
17
|
-
This is the Python SDK for LocalStack.
|
|
18
|
-
LocalStack offers a number of developer endpoints (see [docs](https://docs.localstack.cloud/references/internal-endpoints/)).
|
|
19
|
-
This SDK provides a programmatic and easy way to interact with them.
|
|
20
|
-
|
|
21
|
-
> [!WARNING]
|
|
22
|
-
> This project is still in a preview phase and will be subject to fast and breaking changes.
|
|
23
|
-
|
|
24
|
-
### Project Structure
|
|
25
|
-
|
|
26
|
-
This project follows the following structure:
|
|
27
|
-
|
|
28
|
-
- `packages/localstack-sdk-generated` is a Python project generated from the OpenAPI specs with [openapi-generator](https://github.com/OpenAPITools/openapi-generator).
|
|
29
|
-
LocalStack's OpenAPI specs are available in the [openapi repository](https://github.com/localstack/openapi).
|
|
30
|
-
- `localstack-sdk-python` is the main project that has `localstack-sdk-generated` as the main dependency.
|
|
31
|
-
|
|
32
|
-
Developers are not supposed to modify at all `localstack-sdk-generated`.
|
|
33
|
-
The code needs to be re-generated from specs every time using the `generate.sh` script in the `bin` folder.
|
|
34
|
-
|
|
35
|
-
This project uses [uv](https://github.com/astral-sh/uv) as package/project manager.
|
|
36
|
-
|
|
37
|
-
### Install & Run
|
|
38
|
-
|
|
39
|
-
You can simply run `make install-dev` to install the two packages and the needed dependencies.
|
|
40
|
-
`make test` runs the test suite.
|
|
41
|
-
Note that LocalStack (pro) should be running in the background to execute the test.
|
{localstack_sdk_python-0.0.4.dist-info → localstack_sdk_python-4.4.0.dist-info}/entry_points.txt
RENAMED
|
File without changes
|
{localstack_sdk_python-0.0.4.dist-info → localstack_sdk_python-4.4.0.dist-info/licenses}/LICENSE.txt
RENAMED
|
File without changes
|
{localstack_sdk_python-0.0.4.dist-info → localstack_sdk_python-4.4.0.dist-info}/top_level.txt
RENAMED
|
File without changes
|