Skip to content

Allow asyncio API to be imported as grpc.aio#24289

Merged
lidizheng merged 4 commits intogrpc:masterfrom
lidizheng:aio-import-dot
Oct 2, 2020
Merged

Allow asyncio API to be imported as grpc.aio#24289
lidizheng merged 4 commits intogrpc:masterfrom
lidizheng:aio-import-dot

Conversation

@lidizheng
Copy link
Copy Markdown
Contributor

Previously, gRPC AsyncIO API can only be accessed via from grpc import aio. This was because the asyncio API depends on the main package, and might create a cyclic dependency (it might not work well with our internal import magic).

This PR adds the functionality to import the aio module via import grpc or import grpc.aio.

@lidizheng lidizheng added lang/Python release notes: yes Indicates if PR needs to be in release notes labels Sep 30, 2020
@lidizheng lidizheng changed the title Allow asyncio API to be accessed as grpc.aio.foo Allow asyncio API to be imported as grpc.aio Sep 30, 2020
@timhughes timhughes mentioned this pull request Sep 30, 2020
@lidizheng lidizheng marked this pull request as ready for review October 1, 2020 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lang/Python release notes: yes Indicates if PR needs to be in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants