Metadata-Version: 2.1
Name: gcp-taskqueue
Version: 0.0.1
Summary: google cloud task queue
Home-page: https://github.com/guyingbo/gcp-taskqueue
Author: Yingbo Gu
Author-email: tensiongyb@gmail.com
Maintainer: Yingbo Gu
Maintainer-email: tensiongyb@gmail.com
License: MIT
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: google-cloud-tasks
Requires-Dist: google-auth

# 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:

~~~python
from fastapi_authenticator import CloudTask, cloud_task_auth

app = FastAPI()

@app.post("/task1")
def task_handler(task: CloudTask: Depends(cloud_task_auth)):
    ...
~~~

client:

~~~python
from gcp_taskqueue import TaskQueue

queue = TaskQueue(queue_id="your-queue-name")

queue.create_http_task("https://url", deadline=300)
~~~


