Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lexdene/py-sniper
a Python restful web framework base on asyncio
https://github.com/lexdene/py-sniper
asynchronous asyncio python restful-api web-framework
Last synced: 3 months ago
JSON representation
a Python restful web framework base on asyncio
- Host: GitHub
- URL: https://github.com/lexdene/py-sniper
- Owner: lexdene
- License: gpl-3.0
- Created: 2017-02-07T09:04:56.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-19T15:06:11.000Z (over 6 years ago)
- Last Synced: 2024-10-12T20:53:40.618Z (3 months ago)
- Topics: asynchronous, asyncio, python, restful-api, web-framework
- Language: Python
- Homepage:
- Size: 89.8 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
sniper
======|travis-status| |docs|
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 itselfHello world
-----------Here is a simple "Hello world" example web app for sniper:
.. code-block:: python
from sniper.app import Application
from sniper.responses import Response
from sniper.url import urldef hello_world(request):
return Response('Hello world!\n')if __name__ == '__main__':
app = Application(
urls=[
url(r'^/$', hello_world),
]
)
app.run(8888)Documentation
-------------see `docs `_
.. |travis-status| image:: https://travis-ci.org/lexdene/py-sniper.svg?branch=master
:alt: travis status
:target: https://travis-ci.org/lexdene/py-sniper.. |docs| image:: https://readthedocs.org/projects/py-sniper/badge/?version=master
:target: http://py-sniper.readthedocs.io/en/master/?badge=master
:alt: Documentation Status