Skip to main content

Simple Python Web Framework

Project description

Renderly

Renderly is a minimalistic Python web framework built around Mako templates. With Templa, 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>

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

renderly-0.1.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

renderly-0.1.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file renderly-0.1.1.tar.gz.

File metadata

  • Download URL: renderly-0.1.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for renderly-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5e488279bb780d4a6322b32d8bd14967a8a2a5385b5edd578ce3284da03570e8
MD5 2db2a495aaec828515df06eb41afb068
BLAKE2b-256 0d7bd18acc768303dd270c775834f65186f2d06f07807b12e551691dea58b802

See more details on using hashes here.

File details

Details for the file renderly-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: renderly-0.1.1-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

Hashes for renderly-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d73af53ed51d28a8037c5656f4ca35de0b089312b6db8eb540d1edc1aeec72c6
MD5 6d58edc7e485194cd4269ed7222fda31
BLAKE2b-256 417d6990b21c06ea35097b3a7b61f0431c93901b65bb73c4afbf08b923ae406f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page