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.3.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

fastapi_firebase-0.3.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file fastapi-firebase-0.3.1.tar.gz.

File metadata

  • Download URL: fastapi-firebase-0.3.1.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.4 Linux/5.10.102.1-microsoft-standard-WSL2

File hashes

Hashes for fastapi-firebase-0.3.1.tar.gz
Algorithm Hash digest
SHA256 3f0091444ec41e47e939ffaa25fed3b0daab316fa40fd8e4d2bc95fed7b19ad2
MD5 2abf07a501098f67fdbdbd29194c6ef5
BLAKE2b-256 fe7df42e3f80e25ed9ef7fe22a9aca830f979b4e439449dd6e176a071d62d97b

See more details on using hashes here.

File details

Details for the file fastapi_firebase-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: fastapi_firebase-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.4 Linux/5.10.102.1-microsoft-standard-WSL2

File hashes

Hashes for fastapi_firebase-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f46656c22abf8a03cf81c35bcaa603af16d017b6a4a22040026311ffa0ef395d
MD5 3212f4cc9571edad5d8bdf1ebd682afc
BLAKE2b-256 5710adaba29cf8ca6acc851c337dd5b883c568eeba141c59ee48971d5a8575a0

See more details on using hashes here.

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