Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

Hello Google APIs Team,

I'm working with the Python client library for Google APIs (google-api-python-client) and have a question about asynchronous support:

Current Availability: Is there an official asynchronous version of the client library available? I've noticed that the execute() method performs synchronous blocking calls, which can create performance bottlenecks in high-concurrency applications.
Future Roadmap: Are there any plans to introduce native asynchronous support (e.g., async/await syntax or gRPC-based implementations) in upcoming releases? This would be particularly beneficial for:
Microservices architectures
Real-time data pipelines
Serverless environments with strict cold-start requirements
Context:
While the community has developed async wrappers (e.g., using aiohttp or trio), official support would ensure:

Better long-term maintenance
Deeper integration with Google's authentication systems
Compatibility with future API changes
Use Case Example:

python

Current synchronous pattern

response = service.purchases().subscriptionsv2().get(
packageName="com.example.app",
token="purchase_token"
).execute() # Blocks event loop

Desired async pattern

async def get_subscription():
return await service.async_purchases().subscriptionsv2().aget(
packageName="com.example.app",
token="purchase_token"
)
Thank you for considering this feature request. Official asynchronous support would significantly improve performance for latency-sensitive applications using Google APIs.

You must be logged in to vote

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.