an asynchronous restful web framework base on asyncio
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sniper-0.0.6.tar.gz
(12.6 kB
view details)
File details
Details for the file sniper-0.0.6.tar.gz
.
File metadata
- Download URL: sniper-0.0.6.tar.gz
- Upload date:
- Size: 12.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 776b578020eda871b6aa85ca95070a502a7232eefa4688f27ef697eeae5632cb |
|
MD5 | 8699e25549e915bdb75c26b640d2f41b |
|
BLAKE2b-256 | 58d4050bf16a2ba98c83ff65c2fe172d78b3817a6930477d30c93e3192287ffd |