GT Auth Client
This is the Python GT Auth Client for FastAPI. It is used to authenticate with the GT Auth API.
Installation
You can install the package using pip:
pip install gtauthclient
Usage
An example of how to use the package is shown below:
from fastapi import FastAPI, Depends
from gtauthclient import GTAuthClient
auth = GTAuthClient(key="Your encryption key")
app = FastAPI()
@app.get("/v1/users", dependencies=[Depends(auth.verify_user)])
async def list_users():
return ["John", "Jane", "Jack"]
Metadata
Release files for gtauthclient 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gtauthclient-0.0.7.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gtauthclient-0.0.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.2 kB
Release files / gtauthclient-0.0.7.tar.gz
| Download URL | gtauthclient-0.0.7.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b527c268512d33d49a8c0defffe44a8aa3b036ed2f082cc19cbfed89b1010469
|
|
BLAKE2b-256 checksum How to use checksums |
712b8e4c9760bffedd06f586123f43387976800ad5d10106a34d2578070edcfb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.19
|
Release files / gtauthclient-0.0.7-py3-none-any.whl
| Download URL | gtauthclient-0.0.7-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8723b9f96b863f499ec14dbdff228c9b22407eff6f337add719b1c9177cb8c5a
|
|
BLAKE2b-256 checksum How to use checksums |
f3645ee3ac89588396c441c39d5f8b30504f9156fd97c71aeecc5e1c8b40d0e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.19
|