Fast-Support
Fast-Support is a Python package designed to provide support for FastAPI applications when deploying on Firebase Functions. It includes utilities to handle incoming requests, route them to the appropriate FastAPI endpoints, and generate responses compatible with Firebase Functions.
Installation
You can install Fast-Support via pip:
pip install fast-support
Usage
from fastapi import FastAPI
from firebase_functions import https_fn, options
from fast_support import router
import hello_world
my_name = FastAPI()
my_name.include_router(hello_world.app)
@https_fn.on_request(cors=options.CorsOptions(cors_origins=['*'], cors_methods=['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS']))
def myfunction(req: https_fn.Request) -> https_fn.Response:
router(req, app=my_name, debug=True)
Features
- Routing incoming requests to FastAPI endpoints
- Handling query parameters and request body
- Debug mode for logging request details
Contributing
Contributions are welcome! Please feel free to submit issues or pull requests.
Metadata
Release files for fast-support 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fast-support-0.1.0.tar.gz | 2.5 kB | Without provenance | Details for fast-support-0.1.0.tar.gz |
Release files / fast-support-0.1.0.tar.gz
| Download URL | fast-support-0.1.0.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c9f3de2852a9a040fb03f5a9737cc7ab5d424273c193551cea78565dddad6f4a
|
|
BLAKE2b-256 checksum How to use checksums |
6cc0242954dfaa986f8081a0aaaa3ea223a33e1045a58b0d7e963bb201fc2273
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.8
|
Security for fast-support 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.