Framework for building asynchronous websites and micro-services on top of ``aiohttp``
Project description
*This is preview. It’s pre-beta, pre-alpha, pre-anything, so don’t use it in real projects. More work is on the way.*
Framework for building asynchronous websites and micro-services on top of aiohttp
Basic example
This is how to run your epic_app’s webserver:
from sunhead.cli.commands.runserver import Runserver from sunhead.cli.entrypoint import main as sunhead_main commands = ( Runserver("apic_app.server.SubclassOfSunHeadWorkersHttpServer"), ) DEFAULT_ENVIRONMENT_VARIABLE = "EPIC_APP_SETTINGS_MODULE" GLOBAL_CONFIG_MODULE = "epic_app.settings.base" def main(): sunhead_main( commands=commands, settings_ennvar=DEFAULT_ENVIRONMENT_VARIABLE, fallback_settings_module=GLOBAL_CONFIG_MODULE ) if __name__ == '__main__': main()
Features
You can run workers from basic console scripts up to the http-servers, connected to messaging streams, queues, etc. There are REST helper classes, CLI tools, settings incapsulation and other useful things.
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
sunhead-5.0.1.tar.gz
(24.8 kB
view details)
File details
Details for the file sunhead-5.0.1.tar.gz
.
File metadata
- Download URL: sunhead-5.0.1.tar.gz
- Upload date:
- Size: 24.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | dcaca9ebfcd280b74746e2b9fad377c85cb4eb969137d5abe089c5d88de26c8f |
|
MD5 | 7b237fa2bdd7ade2bc9963794c3982fb |
|
BLAKE2b-256 | 748c550db8a0be2fd886aacf47eb127cfeaeab07f8ef830092b1bce98b8f9ad2 |