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.2

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.2
File Size Uploaded
tc_auth-1.5.2.tar.gz 32.5 kB Details

Built distribution (wheel)

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

Total release size: 79.8 kB

Release files / tc_auth-1.5.2.tar.gz

Download URL tc_auth-1.5.2.tar.gz
Size 32.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2b5ede64a3367772c1d911900f9395c675f6a3e6ab48f063945f8ac50e36bd72
BLAKE2b-256 checksum
How to use checksums
0c6795bf2166da8bbc17a506307ea3d2ca4a5e0e0d81dd367eb58a7ed9d6fb29
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.2-py3-none-any.whl

Download URL tc_auth-1.5.2-py3-none-any.whl
Size 47.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
49825e1e92d2775c1f97d7724641b32ae14c4c88839a03c968757d76645384e3
BLAKE2b-256 checksum
How to use checksums
42b3d804ac552491c97a7af6b03387f20aa6b475720d72a632f23c61ee613e33
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

This release

1.5.2 This release

2 release files

1.5.1

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