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.
Release files for fastapi-firebase 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fastapi-firebase-0.3.1.tar.gz | 3.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fastapi_firebase-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.0 kB
Release files / fastapi-firebase-0.3.1.tar.gz
| Download URL | fastapi-firebase-0.3.1.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3f0091444ec41e47e939ffaa25fed3b0daab316fa40fd8e4d2bc95fed7b19ad2
|
|
BLAKE2b-256 checksum How to use checksums |
fe7df42e3f80e25ed9ef7fe22a9aca830f979b4e439449dd6e176a071d62d97b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.10.4 Linux/5.10.102.1-microsoft-standard-WSL2
|
Release files / fastapi_firebase-0.3.1-py3-none-any.whl
| Download URL | fastapi_firebase-0.3.1-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f46656c22abf8a03cf81c35bcaa603af16d017b6a4a22040026311ffa0ef395d
|
|
BLAKE2b-256 checksum How to use checksums |
5710adaba29cf8ca6acc851c337dd5b883c568eeba141c59ee48971d5a8575a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.10.4 Linux/5.10.102.1-microsoft-standard-WSL2
|