Skip to main content

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

renderly-0.1.3.tar.gz (4.0 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.3-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: renderly-0.1.3.tar.gz
  • Upload date:
  • Size: 4.0 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.3.tar.gz
Algorithm Hash digest
SHA256 6c3412f40eac2fb4558bc5443c8b17ddbc93f86e44abffee43b8546a72f9277e
MD5 519c30eedfde71b4dd993a6803a3ffb3
BLAKE2b-256 21e1e3714c219ea8e7437e9d0250d9b3bb8fa3ebb859e689291a320f2006ef69

See more details on using hashes here.

File details

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

File metadata

  • Download URL: renderly-0.1.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 85ed849dc076220ee7638cffbd1ae464baaba271c07ab620199cea418a676376
MD5 84663b4087edd7186bd6930ae7c99941
BLAKE2b-256 2ce72370b0a8e20dd3a41a881e7a500d69b278561ef0be7e7c98239c52aeadb7

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