Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (testpypi.python.org).
Help us improve Python packaging - Donate today!

an asynchronous restful web framework base on asyncio

Project Description

sniper is a Python asynchronous restful web framework base on asyncio.

Hello world

Here is a simple “Hello world” example web app for sniper:

from sniper.app import Application
from sniper.responses import Response
from sniper.url import url

def hello_world(request):
    return Response('Hello world!\n')

if __name__ == '__main__':
    app = Application(
        urls=[
            url(r'^/$', hello_world),
        ]
    )
    app.run(8888)

Documentation

see docs

Release History

This version
History Node

0.0.4

Download Files

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

File Name & Hash SHA256 Hash Help Version File Type Upload Date
sniper-0.0.4.tar.gz
(4.6 kB) Copy SHA256 Hash SHA256
Source Feb 17, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting