
Security Fundamentals
Turtles, Clams, and Cyber Threat Actors: Shell Usage
The Socket Threat Research Team uncovers how threat actors weaponize shell techniques across npm, PyPI, and Go ecosystems to maintain persistence and exfiltrate data.
Extremely Stupid Simple, Blazing Fast, Get Out of your way immediately Microframework for building Python Web Applications.
Heaven is a very very small, extremely tiny, and insanely fast ASGI web application framework. It was designed to facilitate productivity by allowing for complete mastery in 10 minutes or less.
Heaven is a very light layer around ASGI with support for application mounting and is perhaps the simplest and one of the fastest python web frameworks (biased opinion of course).
$ pip install heaven
patients.py
or controllers/patients/records.py
from heaven import Request, Response, Context
async def get_record_by_id(req: Request, res: Response, ctx: Context):
id = req.params.get('id')
# we'll get to this in a minute
dbconn = req.app.peek('dbconnection')
results = await dbconn.execute('select * from patients where id = 1000')
# req, res, ctx are available in your jinja templates
ctx.keep('results', results)
await res.render('patients.html')
middlewares/database.py
from heaven import App
async def updatabase(app: App):
# write code to connect to your database here
pool = DatabasePool('dsn://here')
# this will be available in all request handlers as request.app._.dbconn or req.app.peek('dbconn')
app.keep('dbconn', pool)
src/example.py
from heaven import App # also available as Router, Application
router = Router()
# you can persist things like db connections etc at app startup
router.ON(STARTUP, 'middlewares.connections.updatabase')
# note that you did not need to import your request handler, just giving heaven
# the path to your handler as a string is enough
router.GET('/v1/patients/:id', 'controllers.patients.records.get_record_by_id')
$ uvicorn app:example --reload
* Running on http://127.0.0.1:8000
For guidance on how to make contributions to Routerling, see the Contribution Guidelines
FAQs
Extremely Stupid Simple, Blazing Fast, Get Out of your way immediately Microframework for building Python Web Applications.
We found that heaven 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 Fundamentals
The Socket Threat Research Team uncovers how threat actors weaponize shell techniques across npm, PyPI, and Go ecosystems to maintain persistence and exfiltrate data.
Security News
At VulnCon 2025, NIST scrapped its NVD consortium plans, admitted it can't keep up with CVEs, and outlined automation efforts amid a mounting backlog.
Product
We redesigned our GitHub PR comments to deliver clear, actionable security insights without adding noise to your workflow.