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

Uploaded Python 3

File details

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

File metadata

  • Download URL: renderly-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 6289627f7e92da1208201294fdc7016c6a1ecf8c5f7bca594ff89620bae076bc
MD5 0b3c5489e6dcf2c5dd5708430fcca441
BLAKE2b-256 738c7815f8ed9c1fc046e5afc8b095ea571c154ffc6cb0e17627ab393d649e9a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: renderly-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 74b661d5c8429ad1e86976581119cbb2134f040f6290ead54b43d397058ad24b
MD5 f81ffe6e0d50df002f972ab5e89904d2
BLAKE2b-256 a096c33b587d535f1bfc84ae8f70da9b31281c833c3db2a9cd317ff872c8e88d

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