Simple Python Web Framework
Project description
Renderly
Renderly is a minimalistic Python web framework built around Mako templates. With Renderly, all you need to do is drop .template files in a directory — and your app is live. It’s perfect for small apps, prototypes, and template-driven workflows.
🚀 Features
- 🧾 Automatic route-to-template mapping
- 💡 Clean, Mako-based templating with inheritance and Python expressions
- 🔁 Request and response objects available in templates
- 🔧 Custom application context injection
- 📄 Built-in 404 template support
🛠️ Usage
Example Template (index.template)
<%! from datetime import datetime %>
<h1>${APP_NAME}</h1>
<p>Current time: ${datetime.now()}</p>
<p>Request method: ${request.method}</p>
pip install renderly
In run.py:
from renderly import App
application = App(name="Renderly Demo", project_dir="templates")
Run with uwsgi
uwsgi --http :8000 --wsgi-file run.py --callable application
📦 App Context
You can pass global values into templates via app_context:
App(name="Renderly", app_context={"version": "1.0"})
Then use ${version} in your templates.
⚠️ 404 Handling
If a requested template doesn’t exist, Renderly will render the fallback file (default: 404.template).
See the example folder for more usage.
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 renderly-0.1.4.tar.gz.
File metadata
- Download URL: renderly-0.1.4.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03993abfb67bfaca20b643d03f1e69868a6315a8857d265dc910fa8113f4dd40
|
|
| MD5 |
80e95a52388acc299a2ba9779cd67b4b
|
|
| BLAKE2b-256 |
ff71f787a13b2452b47c522f79511f9a62f7d904b05695577dafcb7747ca9a26
|
File details
Details for the file renderly-0.1.4-py3-none-any.whl.
File metadata
- Download URL: renderly-0.1.4-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1aa6f12cdbaf00d3fa18a9b563dec39ef385409a76d10b55cfe33fb2f52675a4
|
|
| MD5 |
e5770486b41aab9e2dc5fa80c3d90724
|
|
| BLAKE2b-256 |
ab4b4aa3188845bdfeb7458c37e38948e58dc0822e9aee6e7c271914290890e1
|