Skip to main content

tc_auth

tc_auth is a Python authentication module designed for FastAPI applications. It provides reusable services for account management, login/signup flows, session handling, OTP verification, and OAuth login integrations.

What this code includes

  • Auth bootstrap class (tc_auth/auth.py) to wire services, dependencies, and exception handlers.
  • Database models (tc_auth/db/models.py) for accounts, sessions, OTP records, and OAuth-linked accounts.
  • Core services (tc_auth/service/) for authentication, account operations, sessions, OTP, OAuth, and user lookup.
  • Dependency helpers (tc_auth/dependencies/) to retrieve current user/session and enforce role/status checks.
  • OAuth adapters (tc_auth/oauth/) for Google and GitHub login flows.
  • JWT utilities and exception handling for token generation/verification and auth-specific errors.

Typical usage

Create an Auth instance with your SQLAlchemy engine and FastAPI app, then use exposed services/dependencies in your routes.

Metadata

Release files for tc-auth 1.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tc-auth 1.5.1
File Size Uploaded
tc_auth-1.5.1.tar.gz 21.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tc-auth 1.5.1
File Interpreter ABI Platform
tc_auth-1.5.1-py3-none-any.whl Python 3 none any Details

Total release size: 53.9 kB

Release files / tc_auth-1.5.1.tar.gz

Download URL tc_auth-1.5.1.tar.gz
Size 21.1 kB
Tags Source
SHA-256 checksum
How to use checksums
ae14557f30b0dc783317559f9ced3f6d6ed7f47ebe6c61dca8414e5ed647eca4
BLAKE2b-256 checksum
How to use checksums
29eff605b772cd893c355ebea28a53b5f614cbe5087fe44d9e45ef5af9d7ffda
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Release files / tc_auth-1.5.1-py3-none-any.whl

Download URL tc_auth-1.5.1-py3-none-any.whl
Size 32.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1f9091074fab6d6db93bcc4fb99e5986f46c74373f4ace2d756ab0ec8d6ccdf6
BLAKE2b-256 checksum
How to use checksums
638270f4379e23e269197ed7bfadcdd2725b284d7f91c0f8f3b0cf0bea4f54d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.9

Release history Release notifications | RSS feed

1.5.3

2 release files

1.5.2

2 release files

This release

1.5.1 This release

2 release files

1.5.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page