Skip to main content

fastapi-auth-kit

fastapi-auth-kit provides plug-and-play authentication for FastAPI.

Features (v0.1.0)

  • JWT access token creation + verification
  • Password hashing (bcrypt)
  • FastAPI dependency: require_user()

Refresh tokens + OAuth planned for v0.2+.

Install

pip install fastapi-auth-kit

Quick example

from fastapi import FastAPI, Depends
from fastapi_auth_kit import AuthKit, AuthConfig

app = FastAPI()

auth = AuthKit(AuthConfig(secret_key="supersecret"))

@app.post("/login")
def login(username: str):
    token = auth.create_access_token({"sub": username})
    return {"access_token": token}

@app.get("/me")
def me(user=Depends(auth.require_user())):
    return user

License

MIT

Metadata

Release files for fastapi-authz-lite 0.1.0

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

Source distribution (sdist)

Source distribution for fastapi-authz-lite 0.1.0
File Size Uploaded Provenance Actions
fastapi_authz_lite-0.1.0.tar.gz 3.5 kB With provenance Details for fastapi_authz_lite-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fastapi-authz-lite 0.1.0
File Interpreter ABI Platform Actions
fastapi_authz_lite-0.1.0-py3-none-any.whl Python 3 none any Details for fastapi_authz_lite-0.1.0-py3-none-any.whl

Total release size: 7.6 kB

Release files / fastapi_authz_lite-0.1.0.tar.gz

Download URL fastapi_authz_lite-0.1.0.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ae993cffcfefea720a86107d0ef0cd337d71f523b27779d9052c1d082be47942
BLAKE2b-256 checksum
How to use checksums
9a531169ca35d2d3a62a02f12cfdc952eaddc99ea59290f91692231eedee667b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 22, 2026.

Transparency log

Release files / fastapi_authz_lite-0.1.0-py3-none-any.whl

Download URL fastapi_authz_lite-0.1.0-py3-none-any.whl
Size 4.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a86b746b811866c1ed39a30017be1f0354e4101071b167b16e7ba85345618071
BLAKE2b-256 checksum
How to use checksums
3041738ff6e6934c1ebac601654b4f9da4880705a2cb0ba9f598875cb312888f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 22, 2026.

Transparency log

Security for fastapi-authz-lite 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for fastapi_authz_lite-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

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