GT Auth Client Functions
Project description
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"]
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gtauthclient-0.0.7.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for gtauthclient-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8723b9f96b863f499ec14dbdff228c9b22407eff6f337add719b1c9177cb8c5a |
|
MD5 | 1b6d01a297f0239ec4aa9bafa07a8d22 |
|
BLAKE2b-256 | f3645ee3ac89588396c441c39d5f8b30504f9156fd97c71aeecc5e1c8b40d0e9 |