Skip to main content

A small WSGI wrapper for creating small python web apps

Project description

A really small framework for rapid development of small python web applications

Why?

I got tired of dealing with the same boring WSGI stuff every time I wanted to make a small web-utility in django, but I didn’t want to go to far away from it, so I made this little thing to ease the work a bit.

How it works

Example:

from pyroutes import application, route

@route('/')
def index(request, name='world'):
    return 'Hello %s!' % name

The above creates a complete WSGI compliant application. Result:

GET /
Hello world!

GET /foo
Hello foo!

See http://readthedocs.org/docs/pyroutes/ for more information.

Templating

pyroutes includes a small xml-based templating system called xml-template. For more information about xml-template, check out its bzr repo from http://bzr.sesse.net/xml-template XML-Template is released under the GPLv2 license.

For more information about usage, see the wiki example.

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

pyroutes-0.5.1.tar.gz (26.2 kB view details)

Uploaded Source

Built Distribution

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

pyroutes-0.5.1-py3-none-any.whl (31.8 kB view details)

Uploaded Python 3

File details

Details for the file pyroutes-0.5.1.tar.gz.

File metadata

  • Download URL: pyroutes-0.5.1.tar.gz
  • Upload date:
  • Size: 26.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for pyroutes-0.5.1.tar.gz
Algorithm Hash digest
SHA256 83226f2703ad00cf4b8560ff62c48d7eb0988ab0b43b1154a2d7c5215afcaaa1
MD5 35299dfc0622576f3531913b244daed4
BLAKE2b-256 e6abf38fb8d166af4990e401b29c677941a076f4a733f87ea37a7bf0db8d8e0b

See more details on using hashes here.

File details

Details for the file pyroutes-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: pyroutes-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 31.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for pyroutes-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ea8c664ed2b8abdbf0c43b109c8f807d0b3df195c11def95f614c4e9326ac481
MD5 5c89a0bf1e1f7c063239278ff026f897
BLAKE2b-256 5f67d3ed4a678afccc1a4ba7bf4554b99fb525365ae6160d833f517133b0e922

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