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>

Running the App (with uWSGI, for example)

Instantiate a run.py

application = App("My APP", project_dir="/templates")
uwsgi --http :8000 --wsgi-file run.py --callable application

In main.py:

from renderly import App

application = App(name="Renderly Demo", project_dir="templates")

📦 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).


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.0.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.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: renderly-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 68c6d6685c2971ea608aada64f90b804fb50f0dd80bd3e10f0ad30125a700718
MD5 99d38da9ae7e190f95b287c687228664
BLAKE2b-256 6d97c084def96c4d57234ca789fbbca97ee5fc7f96701afc42fa2eaa2eda2ab7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: renderly-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c37011e7b456d0654c3366daeeaebe976076183dd86462328d4cc7760f4fa726
MD5 6ad4f3d957e8e4c4a72010c5a71190de
BLAKE2b-256 1b5f891077ffa67c581c3f21a012cee1a69245b84890c589e5dd8e636c30f3fc

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