AServer
A lightweight, Python web framework built using Python.
Designed for simplicity, learning, and fast prototyping.
Features
- 🚀 Zero dependencies (pure Python)
- 🛣️ Simple dictionary-based routing
- 🎯 Flask-style decorator support
- 📄 HTML template rendering with jinja-like syntax
- ⚡ Fast lightweight HTTP server
- 🔧 Easy to extend into a full framework
Installation
pip install aserver
Usage Example
Basic Server Setup
from aserver import ServerHTTP
data = {
"name": "Aadi",
"title": "AServer"
}
server = ServerHTTP(
("127.0.0.1", 1111),
"index.html",
data=data
)
@server.serve()
def routes():
return {
"/": "index.html",
"/about": "about.html"
}
HTML Template Example
<!DOCTYPE html>
<html>
<head>
<title>{{ title }}</title>
</head>
<body>
<h1>Welcome {{ name }}</h1>
</body>
</html>
Routing Example
{
"/<id>": "index.html",
"/about": "about.html",
"/contact": "contact.html"
}
How It Works
- Server listens on host and port
- Matches request path with route dictionary
- Loads corresponding HTML file
- Replaces {{ variables }} using provided data and uses {{ params }} for the variables inside urls along with {% for %} and {% if %} as well as their opposites
Contact
email: aadisankar1001@gmail.com
License
MIT License © 2026
Metadata
Release files for aserver 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aserver-0.2.1.tar.gz | 4.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aserver-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.6 kB
Release files / aserver-0.2.1.tar.gz
| Download URL | aserver-0.2.1.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
824d5349e5569512b4e3666bf50b0a43b1316c3d4491390628ab1eab034c9fc8
|
|
BLAKE2b-256 checksum How to use checksums |
35890eab70714416532cbdf218bb6cb61c72f49b346c118ba1ee5cdd243424cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.2
|
Release files / aserver-0.2.1-py3-none-any.whl
| Download URL | aserver-0.2.1-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
db5e8ea76f03c03fe8717a3c560302f7bbba19e9659e9fa2b83cbda152e0675a
|
|
BLAKE2b-256 checksum How to use checksums |
f38d0657df225c6dd733c94195002eed1675af931f83959fb191b01882e5b7e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.2
|