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.
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.
Project details
Release history Release notifications | RSS feed
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 details)
File details
Details for the file Gates-v1.0.0.beta.tar.gz
.
File metadata
- Download URL: Gates-v1.0.0.beta.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b5df7f44de48796dd90ecdf620b02bb874cd2aebcc8fcc0510c367ca779e0fc |
|
MD5 | d11f246a6212e4d96b67781b558799b4 |
|
BLAKE2b-256 | dfc169a3cccd8fef96efae0a6f5314c87568877f621606178654490b44b0e202 |