Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

lexdene/py-sniper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

100 Commits

Repository files navigation

sniper

travis status Documentation Status

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

Advantage

  • It is a very small framework
  • It supports non-blocking, asynchronous web application development (thanks to Python's asyncio library) which has better performance in high concurrency situation
  • It has no dependencies except Python itself

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

About

a Python restful web framework base on asyncio

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /