Metadata-Version: 2.1
Name: fastapi-authenticator
Version: 0.1.0
Summary: fastapi authenticator for google cloud tasks
Home-page: https://github.com/guyingbo/fastapi-authenticator
Author: Yingbo Gu
Author-email: tensiongyb@gmail.com
Maintainer: Yingbo Gu
Maintainer-email: tensiongyb@gmail.com
License: MIT
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:
        
        ~~~python
        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:
        
        ~~~python
        from gcp_taskqueue import TaskQueue
        
        queue = TaskQueue(queue_id="your-queue-name")
        
        queue.create_http_task("https://url", deadline=300)
        ~~~
        
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
