capo-keyspacesstreams 0.7.0__tar.gz → 0.8.0__tar.gz
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.
- {capo_keyspacesstreams-0.7.0/src/capo_keyspacesstreams.egg-info → capo_keyspacesstreams-0.8.0}/PKG-INFO +10 -2
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/README.md +5 -1
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/pyproject.toml +7 -1
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/__init__.py +6 -0
- capo_keyspacesstreams-0.8.0/src/capo_keyspacesstreams/types/_unknown.py +34 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/get_records_input.py +1 -3
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/get_shard_iterator_input.py +7 -5
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/get_stream_input.py +1 -3
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/get_stream_output.py +18 -10
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/keyspaces_cell_value.py +12 -1
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/stream.py +4 -6
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0/src/capo_keyspacesstreams.egg-info}/PKG-INFO +10 -2
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams.egg-info/SOURCES.txt +1 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/LICENSE +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/setup.cfg +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/_async.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/_auth/_identity.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/_auth/_providers.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/_auth/_signers.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/_auth/_sigv4.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/_auth/_zapros_handler.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/_aws.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/_body.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/_iter.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/_operations/keyspaces_streams/get_records.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/_operations/keyspaces_streams/get_shard_iterator.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/_operations/keyspaces_streams/get_stream.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/_operations/keyspaces_streams/list_streams.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/_pagination.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/_protocol/__init__.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/_protocol/errors.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/_protocol/eventstream.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/_protocol/serialize.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/_protocol/xml.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/_rule_engine/__init__.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/_rule_engine/_aws_partition.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/_rule_engine/_endpoint_rule_set.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/_rule_engine/_endpoint_runtime.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/_services/_aws_config.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/_services/_pipeline.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/_services/async_keyspaces_streams.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/_services/keyspaces_streams.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/errors/__init__.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/errors/_base.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/errors/access_denied_exception.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/errors/internal_server_exception.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/errors/resource_not_found_exception.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/errors/throttling_exception.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/errors/validation_exception.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/py.typed +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/_prelude/blob.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/_prelude/timestamp.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/date.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/get_records_output.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/get_shard_iterator_output.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/iterator_description.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/iterator_position.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/keyspace_name.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/keyspaces_cell.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/keyspaces_cell_list.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/keyspaces_cell_map.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/keyspaces_cell_map_definition.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/keyspaces_cells.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/keyspaces_keys_map.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/keyspaces_metadata.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/keyspaces_row.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/keyspaces_udt_map.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/list_streams_input.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/list_streams_output.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/origin_type.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/record.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/record_list.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/sequence_number.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/sequence_number_range.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/shard.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/shard_description_list.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/shard_filter.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/shard_filter_type.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/shard_id.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/shard_id_list.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/shard_id_token.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/shard_iterator.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/shard_iterator_type.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/stream_arn.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/stream_arn_token.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/stream_list.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/stream_status.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/stream_view_type.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/table_name.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/validation_exception_type.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams.egg-info/dependency_links.txt +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams.egg-info/requires.txt +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams.egg-info/top_level.txt +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/tests/test_body.py +0 -0
- {capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/tests/test_sigv4.py +0 -0
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: capo-keyspacesstreams
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.8.0
|
|
4
4
|
Summary: Python SDK for AWS Keyspacesstreams.
|
|
5
|
+
Project-URL: Homepage, https://capo-sdk.dev/
|
|
6
|
+
Project-URL: Documentation, https://capo-sdk.dev/services/keyspacesstreams/
|
|
7
|
+
Project-URL: Repository, https://github.com/kap-sh/capo/tree/main/services/keyspacesstreams
|
|
8
|
+
Project-URL: Changelog, https://github.com/kap-sh/capo/blob/main/services/keyspacesstreams/CHANGELOG.md
|
|
5
9
|
Classifier: Development Status :: 4 - Beta
|
|
6
10
|
Classifier: Intended Audience :: Developers
|
|
7
11
|
Classifier: License :: OSI Approved :: MIT License
|
|
@@ -26,7 +30,11 @@ Requires-Dist: capo-sso-oidc>=0.2.0; extra == "sso"
|
|
|
26
30
|
Requires-Dist: capo-sts>=0.3.0; extra == "sso"
|
|
27
31
|
Dynamic: license-file
|
|
28
32
|
|
|
29
|
-
#
|
|
33
|
+
# capo-keyspacesstreams: typed, async Python SDK for AWS Keyspacesstreams
|
|
34
|
+
|
|
35
|
+
`capo-keyspacesstreams` is a typed Python SDK for AWS Keyspacesstreams. It has an async client, `AsyncKeyspacesStreamsClient`, for asyncio and trio, and a sync client, `KeyspacesStreamsClient`, with the same methods. Requests and responses are typed with TypedDicts, so your editor and type checker know every field.
|
|
36
|
+
|
|
37
|
+
It is part of [capo](https://capo-sdk.dev/), a community-driven alternative to boto3 and aioboto3, built on its own HTTP stack instead of botocore and generated from the official AWS Smithy models. Documentation: [https://capo-sdk.dev/services/keyspacesstreams/](https://capo-sdk.dev/services/keyspacesstreams/)
|
|
30
38
|
|
|
31
39
|
## Installation
|
|
32
40
|
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
#
|
|
1
|
+
# capo-keyspacesstreams: typed, async Python SDK for AWS Keyspacesstreams
|
|
2
|
+
|
|
3
|
+
`capo-keyspacesstreams` is a typed Python SDK for AWS Keyspacesstreams. It has an async client, `AsyncKeyspacesStreamsClient`, for asyncio and trio, and a sync client, `KeyspacesStreamsClient`, with the same methods. Requests and responses are typed with TypedDicts, so your editor and type checker know every field.
|
|
4
|
+
|
|
5
|
+
It is part of [capo](https://capo-sdk.dev/), a community-driven alternative to boto3 and aioboto3, built on its own HTTP stack instead of botocore and generated from the official AWS Smithy models. Documentation: [https://capo-sdk.dev/services/keyspacesstreams/](https://capo-sdk.dev/services/keyspacesstreams/)
|
|
2
6
|
|
|
3
7
|
## Installation
|
|
4
8
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "capo-keyspacesstreams"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.8.0"
|
|
4
4
|
description = "Python SDK for AWS Keyspacesstreams."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.10"
|
|
@@ -22,6 +22,12 @@ dependencies = [
|
|
|
22
22
|
"zapros>=0.21.0",
|
|
23
23
|
]
|
|
24
24
|
|
|
25
|
+
[project.urls]
|
|
26
|
+
Homepage = "https://capo-sdk.dev/"
|
|
27
|
+
Documentation = "https://capo-sdk.dev/services/keyspacesstreams/"
|
|
28
|
+
Repository = "https://github.com/kap-sh/capo/tree/main/services/keyspacesstreams"
|
|
29
|
+
Changelog = "https://github.com/kap-sh/capo/blob/main/services/keyspacesstreams/CHANGELOG.md"
|
|
30
|
+
|
|
25
31
|
[project.optional-dependencies]
|
|
26
32
|
# Async file request bodies via Body.async_from_path
|
|
27
33
|
anyio = ["anyio>=3.0"]
|
{capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/__init__.py
RENAMED
|
@@ -79,3 +79,9 @@ from ._services.async_keyspaces_streams import (
|
|
|
79
79
|
from ._services.keyspaces_streams import (
|
|
80
80
|
KeyspacesStreamsClient as KeyspacesStreamsClient,
|
|
81
81
|
)
|
|
82
|
+
from .types._unknown import (
|
|
83
|
+
UnknownEvent as UnknownEvent,
|
|
84
|
+
)
|
|
85
|
+
from .types._unknown import (
|
|
86
|
+
UnknownUnionMember as UnknownUnionMember,
|
|
87
|
+
)
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"""Stand-ins for union variants and events this client doesn't know about.
|
|
2
|
+
|
|
3
|
+
A service may add a union member or an event after the client was generated.
|
|
4
|
+
Smithy asks clients not to fail on those, so deserialization returns one of
|
|
5
|
+
these instead of raising.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from __future__ import annotations
|
|
9
|
+
|
|
10
|
+
from dataclasses import dataclass
|
|
11
|
+
|
|
12
|
+
from .._protocol.eventstream import Message
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@dataclass(frozen=True)
|
|
16
|
+
class UnknownUnionMember:
|
|
17
|
+
"""A union variant the service sent that this client has no member for."""
|
|
18
|
+
|
|
19
|
+
name: str
|
|
20
|
+
"""The variant's name on the wire."""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
@dataclass(frozen=True)
|
|
24
|
+
class UnknownEvent:
|
|
25
|
+
"""An event-stream event whose ``:event-type`` this client doesn't know."""
|
|
26
|
+
|
|
27
|
+
event_type: str
|
|
28
|
+
"""The event's ``:event-type`` header."""
|
|
29
|
+
|
|
30
|
+
message: Message
|
|
31
|
+
"""The raw message, headers and undecoded payload."""
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
__all__ = ["UnknownEvent", "UnknownUnionMember"]
|
|
@@ -4,8 +4,6 @@ from typing import TYPE_CHECKING
|
|
|
4
4
|
|
|
5
5
|
from typing_extensions import NotRequired, TypedDict
|
|
6
6
|
|
|
7
|
-
from capo_keyspacesstreams.errors import DeserializationError
|
|
8
|
-
|
|
9
7
|
if TYPE_CHECKING:
|
|
10
8
|
import capo_keyspacesstreams.types.shard_iterator
|
|
11
9
|
|
|
@@ -31,7 +29,7 @@ def deserialize_aws_json_1_0(data: dict) -> GetRecordsInput:
|
|
|
31
29
|
if data.get("shardIterator") is not None:
|
|
32
30
|
out["shard_iterator"] = data["shardIterator"]
|
|
33
31
|
else:
|
|
34
|
-
|
|
32
|
+
out["shard_iterator"] = ""
|
|
35
33
|
if data.get("maxResults") is not None:
|
|
36
34
|
out["max_results"] = data["maxResults"]
|
|
37
35
|
return out
|
|
@@ -4,8 +4,6 @@ from typing import TYPE_CHECKING
|
|
|
4
4
|
|
|
5
5
|
from typing_extensions import NotRequired, TypedDict
|
|
6
6
|
|
|
7
|
-
from capo_keyspacesstreams.errors import DeserializationError
|
|
8
|
-
|
|
9
7
|
if TYPE_CHECKING:
|
|
10
8
|
import capo_keyspacesstreams.types.sequence_number
|
|
11
9
|
import capo_keyspacesstreams.types.shard_id
|
|
@@ -50,11 +48,11 @@ def deserialize_aws_json_1_0(data: dict) -> GetShardIteratorInput:
|
|
|
50
48
|
if data.get("streamArn") is not None:
|
|
51
49
|
out["stream_arn"] = data["streamArn"]
|
|
52
50
|
else:
|
|
53
|
-
|
|
51
|
+
out["stream_arn"] = ""
|
|
54
52
|
if data.get("shardId") is not None:
|
|
55
53
|
out["shard_id"] = data["shardId"]
|
|
56
54
|
else:
|
|
57
|
-
|
|
55
|
+
out["shard_id"] = ""
|
|
58
56
|
if data.get("shardIteratorType") is not None:
|
|
59
57
|
import capo_keyspacesstreams.types.shard_iterator_type
|
|
60
58
|
|
|
@@ -64,7 +62,11 @@ def deserialize_aws_json_1_0(data: dict) -> GetShardIteratorInput:
|
|
|
64
62
|
)
|
|
65
63
|
)
|
|
66
64
|
else:
|
|
67
|
-
|
|
65
|
+
import typing
|
|
66
|
+
|
|
67
|
+
out["shard_iterator_type"] = typing.cast(
|
|
68
|
+
"capo_keyspacesstreams.types.shard_iterator_type.ShardIteratorType", ""
|
|
69
|
+
)
|
|
68
70
|
if data.get("sequenceNumber") is not None:
|
|
69
71
|
out["sequence_number"] = data["sequenceNumber"]
|
|
70
72
|
return out
|
|
@@ -4,8 +4,6 @@ from typing import TYPE_CHECKING
|
|
|
4
4
|
|
|
5
5
|
from typing_extensions import NotRequired, TypedDict
|
|
6
6
|
|
|
7
|
-
from capo_keyspacesstreams.errors import DeserializationError
|
|
8
|
-
|
|
9
7
|
if TYPE_CHECKING:
|
|
10
8
|
import capo_keyspacesstreams.types.shard_filter
|
|
11
9
|
import capo_keyspacesstreams.types.shard_id_token
|
|
@@ -47,7 +45,7 @@ def deserialize_aws_json_1_0(data: dict) -> GetStreamInput:
|
|
|
47
45
|
if data.get("streamArn") is not None:
|
|
48
46
|
out["stream_arn"] = data["streamArn"]
|
|
49
47
|
else:
|
|
50
|
-
|
|
48
|
+
out["stream_arn"] = ""
|
|
51
49
|
if data.get("maxResults") is not None:
|
|
52
50
|
out["max_results"] = data["maxResults"]
|
|
53
51
|
if data.get("shardFilter") is not None:
|
|
@@ -4,8 +4,6 @@ from typing import TYPE_CHECKING
|
|
|
4
4
|
|
|
5
5
|
from typing_extensions import NotRequired, TypedDict
|
|
6
6
|
|
|
7
|
-
from capo_keyspacesstreams.errors import DeserializationError
|
|
8
|
-
|
|
9
7
|
if TYPE_CHECKING:
|
|
10
8
|
import capo_keyspacesstreams.types.date
|
|
11
9
|
import capo_keyspacesstreams.types.keyspace_name
|
|
@@ -86,11 +84,11 @@ def deserialize_aws_json_1_0(data: dict) -> GetStreamOutput:
|
|
|
86
84
|
if data.get("streamArn") is not None:
|
|
87
85
|
out["stream_arn"] = data["streamArn"]
|
|
88
86
|
else:
|
|
89
|
-
|
|
87
|
+
out["stream_arn"] = ""
|
|
90
88
|
if data.get("streamLabel") is not None:
|
|
91
89
|
out["stream_label"] = data["streamLabel"]
|
|
92
90
|
else:
|
|
93
|
-
|
|
91
|
+
out["stream_label"] = ""
|
|
94
92
|
if data.get("streamStatus") is not None:
|
|
95
93
|
import capo_keyspacesstreams.types.stream_status
|
|
96
94
|
|
|
@@ -100,7 +98,11 @@ def deserialize_aws_json_1_0(data: dict) -> GetStreamOutput:
|
|
|
100
98
|
)
|
|
101
99
|
)
|
|
102
100
|
else:
|
|
103
|
-
|
|
101
|
+
import typing
|
|
102
|
+
|
|
103
|
+
out["stream_status"] = typing.cast(
|
|
104
|
+
"capo_keyspacesstreams.types.stream_status.StreamStatus", ""
|
|
105
|
+
)
|
|
104
106
|
if data.get("streamViewType") is not None:
|
|
105
107
|
import capo_keyspacesstreams.types.stream_view_type
|
|
106
108
|
|
|
@@ -110,7 +112,11 @@ def deserialize_aws_json_1_0(data: dict) -> GetStreamOutput:
|
|
|
110
112
|
)
|
|
111
113
|
)
|
|
112
114
|
else:
|
|
113
|
-
|
|
115
|
+
import typing
|
|
116
|
+
|
|
117
|
+
out["stream_view_type"] = typing.cast(
|
|
118
|
+
"capo_keyspacesstreams.types.stream_view_type.StreamViewType", ""
|
|
119
|
+
)
|
|
114
120
|
if data.get("creationRequestDateTime") is not None:
|
|
115
121
|
import capo_keyspacesstreams.types.date
|
|
116
122
|
|
|
@@ -120,17 +126,19 @@ def deserialize_aws_json_1_0(data: dict) -> GetStreamOutput:
|
|
|
120
126
|
)
|
|
121
127
|
)
|
|
122
128
|
else:
|
|
123
|
-
|
|
124
|
-
|
|
129
|
+
import datetime
|
|
130
|
+
|
|
131
|
+
out["creation_request_date_time"] = datetime.datetime.fromtimestamp(
|
|
132
|
+
0, tz=datetime.timezone.utc
|
|
125
133
|
)
|
|
126
134
|
if data.get("keyspaceName") is not None:
|
|
127
135
|
out["keyspace_name"] = data["keyspaceName"]
|
|
128
136
|
else:
|
|
129
|
-
|
|
137
|
+
out["keyspace_name"] = ""
|
|
130
138
|
if data.get("tableName") is not None:
|
|
131
139
|
out["table_name"] = data["tableName"]
|
|
132
140
|
else:
|
|
133
|
-
|
|
141
|
+
out["table_name"] = ""
|
|
134
142
|
if data.get("shards") is not None:
|
|
135
143
|
import capo_keyspacesstreams.types.shard_description_list
|
|
136
144
|
|
|
@@ -5,6 +5,7 @@ from typing import TYPE_CHECKING, TypeAlias
|
|
|
5
5
|
from typing_extensions import TypedDict
|
|
6
6
|
|
|
7
7
|
from capo_keyspacesstreams.errors import DeserializationError, SerializationError
|
|
8
|
+
from capo_keyspacesstreams.types._unknown import UnknownUnionMember
|
|
8
9
|
|
|
9
10
|
if TYPE_CHECKING:
|
|
10
11
|
import capo_keyspacesstreams.types.keyspaces_cell_list
|
|
@@ -143,12 +144,17 @@ KeyspacesCellValue: TypeAlias = (
|
|
|
143
144
|
| _KeyspacesCellValue_varcharT
|
|
144
145
|
| _KeyspacesCellValue_varintT
|
|
145
146
|
| _KeyspacesCellValue_udtT
|
|
147
|
+
| UnknownUnionMember
|
|
146
148
|
)
|
|
147
149
|
|
|
148
150
|
|
|
149
151
|
# --- awsJson1_0 ser/de ---
|
|
150
152
|
def serialize_aws_json_1_0(value: KeyspacesCellValue) -> dict:
|
|
151
|
-
if
|
|
153
|
+
if isinstance(value, UnknownUnionMember):
|
|
154
|
+
raise SerializationError(
|
|
155
|
+
f"KeyspacesCellValue: cannot serialize unknown variant {value.name!r}"
|
|
156
|
+
)
|
|
157
|
+
elif "asciiT" in value:
|
|
152
158
|
return {"asciiT": value["asciiT"]}
|
|
153
159
|
elif "bigintT" in value:
|
|
154
160
|
return {"bigintT": value["bigintT"]}
|
|
@@ -330,4 +336,9 @@ def deserialize_aws_json_1_0(data: dict) -> KeyspacesCellValue:
|
|
|
330
336
|
)
|
|
331
337
|
}
|
|
332
338
|
else:
|
|
339
|
+
name = next(
|
|
340
|
+
(k for k, v in data.items() if v is not None and k != "__type"), None
|
|
341
|
+
)
|
|
342
|
+
if name is not None:
|
|
343
|
+
return UnknownUnionMember(name)
|
|
333
344
|
raise DeserializationError("KeyspacesCellValue: no recognized variant key")
|
|
@@ -4,8 +4,6 @@ from typing import TYPE_CHECKING
|
|
|
4
4
|
|
|
5
5
|
from typing_extensions import TypedDict
|
|
6
6
|
|
|
7
|
-
from capo_keyspacesstreams.errors import DeserializationError
|
|
8
|
-
|
|
9
7
|
if TYPE_CHECKING:
|
|
10
8
|
import capo_keyspacesstreams.types.keyspace_name
|
|
11
9
|
import capo_keyspacesstreams.types.stream_arn
|
|
@@ -38,17 +36,17 @@ def deserialize_aws_json_1_0(data: dict) -> Stream:
|
|
|
38
36
|
if data.get("streamArn") is not None:
|
|
39
37
|
out["stream_arn"] = data["streamArn"]
|
|
40
38
|
else:
|
|
41
|
-
|
|
39
|
+
out["stream_arn"] = ""
|
|
42
40
|
if data.get("keyspaceName") is not None:
|
|
43
41
|
out["keyspace_name"] = data["keyspaceName"]
|
|
44
42
|
else:
|
|
45
|
-
|
|
43
|
+
out["keyspace_name"] = ""
|
|
46
44
|
if data.get("tableName") is not None:
|
|
47
45
|
out["table_name"] = data["tableName"]
|
|
48
46
|
else:
|
|
49
|
-
|
|
47
|
+
out["table_name"] = ""
|
|
50
48
|
if data.get("streamLabel") is not None:
|
|
51
49
|
out["stream_label"] = data["streamLabel"]
|
|
52
50
|
else:
|
|
53
|
-
|
|
51
|
+
out["stream_label"] = ""
|
|
54
52
|
return out
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: capo-keyspacesstreams
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.8.0
|
|
4
4
|
Summary: Python SDK for AWS Keyspacesstreams.
|
|
5
|
+
Project-URL: Homepage, https://capo-sdk.dev/
|
|
6
|
+
Project-URL: Documentation, https://capo-sdk.dev/services/keyspacesstreams/
|
|
7
|
+
Project-URL: Repository, https://github.com/kap-sh/capo/tree/main/services/keyspacesstreams
|
|
8
|
+
Project-URL: Changelog, https://github.com/kap-sh/capo/blob/main/services/keyspacesstreams/CHANGELOG.md
|
|
5
9
|
Classifier: Development Status :: 4 - Beta
|
|
6
10
|
Classifier: Intended Audience :: Developers
|
|
7
11
|
Classifier: License :: OSI Approved :: MIT License
|
|
@@ -26,7 +30,11 @@ Requires-Dist: capo-sso-oidc>=0.2.0; extra == "sso"
|
|
|
26
30
|
Requires-Dist: capo-sts>=0.3.0; extra == "sso"
|
|
27
31
|
Dynamic: license-file
|
|
28
32
|
|
|
29
|
-
#
|
|
33
|
+
# capo-keyspacesstreams: typed, async Python SDK for AWS Keyspacesstreams
|
|
34
|
+
|
|
35
|
+
`capo-keyspacesstreams` is a typed Python SDK for AWS Keyspacesstreams. It has an async client, `AsyncKeyspacesStreamsClient`, for asyncio and trio, and a sync client, `KeyspacesStreamsClient`, with the same methods. Requests and responses are typed with TypedDicts, so your editor and type checker know every field.
|
|
36
|
+
|
|
37
|
+
It is part of [capo](https://capo-sdk.dev/), a community-driven alternative to boto3 and aioboto3, built on its own HTTP stack instead of botocore and generated from the official AWS Smithy models. Documentation: [https://capo-sdk.dev/services/keyspacesstreams/](https://capo-sdk.dev/services/keyspacesstreams/)
|
|
30
38
|
|
|
31
39
|
## Installation
|
|
32
40
|
|
|
@@ -42,6 +42,7 @@ src/capo_keyspacesstreams/errors/internal_server_exception.py
|
|
|
42
42
|
src/capo_keyspacesstreams/errors/resource_not_found_exception.py
|
|
43
43
|
src/capo_keyspacesstreams/errors/throttling_exception.py
|
|
44
44
|
src/capo_keyspacesstreams/errors/validation_exception.py
|
|
45
|
+
src/capo_keyspacesstreams/types/_unknown.py
|
|
45
46
|
src/capo_keyspacesstreams/types/date.py
|
|
46
47
|
src/capo_keyspacesstreams/types/get_records_input.py
|
|
47
48
|
src/capo_keyspacesstreams/types/get_records_output.py
|
|
File without changes
|
|
File without changes
|
{capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/_async.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/_aws.py
RENAMED
|
File without changes
|
{capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/_body.py
RENAMED
|
File without changes
|
{capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/_iter.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/_pagination.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/py.typed
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/date.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{capo_keyspacesstreams-0.7.0 → capo_keyspacesstreams-0.8.0}/src/capo_keyspacesstreams/types/shard.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|