Skip to main content

FastAPI integration with firebase

Project description

FastAPI Firebase integration

This package contains some utilities to work with firebase in a FastAPI project.

Example usage

For example, if you want to send the firebase app name:

from fastapi import FastAPI, Depends
from fastapi_firebase import setup_firebase, firebase_app
from firebase_admin.app import App

app=FastAPI()

setup_firebase(app)

@app.get("/appname")
def get_appname(fb_app: App = Depends(firebase_app)):
    return fb_app.name

See the setup_firebase documentation for how to initialize.

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

fastapi-firebase-0.2.1.tar.gz (2.9 kB view hashes)

Uploaded Source

Built Distribution

fastapi_firebase-0.2.1-py3-none-any.whl (3.3 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