google cloud task queue
Project description
fastapi-authenticator
from fastapi import Depends, FastAPI fastapi authenticator for google cloud tasks
Installation
server:
pip3 install fastapi-authenticator
client:
pip3 install gcp-taskqueue
Usage
server:
from fastapi_authenticator import CloudTask, cloud_task_auth
app = FastAPI()
@app.post("/task1")
def task_handler(task: CloudTask: Depends(cloud_task_auth)):
...
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.1.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for gcp_taskqueue-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 08570d30d08337b9e49dc948d9d440d0f057068363985a22d09c1bf6d7209fc3 |
|
MD5 | e56cd8f51684da5ee15337a66edbacf0 |
|
BLAKE2b-256 | cec9203bb7d2c85f5f0cefdd150e91ba51664209f2de20ffe9ffb8510894fefb |