
Security News
libxml2 Maintainer Ends Embargoed Vulnerability Reports, Citing Unsustainable Burden
Libxml2’s solo maintainer drops embargoed security fixes, highlighting the burden on unpaid volunteers who keep critical open source software secure.
Aquilify is an ASGI (Asynchronous Server Gateway Interface) framework designed to facilitate the development of web applications with Python. It enables efficient handling of HTTP requests, WebSocket connections, middleware processing, and exception handling in an asynchronous environment.
Documentation: http://www.aquilify.vvfin.in/
Aquilify is an ASGI (Asynchronous Server Gateway Interface) framework designed to facilitate the development of web applications with Python. It enables efficient handling of HTTP requests, WebSocket connections, middleware processing, and exception handling in an asynchronous environment.
$ pip install aquilify
aquilify[full]
$ pip install aquilify[full]
Create a new aquilify app using the command show below :
$ aquilify create-app myapp
Now, move inside the myapp
and run :
$ aquilify runserver
To make changes in ASGI server configuration open myapp/config.cfg
:
[ASGI_SERVER]
server = NETIX
host = 127.0.0.1
port = 8000
debug = True
reload = False
instance = asgi:application
visit: http://localhost:8000
output:
myapp/views.py
async def myview() -> dict:
return {"message": "Welcome to aquilify"}, 200
myapp/routing.py
from aquilify.core.routing import rule
import views
ROUTER = [
rule('/', view.myview)
]
run server
$ aquilify runserver
Starting Netix v1.12 (cpython 3.12.1, win32)
------------------------------------------------------------------------
Options:
run(host=127.0.0.1, port=8000, reuse_port=True, worker_num=1, ssl={}, debug=True, app=asgi:application, log_level=DEBUG)
------------------------------------------------------------------------
[2024-01-08 15:48:19] Netix detected Aquilify starting.. : Aquilify
[2024-01-08 15:48:19,421] INFO: lifespan: startup
[2024-01-08 15:48:19,423] INFO: lifespan.startup.complete
[2024-01-08 15:48:20] Netix (ASGI) (pid 17892) is started at 127.0.0.1 port 8000
output
: http://localhost:8000/
:
{
"message": "Welcome to aquilify"
}
starlette
.Aquilify only requires anyio
, and the following are optional:
aiofiles
][aiofile] - Required if you want to use the StaticMIddleware
or File based Opertation
.jinja2
][jinja2] - Required if you want to use TemplateResponse
.python-multipart
][python-multipart] - Required if you want to support form parsing, with request.form()
.itsdangerous
][itsdangerous] - Required for SessionMiddleware
and CSRF
support.markupsafe
][markupsafe] - Required for Jinja2
and CSRF
support.FAQs
Aquilify is an ASGI (Asynchronous Server Gateway Interface) framework designed to facilitate the development of web applications with Python. It enables efficient handling of HTTP requests, WebSocket connections, middleware processing, and exception handling in an asynchronous environment.
We found that aquilify 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
Libxml2’s solo maintainer drops embargoed security fixes, highlighting the burden on unpaid volunteers who keep critical open source software secure.
Research
Security News
Socket investigates hidden protestware in npm packages that blocks user interaction and plays the Ukrainian anthem for Russian-language visitors.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.