Skip to main content

GT Auth Client Functions

Project description

GitHub PayPal Ko-Fi

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)

Uploaded Source

Built Distribution

gtauthclient-0.0.7-py3-none-any.whl (3.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page