Skip to main content

fastAPI Casdoor

Integration Casdoor with FastAPI

Installation

pip install fastapi-casdoor

Usage

from typing import Annotated, Depends
from fastapi import FastAPI
from fastapi_casdoor.deps import get_current_user
from fastapi_casdoor.models import User


@app.get("/")
async def root(user: Annotated[User, Depends(get_current_user)]):
    return {
        "user": user,
    }

Metadata

Release files for fastapi-casdoor 0.1.10

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

Built distribution (wheel)

Table of built distributions (wheels) for fastapi-casdoor 0.1.10
File Interpreter ABI Platform
fastapi_casdoor-0.1.10-py3-none-any.whl Python 3 none any Details

Release files / fastapi_casdoor-0.1.10-py3-none-any.whl

Download URL fastapi_casdoor-0.1.10-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
823db5262fd3d124f54d6fc585cf35f07a0efec9bf12e0f2eb47ed69c137313f
BLAKE2b-256 checksum
How to use checksums
6f9bfff877eac46d0c2d62c68a54b8098d2c2e70875f9c5274c15269b0b14060
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.8

Release history Release notifications | RSS feed

This release

0.1.10 This release

1 release file

0.1.8

3 release files

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.1

1 release file

0.1.0

1 release file

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