
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
This is a wrapper of a FAST API application with some additional features that might be useful for quick web development.
It features:
commons.logging
;.sql
files, or migrate json
data that runs automagically on server startup;webserver.core.ServerDatabase
)webserver.core.ServerCache
)Accept-Language
(webserver.core.AvailableLocale
)webserver.frontend.css
);Jinja2Template
;webserver.extras.proxies
):
The following features are expected to be implemented in the future. Contribution is welcome.
coverage run -m unittest && coverage html -d tests/coverage/html
uv build && twine upload dist/*
Optionally, set up the environment variables. All environment variables can be found on .env
file in the root of this repository.
import webserver
from fastapi import APIRouter, FastAPI
router: APIRouter = APIRouter()
app: FastAPI = webserver.app
@router.get("/")
def index():
return {"Hello World": f"from {webserver.settings.APP_NAME}"}
app.include_router(router)
if __name__ == "__main__":
webserver.start()
This enables both local execution through main
method as well as fastapi (dev|run)
commands.
FAQs
A simple FastAPI webserver with a bunch of useful resources.
We found that fastapi-webserver demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.