A lightning-fast, modern Python web framework
Reason this release was yanked:
BROKEN RELEASE! PLEASE USE KILLX 0.1.3 ONLY!
Project description
⚡ Killx Framework 🔥
A lightning-fast, modern, and zero-dependency Python web framework that's easier than Flask and built for speed & fun 🏎️💨
✨ Features
✅ URL parameters support (/user/<id>)
✅ JSON response helper
✅ Form data parsing (POST + JSON + Query)
✅ CORS enabled by default 🛡️
✅ Built-in minimalist template engine 🧠
✅ Static file serving (/static)
✅ Auto-reload (Realtime™) 🔁
✅ Debug mode logging 🐞
✅ No dependencies! (Pure Python Standard Library) 🐍
✅ You can support me on Github (github.com/Pavitroo)
🚀 What's New in v0.1.2?
🐛 Bug Fixes
- 🧹 Fixed issue where pressing
Ctrl+Cwouldn’t gracefully kill the server.
🆕 New Features
- 🐞 Debug Mode: See what Killx is doing step-by-step with
.log(). - 🔁 RealTime™ Reloading: Automatically restart the server when files change!
from killx import Killx
# Enable debug logging + auto-reload
app = Killx(Debug=True, RealTime=True) # Depend on You if you want it enable so do True and if not Do False. Done Simple.
# Root route using template
@app.route("/", methods=["GET"])
def homepage(request):
app.log("Rendering homepage with template")
return app.render_template("index.html", message="Welcome to Killx! 🚀")
# JSON API route with path and query params
@app.route("/api/user/<id>", methods=["GET"])
def get_user(request):
user_id = request["url_params"]["id"]
name = request["query_params"].get("name", ["Unknown"])[0]
app.log(f"Fetching user: {user_id} with name: {name}")
return app.json({"id": user_id, "name": name})
# POST route to receive form data
@app.route("/submit", methods=["POST"])
def submit(request):
form = request["form_data"]
app.log(f"Received form: {form}")
return app.json({
"status": "received",
"form": form
})
# Static file test (optional)
@app.route("/static-test", methods=["GET"])
def static_test(request):
return """
<html>
<head><link rel="stylesheet" href="/static/style.css"></head>
<body><h1>Static File Test</h1><script src="/static/script.js"></script></body>
</html>
"""
if __name__ == "__main__":
app.run(port=8080)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file killx-0.1.2.tar.gz.
File metadata
- Download URL: killx-0.1.2.tar.gz
- Upload date:
- Size: 26.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe22cbd0da26704c9e603c92edf3c6e303275d7d92baa9f4b57ce93662f0ac62
|
|
| MD5 |
62f44a0cc7a80afca230baf3edad28f6
|
|
| BLAKE2b-256 |
ff700b9229eeb6ff30e46f87d0fb846088cd195ffae82a77a31f7fe2b979a388
|
File details
Details for the file killx-0.1.2-py3-none-any.whl.
File metadata
- Download URL: killx-0.1.2-py3-none-any.whl
- Upload date:
- Size: 24.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09cd04870ef5c17cb3c00d91738d9e2f41a06b53574cae595b975652601902ad
|
|
| MD5 |
d3fde20574f74e66bfe3025bca016901
|
|
| BLAKE2b-256 |
1e4a0680832d97dfd754c652492b9853cedac7b1f90deec59fc504aa359df234
|