Skip to content

Use service names in generated client and types package descriptions - #931

Merged
jonathan343 merged 3 commits into
developfrom
fix/package-description
Nov 12, 2026
Merged

jonathan343 merged 3 commits into
developfrom
fix/package-description

Conversation

@jonathan343

Copy link
Copy Markdown
Contributor

Summary

Generated client descriptions currently repeat the module name, such as
aws_sdk_dynamodb client, rather than identifying the service in readable terms.

This PR uses the service's standard smithy.api#title trait to generate
Python client for <title> or Python types for <title>, falling back to the
service shape's name when no title is present. Types packages generated without
a selected service use the module name instead of the internal synthetic service
name. This works for AWS and non-AWS services. Package metadata and the generated
README share the same resolved description. Explicit moduleDescription
overrides are unchanged.

Example

For Amazon DynamoDB, the generated pyproject.toml changes from:

description = "aws_sdk_dynamodb client"

To:

description = "Python client for Amazon DynamoDB"

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Default client descriptions to the service title, with the service name
as a fallback. Share the resolved description between package metadata
and the README while preserving explicit overrides and types defaults.
Limit title-based descriptions to pyproject.toml metadata. Preserve the
existing README output for a separate documentation overhaul.
Resolve descriptions during setup generation, honoring overrides before
service titles and names. Use the module name for service-less types
packages, and share the result between metadata and README output.
@jonathan343
jonathan343 marked this pull request as ready for review November 12, 2026 03:58
@jonathan343
jonathan343 requested a review from a team as a code owner November 12, 2026 03:58
@jonathan343
jonathan343 merged commit 6b60edf into develop Nov 12, 2026
48 checks passed
@jonathan343
jonathan343 deleted the fix/package-description branch November 12, 2026 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants