Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 30.129.334 Times

pyroutes 0.3.0

Company: Kristian Klette
Date Added: September 04, 2013  |  Visits: 185

pyroutes

Report Broken Link
Printer Friendly Version


Product Homepage
Download (16 downloads)

pyroutes is a really small wrapper for rapid development of small Python web applications.<br /><br />Why?<br /><br />I got tired of dealing with the same boring WSGI-stuff everytime 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.<br /><br />How it works<br /><br />The core of the system is WSGI, and a decorator called @route. You simple create add a route decorator in front of the function you want to handle requests to a certain path. pyroutes always tries to use the most specified path-handler available for the request. That means `@route('/foo/bar')` will always be used over `@route('/foo')` given that request path is `/foo/bar` or longer that is. Notice that paths have to be given without a trailing slash.<br /><br />The decorated function should return the helper `Response` class. The `Response` class takes three arguments: `content`, `headers` and `status_code`. `content` is the data that should be returned, `headers` a list of tuples representing the http-headers returned and `status_code` a valid HTTP status code. If `headers` and `status_code` is omitted it defaults to `text/html` as content type and `200 OK` as status code.<br /><br />Example:<br /><br />@route('/')<br />def index(environ, data):<br />return(Response('Hello world!', [('Content-Type', 'text/html')], '200 OK'))<br /><br />Noticed the parameters to the index function? Those are mandatory. The `environ`-parameter is the unmodified environment from WSGI and `data` is a dictionary with the GET and POST parameters.<br /><br />#md5=52e05069e822b04f102e3e801b713019

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Class Content Decorator Function Headers Parameters Pyroutes Request Response Returned Route Small Status Status Code Takes
Users rating: 0/10

License: Freeware Size: 10.24 KB
PYROUTES RELATED
Development Tools  -  sigmoid 1.0
Sigmoid creates a Sigmoid function using parameters in PARAMS and the variable range. V = SIGMOID(PARAMS,RANGE) PARAMS: a 3-vector, the entries of which are (in this order): amplitude value phase slope
40.96 KB  
Miscellaneous  -  Extract a inner function from a class 1.1
This function can extract a inner function from a class or a function. It may be useful when writing a unit test code.
 
Development Tools  -  6th order Runge-Kutta ODE 1.0
Function and parameters are predefined in the program which can be changed according to user's requirement.P.S: This code has no new feature compared to existing codes available online. Intention behind posting this very simple code is to help...
10 KB  
Modules  -  1 PixelOut Audio Player CCK Pack 1.0
Insert 1 PixelOut Audio Player in jSeblod CCK content types and managed parameters directly in form of the content type.This pack includes 1 category (1PixelOutPlayer Single) of preset fields that you can use on the box in your content type and 1...
10 KB  
Utilities  -  HttpWatch Basic - HTTP Sniffer and Debugger 9.3.37
HttpWatch is the ultimate HTTP sniffer for monitoring and optimizing web pages. It shows cookies, headers, content, query strings, POST values and low level request/response streams for HTTP and HTTPS. Recent comments about the HttpWatch...
10.8 MB  
Network & Internet  -  Bricolage 1.10.3
Bricolage, an open-source enterprise-class content management system, greatly simplifies the complex tasks of creating, publishing, and managing the vast libraries of content essential to any organization. With advanced features such as...
2.7 MB  
Programming  -  generateIt 1.0
This is a cocoa objective-C based project for Mac OS X, trying to develop a software to help programmer in early stage of development by creating class diagram and generate headers in specify languages from these diagrams
203.08 KB  
Web Authoring  -  django-debug-toolbar 0.9.1
jango-debug-toolbar is a configurable set of panels that display various debug information about the current request/response and when clicked, display more details about the panel's content. Currently, the following panels have been...
143.36 KB  
Business  -  Aviva plc Reports 1.0.1
Aviva plc Reports This app provides the complete content of the print version of Aviva's reports. Features include: - Fully searchable - The ability to bookmark pages - Left hand style navigation for easier access to...
1.2 MB  
Books  -  Executive Knowledge Lines.. 1.1
Executive Knowledge Lines(EKL), a unique newsstand magazine to empower the Excutive offers corporates: To enrich their media (Web, Newsletter..) with well researched, world class content relevant to core areas of activity EKL has been...
1024 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, PROGRAMMING
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Linux Software  -  SLAX 6.0+
Slax is a modern, portable, small and fast Linux operating system with a modular approach and outstanding design. Despite its small size, Slax provides a wide collection of pre-installed software for daily use, including a well organized graphical...
190 KB  
Linux Software  -  GTK+ 2.5
GTK+, which stands for the GIMP Toolkit, is a library for creating graphical user interfaces for the X Window System. It is designed to be small, efficient, and flexible. GTK+ is written in C with a very object-oriented approach. Language bindings...
60 MB  
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB