Skip to main content

Fast HTTP Server/Client microframework for Python asyncio

Project description

BlackSheep

HTTP Server/Client microframework for Python asyncio, using Cython, uvloop, and httptools.

This project is a beta version. The reason behind this framework is described in this page of the Wiki: Story.

from datetime import datetime
from blacksheep import HttpResponse, TextContent
from blacksheep.server import Application


app = Application()

@app.route('/')
async def home(request):
    return HttpResponse(200, content=TextContent(f'Hello, World! {datetime.utcnow().isoformat()}'))

app.start()

Objectives

  • Clean architecture and source code
  • Avoid CPU cycles to handle things that are not strictly necessary
  • Intelligible and easy to learn API, similar to those of many Python web frameworks
  • Keep the core package minimal and focused, as much as possible, on features defined in HTTP and HTML standards
  • High performance

Server Features

Documentation

Please refer to the project Wiki.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

blacksheep-0.0.2.tar.gz (578.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page