Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions codegen-output-py/rest-xml-client/.smithy-python-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"files": {
"README.md": "1e9cbec40ebffed35c2e9e9d8e92a6cc455f977590e68c4c4b9869876718d14d",
"pyproject.toml": "63315ce77d58e2529f720de1525a706b85b40c8e49f0c2b2a5fb12373ad1ad21",
"src/restxml_client/__init__.py": "b5a47df1b7e014cde52ee081a4ae42d82033d348b93a1954e1dc30776046207a",
"src/restxml_client/_private/__init__.py": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"src/restxml_client/_private/endpoints.py": "7d515fe771678e82ddbe07798d6b7e48c25c6c9bec19cec9318deb0bc5064ead",
"src/restxml_client/_private/schemas.py": "3182b24328495d0db4ce1975dce97d8f4b3cab18e6910641fa27d34df8629086",
"src/restxml_client/_private/schemas_0.py": "34f7fe09c98c5b7bf7daffc980f14fbdbb47b608f4b8690034827fd554bcd2c1",
"src/restxml_client/_private/schemas_1.py": "32d2cbea4cbf8ee61f1e0dfdab9ebd5a38181b8e3b159d591853686f9090e177",
"src/restxml_client/_private/schemas_2.py": "3c8a541a1626dd5ee59b4d6e483b8bf70db4c55f0497a74f67fd0181d226780b",
"src/restxml_client/aio/__init__.py": "c9dc5526981cf650810881dabd93561025805073a167c6b02a160a939d02cd9b",
"src/restxml_client/aio/client.py": "b57a38cca1c0f6753ac703fb009ff35dcacc5c44098d2376ac6dd0667ee89a5b",
"src/restxml_client/aio/config.py": "b28594a413fac3f79ebe6c73d46a386f6f7fb1d11ef4740a6319e3b7d708114f",
"src/restxml_client/aio/user_agent.py": "6d7319cf63fc3dcc98c7e75b615741296d55768da04013f6943b32b2d0a751f6",
"src/restxml_client/client.py": "d80278e3c12d1eb193df94c4e8afbc5ec24eb9c9eb41fa2353669861f4c5f05a",
"src/restxml_client/config.py": "d86882e00443edfa3dbf16bb916de881b372c71332856206e1f8d66de0f70ca8",
"src/restxml_client/models.py": "7e5c04410551333822485911673cb8dd0fe24aa24a33bbd71b66f5ea5f65e1fb",
"src/restxml_client/models.pyi": "4f503cae8ce42fc1675f8fe62e5efda28e4af18396ac78ba64b6dc3c5ae77e58",
"src/restxml_client/py.typed": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
"src/restxml_client/user_agent.py": "ec8e91e968b0514092b9b2c768d92a408f6764da99c44df82c6af0d56fa795a3"
},
"version": 1
}
5 changes: 5 additions & 0 deletions codegen-output-py/rest-xml-client/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<!-- Code generated by smithy-python-codegen DO NOT EDIT. -->

## restxml_client Client Package

Python client for the rest-xml projection
38 changes: 38 additions & 0 deletions codegen-output-py/rest-xml-client/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Code generated by smithy-python-codegen DO NOT EDIT.

[project]
name = "restxml_client"
version = "0.0.1"
description = "Python client for the rest-xml projection"
readme = "README.md"
requires-python = ">=3.12"
keywords = ["smithy", "restxml_client"]
license = {text = "Apache-2.0"}
dependencies = [
"smithy-aws-core[xml]~=0.16.0",
"smithy-core~=0.13.0",
"smithy-http[aiohttp,urllib3]~=0.10.0",
]

[build-system]
requires = [
"hatchling",
]
build-backend = "hatchling.build"

[tool.hatch.build.targets.wheel]
packages = [
"src/restxml_client",
]

[tool.pyright]
typeCheckingMode = "strict"

[tool.ruff]
target-version = "py312"

[tool.ruff.lint]
ignore = ["F841"]

[tool.ruff.format]
skip-magic-trailing-comma = true
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
from importlib import import_module
from typing import TYPE_CHECKING, Any

__version__: str = "0.0.1"

if TYPE_CHECKING:
from .aio.client import AsyncRestXmlProtocolClient
from .aio.config import AsyncRestXmlProtocolConfig
from .client import RestXmlProtocolClient
from .config import RestXmlProtocolConfig

__all__ = [
"AsyncRestXmlProtocolClient",
"AsyncRestXmlProtocolConfig",
"RestXmlProtocolClient",
"RestXmlProtocolConfig",
]

_EXPORTS = {
"RestXmlProtocolClient": ".client",
"RestXmlProtocolConfig": ".config",
"AsyncRestXmlProtocolClient": ".aio.client",
"AsyncRestXmlProtocolConfig": ".aio.config",
}


def __getattr__(name: str) -> Any:
if name in _EXPORTS:
return getattr(import_module(_EXPORTS[name], __name__), name)
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
from smithy_core.endpoints import EndpointBdd

# fmt: off
# Tags: ref=0, attr=1, call=2, list=3, map=4, error=5, endpoint=6.
BDD = EndpointBdd(
# (name, type, required, default, builtin, client_context_attribute)
parameters=(
("endpoint", "string", False, None, "SDK::Endpoint", None),
),
functions=("isSet",),
conditions=(
((2, "isSet", (0, "endpoint")), None), # 0: isSet(endpoint)
),
results=(
None, # 0: no match
(6, (0, "endpoint"), None, ()), # 1
(5, "(default endpointRuleSet) endpoint is not set - you must configure an endpoint."), # 2
),
root=2,
# (condition, high, low); 1 and -1 are terminals, a negative reference is a
# complement edge, and 100_000_000 + k is result k.
nodes=(
-1, 1, -1,
0, 100_000_001, 100_000_002,
),
)
# fmt: on
Loading
Loading