fastapi-firebase-0.3.1
توضیحات
FastAPI integration with firebase
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | fastapi-firebase-0.3.1 |
| نام | fastapi-firebase |
| نسخه کتابخانه | 0.3.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Francisco Del Roio |
| ایمیل نویسنده | francipvb@hotmail.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/fastapi-firebase/ |
| مجوز | - |
# 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:
```python
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.
نیازمندی
| مقدار | نام |
|---|---|
| >0.60.0 | fastapi |
| >=5.2.0,<6.0.0 | firebase-admin |
| >=0.0.5,<0.0.6 | python-multipart |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.8,<4.0 | Python |
نحوه نصب
نصب پکیج whl fastapi-firebase-0.3.1:
pip install fastapi-firebase-0.3.1.whl
نصب پکیج tar.gz fastapi-firebase-0.3.1:
pip install fastapi-firebase-0.3.1.tar.gz