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)
Deployment
Service Account User Role is needed for the client to generate oidc token.
Metadata
Release files for gcp-taskqueue 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gcp-taskqueue-0.0.3.tar.gz | 3.4 kB | Without provenance | Details for gcp-taskqueue-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gcp_taskqueue-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for gcp_taskqueue-0.0.3-py3-none-any.whl |
Total release size: 8.6 kB
Release files / gcp-taskqueue-0.0.3.tar.gz
| Download URL | gcp-taskqueue-0.0.3.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dd5881b207f1e72a8b4c9f9a00d632072fe4ef174ad3262d1a7aa4929cb60bf4
|
|
BLAKE2b-256 checksum How to use checksums |
7b316224c7d2eb0bbec7760b47d0067a02dcfe60536814334cfd9b51e560d042
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5
|
Release files / gcp_taskqueue-0.0.3-py3-none-any.whl
| Download URL | gcp_taskqueue-0.0.3-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0176126d50d1f84e500e3ed59cabb0268fd35a296cdfc7a6a68f9daa8e63b3b1
|
|
BLAKE2b-256 checksum How to use checksums |
46a9b3c18687a40cf303650f1815c4d19ae8a19f1d2ad1a73bbb4c83a499fe4e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5
|
Security for gcp-taskqueue 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.