The `gcloud-rest-taskqueue` library provides an asynchronous Python client for interacting with Google Cloud Task Queue. It is part of the `gcloud-aio` monorepo, offering async functionality (via `aiohttp`) for various Google Cloud services. Currently at version 7.0.0, it follows a demand-driven release cadence as part of the larger `gcloud-aio` project.
pip install gcloud-rest-taskqueueVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to initialize the `TaskQueueClient` and create a task asynchronously. Ensure your `GCLOUD_PROJECT` environment variable is set and that Google Application Credentials are available for authentication.
Upgrade Python to 3.8+ or pin `gcloud-rest-taskqueue` to `<7.0.0`.
Upgrade Python to 3.7+ or pin `gcloud-rest-taskqueue` to `<6.0.0`.
Ensure all client method calls are prefixed with `await` and the entry point uses `asyncio.run()`.
Set the `GOOGLE_APPLICATION_CREDENTIALS` environment variable to the path of your service account JSON key file, or ensure appropriate IAM roles are assigned to your GCP service.
Choose the client that best fits your application's asynchronous requirements and ensure you consult the correct documentation for the chosen library.