Skip to main content

Minimal, fast and intuitive REST HTTP services in python

Project description

Author: I (iroiso at live dot com)
License: Apache License 2.0
© 2011, June inc.

Gates
=====
Minimal, fast and intuitive REST HTTP services in python.
features:

+ Plain, JAX-RS like http verb mapping and routing.
+ WSGI 1.0 compatibility.
+ Plain simple form handling.
+ No inbuilt templating, Use your favorite.
+ No built in session management.
+ Database agnostic. [Check out "http://github.com/junery/homer" for persistence]


Sample Code:
------------
Hello world through the Gates,

```python
from gates.core import run, Application, Resource, Path, Route, GET

@Path("/hello")
class HelloResource(Resource):
'''The simplest resource you can conceive'''

@GET
@Route("/{name}")
def hello(self, name):
self.response.write("Hello %s !" % name)

#Deploying and running.
root = Application(base="/", resources=[HelloResource,])
run(root)

```
Now visit http://localhost:8080/hello/iroiso in your browser.

Notes:
------
Another opensource project made with love in the Junery; pragmatic, simple,
beautiful and pleasurable to use.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Gates-v1.0.0.beta.tar.gz (10.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page