Skip to main content

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

Metadata

Release files for sniper 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sniper 0.0.6
File Size Uploaded Provenance Actions
sniper-0.0.6.tar.gz 12.6 kB Without provenance Details for sniper-0.0.6.tar.gz

Release files / sniper-0.0.6.tar.gz

Download URL sniper-0.0.6.tar.gz
Size 12.6 kB
Tags Source
SHA-256 checksum
How to use checksums
776b578020eda871b6aa85ca95070a502a7232eefa4688f27ef697eeae5632cb
BLAKE2b-256 checksum
How to use checksums
58d4050bf16a2ba98c83ff65c2fe172d78b3817a6930477d30c93e3192287ffd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for sniper 0.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.6 This release

1 release file No provenance

0.0.1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page