google cloud task queue
Project description
fastapi-authenticator
fastapi authenticator for google cloud tasks
Installation
server:
pip3 install fastapi-authenticator
client:
pip3 install gcp-taskqueue
Usage
server:
from fastapi import Depends, FastAPI
from fastapi_authenticator import GoogleCloudTask, google_cloud_task, google_cloud_auth
app = FastAPI()
@app.post("/task1")
def task_handler(
claims: dict = Depends(google_cloud_auth),
task: GoogleCloudTask: Depends(google_cloud_task)
):
...
client:
from gcp_taskqueue import TaskQueue
queue = TaskQueue(queue_id="your-queue-name")
queue.create_http_task("https://url", deadline=300)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gcp-taskqueue-0.0.2.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for gcp_taskqueue-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42176cdbfe4f277a2f81f9213e987ea92c683bfb41049db0c287b96e2ac51791 |
|
MD5 | 09e145a229fe9d8ffe2801c418008a0b |
|
BLAKE2b-256 | d3fb34c5493d2725c86f3b0eb642a11040fbb23c4f9fa8ecbeb74f435a7bd16d |