A lightweight Python microframework for building fast and simple web apps.
Project description
Frost
Frost is a lightweight Python web framework built from scratch.
It supports routing, templates, static files, forms, and session handling — all without any heavy dependencies.
Features
- Minimal and fast
- Route handling with dynamic parameters
- Template rendering with variable replacement
- Inline static files (CSS & JS)
- Form handling (POST & GET)
- Simple session management
Installation
You can install Frost locally via pip:
pip install frost
Quick Start
from frost import Server, route, read_template
@route("/")
def home():
return read_template("index.html")
Server()
File Structure
frost/
├─ frost/
│ ├─ init.py
│ ├─ server.py
│ ├─ router.py
│ ├─ response.py
│ └─ session.py
├─ templates/
├─ static/
├─ setup.py
├─ README.md
└─ LICENSE
Contributing
Frost is open-source! Feel free to fork, submit issues, or contribute improvements.
Project details
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 pythonfrost-0.1.0.tar.gz.
File metadata
- Download URL: pythonfrost-0.1.0.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8442abc543f389c66f5f19f674042b423596febf7242813e0b0f812adee23a83
|
|
| MD5 |
de9842ef559958fd7c4bf22a2ef5a0a2
|
|
| BLAKE2b-256 |
d40e1a14d7b670a95651e54f6dc0a5a36ab4acb5f0d3ba274bbaf25207556faf
|
File details
Details for the file pythonfrost-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pythonfrost-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
105d01fae1ba92423c9c4f2c6f3626ff376a115ed55a9ef79ac46e6ac00ea8bf
|
|
| MD5 |
01846d4e709497c6b94f67740048ba54
|
|
| BLAKE2b-256 |
2c58f612a10786baeb19c01ac2fbfb69a6d5d6d3c7f3763b508f69484e874c8d
|