SunHead
*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.
Metadata
Release files for sunhead 5.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sunhead-5.0.1.tar.gz | 24.8 kB | Without provenance | Details for sunhead-5.0.1.tar.gz |
Release files / sunhead-5.0.1.tar.gz
| Download URL | sunhead-5.0.1.tar.gz |
|---|---|
| Size | 24.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dcaca9ebfcd280b74746e2b9fad377c85cb4eb969137d5abe089c5d88de26c8f
|
|
BLAKE2b-256 checksum How to use checksums |
748c550db8a0be2fd886aacf47eb127cfeaeab07f8ef830092b1bce98b8f9ad2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for sunhead 5.0.1
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.