killx


Namekillx JSON
Version 0.1.3 PyPI version JSON
download
home_pageNone
SummaryA lightning-fast, modern Python web framework
upload_time2025-07-11 12:03:34
maintainerNone
docs_urlNone
authorNone
requires_python>=3.7
license# Next, LICENSE MIT License Copyright (c) 2024 Your Name Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords web framework http server api
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # ⚑ 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.3`?

### πŸ› Bug Fixes
- 🧹 Fixed issue where pressing `Ctrl+C` wouldn’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!

```python
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)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "killx",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "web, framework, http, server, api",
    "author": null,
    "author_email": "Pavitroo <pavitraguptadelhi@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/29/be/0c4f8c716fa44aac254d935d3d41f6b48327216769f778107d35ae27919b/killx-0.1.3.tar.gz",
    "platform": null,
    "description": "# \u26a1 Killx Framework \ud83d\udd25  \r\nA **lightning-fast**, **modern**, and **zero-dependency** Python web framework that's **easier than Flask** and built for speed & fun \ud83c\udfce\ufe0f\ud83d\udca8\r\n\r\n---\r\n\r\n## \u2728 Features\r\n\u2705 URL parameters support (`/user/<id>`)  \r\n\u2705 JSON response helper  \r\n\u2705 Form data parsing (POST + JSON + Query)  \r\n\u2705 CORS enabled by default \ud83d\udee1\ufe0f  \r\n\u2705 Built-in minimalist template engine \ud83e\udde0  \r\n\u2705 Static file serving (`/static`)  \r\n\u2705 Auto-reload (Realtime\u2122) \ud83d\udd01  \r\n\u2705 Debug mode logging \ud83d\udc1e  \r\n\u2705 **No dependencies!** (Pure Python Standard Library) \ud83d\udc0d\r\n\u2705 **You can support me on Github (github.com/Pavitroo)**\r\n\r\n---\r\n\r\n## \ud83d\ude80 What's New in `v0.1.3`?\r\n\r\n### \ud83d\udc1b Bug Fixes\r\n- \ud83e\uddf9 Fixed issue where pressing `Ctrl+C` wouldn\u2019t gracefully kill the server.\r\n\r\n### \ud83c\udd95 New Features\r\n- \ud83d\udc1e **Debug Mode**: See what Killx is doing step-by-step with `.log()`.\r\n- \ud83d\udd01 **RealTime\u2122 Reloading**: Automatically restart the server when files change!\r\n\r\n```python\r\nfrom killx import Killx\r\n\r\n# Enable debug logging + auto-reload\r\napp = Killx(Debug=True, RealTime=True) # Depend on You if you want it enable so do True and if not Do False. Done Simple.\r\n\r\n# Root route using template\r\n@app.route(\"/\", methods=[\"GET\"])\r\ndef homepage(request):\r\n    app.log(\"Rendering homepage with template\")\r\n    return app.render_template(\"index.html\", message=\"Welcome to Killx! \ud83d\ude80\")\r\n\r\n# JSON API route with path and query params\r\n@app.route(\"/api/user/<id>\", methods=[\"GET\"])\r\ndef get_user(request):\r\n    user_id = request[\"url_params\"][\"id\"]\r\n    name = request[\"query_params\"].get(\"name\", [\"Unknown\"])[0]\r\n    app.log(f\"Fetching user: {user_id} with name: {name}\")\r\n    return app.json({\"id\": user_id, \"name\": name})\r\n\r\n# POST route to receive form data\r\n@app.route(\"/submit\", methods=[\"POST\"])\r\ndef submit(request):\r\n    form = request[\"form_data\"]\r\n    app.log(f\"Received form: {form}\")\r\n    return app.json({\r\n        \"status\": \"received\",\r\n        \"form\": form\r\n    })\r\n\r\n# Static file test (optional)\r\n@app.route(\"/static-test\", methods=[\"GET\"])\r\ndef static_test(request):\r\n    return \"\"\"\r\n    <html>\r\n      <head><link rel=\"stylesheet\" href=\"/static/style.css\"></head>\r\n      <body><h1>Static File Test</h1><script src=\"/static/script.js\"></script></body>\r\n    </html>\r\n    \"\"\"\r\n\r\nif __name__ == \"__main__\":\r\n    app.run(port=8080)\r\n",
    "bugtrack_url": null,
    "license": "# Next, LICENSE\r\n        MIT License\r\n        \r\n        Copyright (c) 2024 Your Name\r\n        \r\n        Permission is hereby granted, free of charge, to any person obtaining a copy\r\n        of this software and associated documentation files (the \"Software\"), to deal\r\n        in the Software without restriction, including without limitation the rights\r\n        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r\n        copies of the Software, and to permit persons to whom the Software is\r\n        furnished to do so, subject to the following conditions:\r\n        \r\n        The above copyright notice and this permission notice shall be included in all\r\n        copies or substantial portions of the Software.\r\n        \r\n        THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r\n        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r\n        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r\n        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r\n        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r\n        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\r\n        SOFTWARE.",
    "summary": "A lightning-fast, modern Python web framework",
    "version": "0.1.3",
    "project_urls": {
        "Homepage": "https://github.com/Pavitroo/killx",
        "Repository": "https://github.com/Pavitroo/killx"
    },
    "split_keywords": [
        "web",
        " framework",
        " http",
        " server",
        " api"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "05e35480fa0d019f4aea69573be5e3e6f67fa4dfdd9e35e43595ecd7b06a8bf7",
                "md5": "da975e5c113d666422e88948c62e3725",
                "sha256": "b97d78909d0bae305ee435c54968ed42ab7c5ca69ad366d4b6c07f953fabbf0b"
            },
            "downloads": -1,
            "filename": "killx-0.1.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "da975e5c113d666422e88948c62e3725",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 7850,
            "upload_time": "2025-07-11T12:03:32",
            "upload_time_iso_8601": "2025-07-11T12:03:32.887034Z",
            "url": "https://files.pythonhosted.org/packages/05/e3/5480fa0d019f4aea69573be5e3e6f67fa4dfdd9e35e43595ecd7b06a8bf7/killx-0.1.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "29be0c4f8c716fa44aac254d935d3d41f6b48327216769f778107d35ae27919b",
                "md5": "5f94fb699f132aee347efafa5ec507e3",
                "sha256": "336d3cc3768ca85b30cabbea3ff66e826dcd95df188e7d6f1e58cef1e64516e7"
            },
            "downloads": -1,
            "filename": "killx-0.1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "5f94fb699f132aee347efafa5ec507e3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 7868,
            "upload_time": "2025-07-11T12:03:34",
            "upload_time_iso_8601": "2025-07-11T12:03:34.163175Z",
            "url": "https://files.pythonhosted.org/packages/29/be/0c4f8c716fa44aac254d935d3d41f6b48327216769f778107d35ae27919b/killx-0.1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-11 12:03:34",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Pavitroo",
    "github_project": "killx",
    "github_not_found": true,
    "lcname": "killx"
}
        
Elapsed time: 0.79503s